aboutsummaryrefslogtreecommitdiff
path: root/node_modules/to-fast-properties
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
commitabd94a7f5a50f43c797a11b53549ae48fff667c3 (patch)
treeab8ed457f65cdd72e13e0571d2975729428f1551 /node_modules/to-fast-properties
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/to-fast-properties')
-rw-r--r--node_modules/to-fast-properties/index.js8
-rw-r--r--node_modules/to-fast-properties/license22
-rw-r--r--node_modules/to-fast-properties/package.json103
-rw-r--r--node_modules/to-fast-properties/readme.md37
4 files changed, 170 insertions, 0 deletions
diff --git a/node_modules/to-fast-properties/index.js b/node_modules/to-fast-properties/index.js
new file mode 100644
index 000000000..33e594dcd
--- /dev/null
+++ b/node_modules/to-fast-properties/index.js
@@ -0,0 +1,8 @@
+'use strict';
+module.exports = function toFastProperties(obj) {
+ function f() {}
+ f.prototype = obj;
+ new f();
+ return;
+ eval(obj);
+};
diff --git a/node_modules/to-fast-properties/license b/node_modules/to-fast-properties/license
new file mode 100644
index 000000000..55cc204eb
--- /dev/null
+++ b/node_modules/to-fast-properties/license
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+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:
+
+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.
diff --git a/node_modules/to-fast-properties/package.json b/node_modules/to-fast-properties/package.json
new file mode 100644
index 000000000..022ddc5da
--- /dev/null
+++ b/node_modules/to-fast-properties/package.json
@@ -0,0 +1,103 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "to-fast-properties@^1.0.1",
+ "scope": null,
+ "escapedName": "to-fast-properties",
+ "name": "to-fast-properties",
+ "rawSpec": "^1.0.1",
+ "spec": ">=1.0.1 <2.0.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/babel-types"
+ ]
+ ],
+ "_from": "to-fast-properties@>=1.0.1 <2.0.0",
+ "_id": "to-fast-properties@1.0.2",
+ "_inCache": true,
+ "_location": "/to-fast-properties",
+ "_nodeVersion": "4.3.0",
+ "_npmOperationalInternal": {
+ "host": "packages-13-west.internal.npmjs.com",
+ "tmp": "tmp/to-fast-properties-1.0.2.tgz_1458494284238_0.9049524136353284"
+ },
+ "_npmUser": {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ },
+ "_npmVersion": "2.14.12",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "to-fast-properties@^1.0.1",
+ "scope": null,
+ "escapedName": "to-fast-properties",
+ "name": "to-fast-properties",
+ "rawSpec": "^1.0.1",
+ "spec": ">=1.0.1 <2.0.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/babel-types"
+ ],
+ "_resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.2.tgz",
+ "_shasum": "f3f5c0c3ba7299a7ef99427e44633257ade43320",
+ "_shrinkwrap": null,
+ "_spec": "to-fast-properties@^1.0.1",
+ "_where": "/home/dold/repos/taler/wallet-webex/node_modules/babel-types",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "sindresorhus.com"
+ },
+ "bugs": {
+ "url": "https://github.com/sindresorhus/to-fast-properties/issues"
+ },
+ "dependencies": {},
+ "description": "Force V8 to use fast properties for an object",
+ "devDependencies": {
+ "ava": "0.0.4"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "f3f5c0c3ba7299a7ef99427e44633257ade43320",
+ "tarball": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.2.tgz"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "gitHead": "f65cab875234f8a9ee9b28df5d4db5c4a92fd0d9",
+ "homepage": "https://github.com/sindresorhus/to-fast-properties#readme",
+ "keywords": [
+ "object",
+ "obj",
+ "properties",
+ "props",
+ "v8",
+ "optimize",
+ "fast",
+ "convert",
+ "mode"
+ ],
+ "license": "MIT",
+ "maintainers": [
+ {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ }
+ ],
+ "name": "to-fast-properties",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/sindresorhus/to-fast-properties.git"
+ },
+ "scripts": {
+ "test": "node --allow-natives-syntax test.js"
+ },
+ "version": "1.0.2"
+}
diff --git a/node_modules/to-fast-properties/readme.md b/node_modules/to-fast-properties/readme.md
new file mode 100644
index 000000000..e298c2089
--- /dev/null
+++ b/node_modules/to-fast-properties/readme.md
@@ -0,0 +1,37 @@
+# to-fast-properties [![Build Status](https://travis-ci.org/sindresorhus/to-fast-properties.svg?branch=master)](https://travis-ci.org/sindresorhus/to-fast-properties)
+
+> Force V8 to use fast properties for an object
+
+[Read more.](http://stackoverflow.com/questions/24987896/)
+
+Use `%HasFastProperties(object)` and `--allow-natives-syntax` to check whether an object already has fast properties.
+
+
+## Install
+
+```
+$ npm install --save to-fast-properties
+```
+
+
+## Usage
+
+```js
+const toFastProperties = require('to-fast-properties');
+
+const obj = {
+ foo: true,
+ bar: true
+};
+
+delete obj.foo;
+// `obj` now has slow properties
+
+toFastProperties(obj);
+// `obj` now has fast properties
+```
+
+
+## License
+
+MIT © Petka Antonov, Sindre Sorhus