131 lines
6.3 KiB
JSON
131 lines
6.3 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "define-properties@^1.1.2",
|
||
|
"scope": null,
|
||
|
"escapedName": "define-properties",
|
||
|
"name": "define-properties",
|
||
|
"rawSpec": "^1.1.2",
|
||
|
"spec": ">=1.1.2 <2.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/object.assign"
|
||
|
]
|
||
|
],
|
||
|
"_from": "define-properties@>=1.1.2 <2.0.0",
|
||
|
"_id": "define-properties@1.1.2",
|
||
|
"_inCache": true,
|
||
|
"_location": "/define-properties",
|
||
|
"_nodeVersion": "4.2.1",
|
||
|
"_npmUser": {
|
||
|
"name": "ljharb",
|
||
|
"email": "ljharb@gmail.com"
|
||
|
},
|
||
|
"_npmVersion": "2.14.7",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "define-properties@^1.1.2",
|
||
|
"scope": null,
|
||
|
"escapedName": "define-properties",
|
||
|
"name": "define-properties",
|
||
|
"rawSpec": "^1.1.2",
|
||
|
"spec": ">=1.1.2 <2.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/object.assign",
|
||
|
"/object.getownpropertydescriptors",
|
||
|
"/util.promisify"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz",
|
||
|
"_shasum": "83a73f2fea569898fb737193c8f873caf6d45c94",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "define-properties@^1.1.2",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/object.assign",
|
||
|
"author": {
|
||
|
"name": "Jordan Harband"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/ljharb/define-properties/issues"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"foreach": "^2.0.5",
|
||
|
"object-keys": "^1.0.8"
|
||
|
},
|
||
|
"description": "Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.",
|
||
|
"devDependencies": {
|
||
|
"@ljharb/eslint-config": "^1.3.0",
|
||
|
"covert": "^1.1.0",
|
||
|
"editorconfig-tools": "^0.1.1",
|
||
|
"eslint": "^1.6.0",
|
||
|
"jscs": "^2.3.1",
|
||
|
"nsp": "^1.1.0",
|
||
|
"tape": "^4.2.1"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "83a73f2fea569898fb737193c8f873caf6d45c94",
|
||
|
"tarball": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz"
|
||
|
},
|
||
|
"engines": {
|
||
|
"node": ">= 0.4"
|
||
|
},
|
||
|
"gitHead": "6467a10e6f493d8a1a4f6ec8442ffee137aab7ba",
|
||
|
"homepage": "https://github.com/ljharb/define-properties#readme",
|
||
|
"keywords": [
|
||
|
"Object.defineProperty",
|
||
|
"Object.defineProperties",
|
||
|
"object",
|
||
|
"property descriptor",
|
||
|
"descriptor",
|
||
|
"define",
|
||
|
"ES5"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"main": "index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "ljharb",
|
||
|
"email": "ljharb@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "define-properties",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "#define-properties <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![Build Status][travis-svg]][travis-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n[![browser support][testling-svg]][testling-url]\n\nDefine multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.\nExisting properties are not overridden. Accepts a map of property names to a predicate that, when true, force-overrides.\n\n## Example\n\n```js\nvar define = require('define-properties');\nvar assert = require('assert');\n\nvar obj = define({ a: 1, b: 2 }, {\n\ta: 10,\n\tb: 20,\n\tc: 30\n});\nassert(obj.a === 1);\nassert(obj.b === 2);\nassert(obj.c === 30);\nif (define.supportsDescriptors) {\n\tassert.deepEqual(Object.keys(obj), ['a', 'b']);\n\tassert.deepEqual(Object.getOwnPropertyDescriptor(obj, 'c'), {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\tvalue: 30,\n\t\twritable: false\n\t});\n}\n```\n\nThen, with predicates:\n```js\nvar define = require('define-properties');\nvar assert = require('assert');\n\nvar obj = define({ a: 1, b: 2, c: 3 }, {\n\ta: 10,\n\tb: 20,\n\tc: 30\n}, {\n\ta: function () { return false; },\n\tb: function () { return true; }\n});\nassert(obj.a === 1);\nassert(obj.b === 20);\nassert(obj.c === 3);\nif (define.supportsDescriptors) {\n\tassert.deepEqual(Object.keys(obj), ['a', 'c']);\n\tassert.deepEqual(Object.getOwnPropertyDescriptor(obj, 'b'), {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\tvalue: 20,\n\t\twritable: false\n\t});\n}\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/define-properties\n[npm-version-svg]: http://versionbadg.es/ljharb/define-properties.svg\n[travis-svg]: https://travis-ci.org/ljharb/define-properties.svg\n[travis-url]: https://travis-ci.org/ljharb/define-properties\n[deps-svg]: https://david-dm.org/ljharb/define-properties.svg\n[deps-url]: https://david-dm.org/ljharb/define-properties\n[dev-deps-svg]: https://david-dm.org/ljharb/define-properties/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/define-properties#info=devDependencies\n[testling-svg]: https://ci.testling.com/ljharb/define-properties.png\n[testling-url]: https://ci.testling.com/ljharb/define-properties\n[npm-badge-png]: https://nodei.co/npm/define-properties.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/define-properties.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/define-properties.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=define-properties\n\n",
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git://github.com/ljharb/define-properties.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"coverage": "covert test/*.js",
|
||
|
"coverage-quiet": "covert test/*.js --quiet",
|
||
|
"eccheck": "editorconfig-tools check *.js **/*.js > /dev/null",
|
||
|
"eslint": "eslint test/*.js *.js",
|
||
|
"jscs": "jscs test/*.js *.js",
|
||
|
"lint": "npm run jscs && npm run eslint",
|
||
|
"security": "nsp package",
|
||
|
"test": "npm run lint && node test/index.js && npm run security"
|
||
|
},
|
||
|
"testling": {
|
||
|
"files": "test/index.js",
|
||
|
"browsers": [
|
||
|
"iexplore/6.0..latest",
|
||
|
"firefox/3.0..6.0",
|
||
|
"firefox/15.0..latest",
|
||
|
"firefox/nightly",
|
||
|
"chrome/4.0..10.0",
|
||
|
"chrome/20.0..latest",
|
||
|
"chrome/canary",
|
||
|
"opera/10.0..latest",
|
||
|
"opera/next",
|
||
|
"safari/4.0..latest",
|
||
|
"ipad/6.0..latest",
|
||
|
"iphone/6.0..latest",
|
||
|
"android-browser/4.2"
|
||
|
]
|
||
|
},
|
||
|
"version": "1.1.2"
|
||
|
}
|