nav tabs on admin dashboard
This commit is contained in:
34
node_modules/to-fast-properties/index.js
generated
vendored
34
node_modules/to-fast-properties/index.js
generated
vendored
@@ -1,11 +1,27 @@
|
||||
'use strict';
|
||||
module.exports = function toFastproperties(o) {
|
||||
function Sub() {}
|
||||
Sub.prototype = o;
|
||||
var receiver = new Sub(); // create an instance
|
||||
function ic() { return typeof receiver.foo; } // perform access
|
||||
ic();
|
||||
ic();
|
||||
return o;
|
||||
eval("o" + o); // ensure no dead code elimination
|
||||
|
||||
let fastProto = null;
|
||||
|
||||
// Creates an object with permanently fast properties in V8. See Toon Verwaest's
|
||||
// post https://medium.com/@tverwaes/setting-up-prototypes-in-v8-ec9c9491dfe2#5f62
|
||||
// for more details. Use %HasFastProperties(object) and the Node.js flag
|
||||
// --allow-natives-syntax to check whether an object has fast properties.
|
||||
function FastObject(o) {
|
||||
// A prototype object will have "fast properties" enabled once it is checked
|
||||
// against the inline property cache of a function, e.g. fastProto.property:
|
||||
// https://github.com/v8/v8/blob/6.0.122/test/mjsunit/fast-prototype.js#L48-L63
|
||||
if (fastProto !== null && typeof fastProto.property) {
|
||||
const result = fastProto;
|
||||
fastProto = FastObject.prototype = null;
|
||||
return result;
|
||||
}
|
||||
fastProto = FastObject.prototype = o == null ? Object.create(null) : o;
|
||||
return new FastObject;
|
||||
}
|
||||
|
||||
// Initialize the inline property cache of FastObject
|
||||
FastObject();
|
||||
|
||||
module.exports = function toFastproperties(o) {
|
||||
return FastObject(o);
|
||||
};
|
||||
|
||||
20
node_modules/to-fast-properties/license
generated
vendored
20
node_modules/to-fast-properties/license
generated
vendored
@@ -1,22 +1,10 @@
|
||||
The MIT License (MIT)
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2014 Petka Antonov
|
||||
2015 Sindre Sorhus
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
26
node_modules/to-fast-properties/package.json
generated
vendored
26
node_modules/to-fast-properties/package.json
generated
vendored
@@ -1,27 +1,27 @@
|
||||
{
|
||||
"_from": "to-fast-properties@^1.0.3",
|
||||
"_id": "to-fast-properties@1.0.3",
|
||||
"_from": "to-fast-properties@^2.0.0",
|
||||
"_id": "to-fast-properties@2.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=",
|
||||
"_integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=",
|
||||
"_location": "/to-fast-properties",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "to-fast-properties@^1.0.3",
|
||||
"raw": "to-fast-properties@^2.0.0",
|
||||
"name": "to-fast-properties",
|
||||
"escapedName": "to-fast-properties",
|
||||
"rawSpec": "^1.0.3",
|
||||
"rawSpec": "^2.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.3"
|
||||
"fetchSpec": "^2.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/babel-types"
|
||||
"/@babel/types"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz",
|
||||
"_shasum": "b83571fa4d8c25b82e231b06e3a3055de4ca1a47",
|
||||
"_spec": "to-fast-properties@^1.0.3",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\babel-types",
|
||||
"_resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
|
||||
"_shasum": "dc5e698cbd079265bc73e0377681a4e4e83f616e",
|
||||
"_spec": "to-fast-properties@^2.0.0",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\@babel\\types",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
@@ -37,7 +37,7 @@
|
||||
"ava": "0.0.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
"node": ">=4"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
@@ -63,5 +63,5 @@
|
||||
"scripts": {
|
||||
"test": "node --allow-natives-syntax test.js"
|
||||
},
|
||||
"version": "1.0.3"
|
||||
"version": "2.0.0"
|
||||
}
|
||||
|
||||
2
node_modules/to-fast-properties/readme.md
generated
vendored
2
node_modules/to-fast-properties/readme.md
generated
vendored
@@ -34,4 +34,4 @@ toFastProperties(obj);
|
||||
|
||||
## License
|
||||
|
||||
MIT © Petka Antonov, Sindre Sorhus
|
||||
MIT © Petka Antonov, John-David Dalton, Sindre Sorhus
|
||||
|
||||
Reference in New Issue
Block a user