poe-code 12.0.11 → 13.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -3
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/node_modules/esprima/LICENSE.BSD +21 -0
- package/node_modules/esprima/README.md +46 -0
- package/node_modules/esprima/bin/esparse.js +139 -0
- package/node_modules/esprima/bin/esvalidate.js +236 -0
- package/node_modules/esprima/dist/esprima.js +6709 -0
- package/node_modules/esprima/package.json +112 -0
- package/node_modules/extend-shallow/LICENSE +21 -0
- package/node_modules/extend-shallow/README.md +61 -0
- package/node_modules/extend-shallow/index.js +33 -0
- package/node_modules/extend-shallow/package.json +56 -0
- package/node_modules/gray-matter/LICENSE +21 -0
- package/node_modules/gray-matter/README.md +565 -0
- package/node_modules/gray-matter/gray-matter.d.ts +114 -0
- package/node_modules/gray-matter/index.js +228 -0
- package/node_modules/gray-matter/lib/defaults.js +18 -0
- package/node_modules/gray-matter/lib/engine.js +30 -0
- package/node_modules/gray-matter/lib/engines.js +54 -0
- package/node_modules/gray-matter/lib/excerpt.js +32 -0
- package/node_modules/gray-matter/lib/parse.js +13 -0
- package/node_modules/gray-matter/lib/stringify.js +56 -0
- package/node_modules/gray-matter/lib/to-file.js +43 -0
- package/node_modules/gray-matter/lib/utils.js +66 -0
- package/node_modules/gray-matter/node_modules/argparse/LICENSE +21 -0
- package/node_modules/gray-matter/node_modules/argparse/README.md +257 -0
- package/node_modules/gray-matter/node_modules/argparse/index.js +3 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/action/append/constant.js +47 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/action/append.js +53 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/action/count.js +40 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/action/help.js +47 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/action/store/constant.js +43 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/action/store/false.js +27 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/action/store/true.js +26 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/action/store.js +50 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/action/subparsers.js +149 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/action/version.js +47 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/action.js +146 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/action_container.js +482 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/argparse.js +14 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/argument/error.js +50 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/argument/exclusive.js +54 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/argument/group.js +75 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/argument_parser.js +1161 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/const.js +21 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/help/added_formatters.js +87 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/help/formatter.js +795 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/namespace.js +76 -0
- package/node_modules/gray-matter/node_modules/argparse/lib/utils.js +57 -0
- package/node_modules/gray-matter/node_modules/argparse/package.json +34 -0
- package/node_modules/gray-matter/node_modules/js-yaml/LICENSE +21 -0
- package/node_modules/gray-matter/node_modules/js-yaml/README.md +302 -0
- package/node_modules/gray-matter/node_modules/js-yaml/bin/js-yaml.js +132 -0
- package/node_modules/gray-matter/node_modules/js-yaml/dist/js-yaml.js +4011 -0
- package/node_modules/gray-matter/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
- package/node_modules/gray-matter/node_modules/js-yaml/index.js +7 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/loader.js +1666 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
- package/node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml.js +39 -0
- package/node_modules/gray-matter/node_modules/js-yaml/package.json +52 -0
- package/node_modules/gray-matter/package.json +127 -0
- package/node_modules/is-extendable/LICENSE +21 -0
- package/node_modules/is-extendable/README.md +72 -0
- package/node_modules/is-extendable/index.js +13 -0
- package/node_modules/is-extendable/package.json +51 -0
- package/node_modules/kind-of/LICENSE +21 -0
- package/node_modules/kind-of/README.md +367 -0
- package/node_modules/kind-of/index.js +129 -0
- package/node_modules/kind-of/package.json +88 -0
- package/node_modules/section-matter/LICENSE +21 -0
- package/node_modules/section-matter/README.md +236 -0
- package/node_modules/section-matter/index.js +136 -0
- package/node_modules/section-matter/package.json +55 -0
- package/node_modules/sprintf-js/.npmignore +1 -0
- package/node_modules/sprintf-js/LICENSE +24 -0
- package/node_modules/sprintf-js/README.md +88 -0
- package/node_modules/sprintf-js/bower.json +14 -0
- package/node_modules/sprintf-js/demo/angular.html +20 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js +4 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +1 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.map +1 -0
- package/node_modules/sprintf-js/dist/sprintf.min.js +4 -0
- package/node_modules/sprintf-js/dist/sprintf.min.js.map +1 -0
- package/node_modules/sprintf-js/dist/sprintf.min.map +1 -0
- package/node_modules/sprintf-js/gruntfile.js +36 -0
- package/node_modules/sprintf-js/package.json +22 -0
- package/node_modules/sprintf-js/src/angular-sprintf.js +18 -0
- package/node_modules/sprintf-js/src/sprintf.js +208 -0
- package/node_modules/sprintf-js/test/test.js +82 -0
- package/node_modules/strip-bom-string/LICENSE +21 -0
- package/node_modules/strip-bom-string/README.md +66 -0
- package/node_modules/strip-bom-string/index.js +15 -0
- package/node_modules/strip-bom-string/package.json +60 -0
- package/package.json +6 -3
- package/packages/safe-fs/dist/fs/webdav/webdav.d.ts +2 -0
- package/packages/safe-js/dist/browser/chunks/{chunk-MUKMA7ZY.js → chunk-GJWMQ42Z.js} +35 -2
- package/packages/safe-js/dist/browser/chunks/{chunk-MUKMA7ZY.js.map → chunk-GJWMQ42Z.js.map} +2 -2
- package/packages/safe-js/dist/browser/safe-fs-core.js +1 -1
- package/packages/safe-js/dist/browser/safe-fs.js +1 -1
- package/packages/safe-js/dist/chunks/{chunk-HCODJUGF.js → chunk-EL23VF23.js} +3 -3
- package/packages/safe-js/dist/chunks/{chunk-YBQUQPZV.js → chunk-WVN5MMDR.js} +35 -2
- package/packages/safe-js/dist/chunks/chunk-WVN5MMDR.js.map +7 -0
- package/packages/safe-js/dist/chunks/{chunk-F7NY24BF.js → chunk-ZRX5HT5L.js} +2 -2
- package/packages/safe-js/dist/cli.js +3 -3
- package/packages/safe-js/dist/index.js +3 -3
- package/packages/safe-js/dist/safe-fs-core.js +1 -1
- package/packages/safe-js/dist/safe-fs-node.js +2 -2
- package/packages/safe-js/dist/safe-fs.js +2 -2
- package/packages/safe-js/dist/chunks/chunk-YBQUQPZV.js.map +0 -7
- /package/packages/safe-js/dist/chunks/{chunk-HCODJUGF.js.map → chunk-EL23VF23.js.map} +0 -0
- /package/packages/safe-js/dist/chunks/{chunk-F7NY24BF.js.map → chunk-ZRX5HT5L.js.map} +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "esprima",
|
|
3
|
+
"description": "ECMAScript parsing infrastructure for multipurpose analysis",
|
|
4
|
+
"homepage": "http://esprima.org",
|
|
5
|
+
"main": "dist/esprima.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"esparse": "./bin/esparse.js",
|
|
8
|
+
"esvalidate": "./bin/esvalidate.js"
|
|
9
|
+
},
|
|
10
|
+
"version": "4.0.1",
|
|
11
|
+
"files": [
|
|
12
|
+
"bin",
|
|
13
|
+
"dist/esprima.js"
|
|
14
|
+
],
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=4"
|
|
17
|
+
},
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "Ariya Hidayat",
|
|
20
|
+
"email": "ariya.hidayat@gmail.com"
|
|
21
|
+
},
|
|
22
|
+
"maintainers": [
|
|
23
|
+
{
|
|
24
|
+
"name": "Ariya Hidayat",
|
|
25
|
+
"email": "ariya.hidayat@gmail.com",
|
|
26
|
+
"web": "http://ariya.ofilabs.com"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/jquery/esprima.git"
|
|
32
|
+
},
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/jquery/esprima/issues"
|
|
35
|
+
},
|
|
36
|
+
"license": "BSD-2-Clause",
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"codecov.io": "~0.1.6",
|
|
39
|
+
"escomplex-js": "1.2.0",
|
|
40
|
+
"everything.js": "~1.0.3",
|
|
41
|
+
"glob": "~7.1.0",
|
|
42
|
+
"istanbul": "~0.4.0",
|
|
43
|
+
"json-diff": "~0.3.1",
|
|
44
|
+
"karma": "~1.3.0",
|
|
45
|
+
"karma-chrome-launcher": "~2.0.0",
|
|
46
|
+
"karma-detect-browsers": "~2.2.3",
|
|
47
|
+
"karma-edge-launcher": "~0.2.0",
|
|
48
|
+
"karma-firefox-launcher": "~1.0.0",
|
|
49
|
+
"karma-ie-launcher": "~1.0.0",
|
|
50
|
+
"karma-mocha": "~1.3.0",
|
|
51
|
+
"karma-safari-launcher": "~1.0.0",
|
|
52
|
+
"karma-safaritechpreview-launcher": "~0.0.4",
|
|
53
|
+
"karma-sauce-launcher": "~1.1.0",
|
|
54
|
+
"lodash": "~3.10.1",
|
|
55
|
+
"mocha": "~3.2.0",
|
|
56
|
+
"node-tick-processor": "~0.0.2",
|
|
57
|
+
"regenerate": "~1.3.2",
|
|
58
|
+
"temp": "~0.8.3",
|
|
59
|
+
"tslint": "~5.1.0",
|
|
60
|
+
"typescript": "~2.3.2",
|
|
61
|
+
"typescript-formatter": "~5.1.3",
|
|
62
|
+
"unicode-8.0.0": "~0.7.0",
|
|
63
|
+
"webpack": "~1.14.0"
|
|
64
|
+
},
|
|
65
|
+
"keywords": [
|
|
66
|
+
"ast",
|
|
67
|
+
"ecmascript",
|
|
68
|
+
"esprima",
|
|
69
|
+
"javascript",
|
|
70
|
+
"parser",
|
|
71
|
+
"syntax"
|
|
72
|
+
],
|
|
73
|
+
"scripts": {
|
|
74
|
+
"check-version": "node test/check-version.js",
|
|
75
|
+
"tslint": "tslint src/*.ts",
|
|
76
|
+
"code-style": "tsfmt --verify src/*.ts && tsfmt --verify test/*.js",
|
|
77
|
+
"format-code": "tsfmt -r src/*.ts && tsfmt -r test/*.js",
|
|
78
|
+
"complexity": "node test/check-complexity.js",
|
|
79
|
+
"static-analysis": "npm run check-version && npm run tslint && npm run code-style && npm run complexity",
|
|
80
|
+
"hostile-env-tests": "node test/hostile-environment-tests.js",
|
|
81
|
+
"unit-tests": "node test/unit-tests.js",
|
|
82
|
+
"api-tests": "mocha -R dot test/api-tests.js",
|
|
83
|
+
"grammar-tests": "node test/grammar-tests.js",
|
|
84
|
+
"regression-tests": "node test/regression-tests.js",
|
|
85
|
+
"all-tests": "npm run verify-line-ending && npm run generate-fixtures && npm run unit-tests && npm run api-tests && npm run grammar-tests && npm run regression-tests && npm run hostile-env-tests",
|
|
86
|
+
"verify-line-ending": "node test/verify-line-ending.js",
|
|
87
|
+
"generate-fixtures": "node tools/generate-fixtures.js",
|
|
88
|
+
"browser-tests": "npm run compile && npm run generate-fixtures && cd test && karma start --single-run",
|
|
89
|
+
"saucelabs-evergreen": "cd test && karma start saucelabs-evergreen.conf.js",
|
|
90
|
+
"saucelabs-safari": "cd test && karma start saucelabs-safari.conf.js",
|
|
91
|
+
"saucelabs-ie": "cd test && karma start saucelabs-ie.conf.js",
|
|
92
|
+
"saucelabs": "npm run saucelabs-evergreen && npm run saucelabs-ie && npm run saucelabs-safari",
|
|
93
|
+
"analyze-coverage": "istanbul cover test/unit-tests.js",
|
|
94
|
+
"check-coverage": "istanbul check-coverage --statement 100 --branch 100 --function 100",
|
|
95
|
+
"dynamic-analysis": "npm run analyze-coverage && npm run check-coverage",
|
|
96
|
+
"compile": "tsc -p src/ && webpack && node tools/fixupbundle.js",
|
|
97
|
+
"test": "npm run compile && npm run all-tests && npm run static-analysis && npm run dynamic-analysis",
|
|
98
|
+
"prepublish": "npm run compile",
|
|
99
|
+
"profile": "node --prof test/profile.js && mv isolate*.log v8.log && node-tick-processor",
|
|
100
|
+
"benchmark-parser": "node -expose_gc test/benchmark-parser.js",
|
|
101
|
+
"benchmark-tokenizer": "node --expose_gc test/benchmark-tokenizer.js",
|
|
102
|
+
"benchmark": "npm run benchmark-parser && npm run benchmark-tokenizer",
|
|
103
|
+
"codecov": "istanbul report cobertura && codecov < ./coverage/cobertura-coverage.xml",
|
|
104
|
+
"downstream": "node test/downstream.js",
|
|
105
|
+
"travis": "npm test",
|
|
106
|
+
"circleci": "npm test && npm run codecov && npm run downstream",
|
|
107
|
+
"appveyor": "npm run compile && npm run all-tests && npm run browser-tests",
|
|
108
|
+
"droneio": "npm run compile && npm run all-tests && npm run saucelabs",
|
|
109
|
+
"generate-regex": "node tools/generate-identifier-regex.js",
|
|
110
|
+
"generate-xhtml-entities": "node tools/generate-xhtml-entities.js"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2015, Jon Schlinkert.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# extend-shallow [](http://badge.fury.io/js/extend-shallow) [](https://travis-ci.org/jonschlinkert/extend-shallow)
|
|
2
|
+
|
|
3
|
+
> Extend an object with the properties of additional objects. node.js/javascript util.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Install with [npm](https://www.npmjs.com/)
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
$ npm i extend-shallow --save
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var extend = require('extend-shallow');
|
|
17
|
+
|
|
18
|
+
extend({a: 'b'}, {c: 'd'})
|
|
19
|
+
//=> {a: 'b', c: 'd'}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Pass an empty object to shallow clone:
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
var obj = {};
|
|
26
|
+
extend(obj, {a: 'b'}, {c: 'd'})
|
|
27
|
+
//=> {a: 'b', c: 'd'}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Related
|
|
31
|
+
|
|
32
|
+
* [extend-shallow](https://github.com/jonschlinkert/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util.
|
|
33
|
+
* [for-own](https://github.com/jonschlinkert/for-own): Iterate over the own enumerable properties of an object, and return an object with properties… [more](https://github.com/jonschlinkert/for-own)
|
|
34
|
+
* [for-in](https://github.com/jonschlinkert/for-in): Iterate over the own and inherited enumerable properties of an objecte, and return an object… [more](https://github.com/jonschlinkert/for-in)
|
|
35
|
+
* [is-plain-object](https://github.com/jonschlinkert/is-plain-object): Returns true if an object was created by the `Object` constructor.
|
|
36
|
+
* [isobject](https://github.com/jonschlinkert/isobject): Returns true if the value is an object and not an array or null.
|
|
37
|
+
* [kind-of](https://github.com/jonschlinkert/kind-of): Get the native type of a value.
|
|
38
|
+
|
|
39
|
+
## Running tests
|
|
40
|
+
|
|
41
|
+
Install dev dependencies:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
$ npm i -d && npm test
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Author
|
|
48
|
+
|
|
49
|
+
**Jon Schlinkert**
|
|
50
|
+
|
|
51
|
+
+ [github/jonschlinkert](https://github.com/jonschlinkert)
|
|
52
|
+
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
Copyright © 2015 Jon Schlinkert
|
|
57
|
+
Released under the MIT license.
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
61
|
+
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 29, 2015._
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var isObject = require('is-extendable');
|
|
4
|
+
|
|
5
|
+
module.exports = function extend(o/*, objects*/) {
|
|
6
|
+
if (!isObject(o)) { o = {}; }
|
|
7
|
+
|
|
8
|
+
var len = arguments.length;
|
|
9
|
+
for (var i = 1; i < len; i++) {
|
|
10
|
+
var obj = arguments[i];
|
|
11
|
+
|
|
12
|
+
if (isObject(obj)) {
|
|
13
|
+
assign(o, obj);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return o;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
function assign(a, b) {
|
|
20
|
+
for (var key in b) {
|
|
21
|
+
if (hasOwn(b, key)) {
|
|
22
|
+
a[key] = b[key];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Returns true if the given `key` is an own property of `obj`.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
function hasOwn(obj, key) {
|
|
32
|
+
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
33
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "extend-shallow",
|
|
3
|
+
"description": "Extend an object with the properties of additional objects. node.js/javascript util.",
|
|
4
|
+
"version": "2.0.1",
|
|
5
|
+
"homepage": "https://github.com/jonschlinkert/extend-shallow",
|
|
6
|
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
|
+
"repository": "jonschlinkert/extend-shallow",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/jonschlinkert/extend-shallow/issues"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"files": [
|
|
13
|
+
"index.js"
|
|
14
|
+
],
|
|
15
|
+
"main": "index.js",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=0.10.0"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"test": "mocha"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"is-extendable": "^0.1.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"array-slice": "^0.2.3",
|
|
27
|
+
"benchmarked": "^0.1.4",
|
|
28
|
+
"chalk": "^1.0.0",
|
|
29
|
+
"for-own": "^0.1.3",
|
|
30
|
+
"glob": "^5.0.12",
|
|
31
|
+
"is-plain-object": "^2.0.1",
|
|
32
|
+
"kind-of": "^2.0.0",
|
|
33
|
+
"minimist": "^1.1.1",
|
|
34
|
+
"mocha": "^2.2.5",
|
|
35
|
+
"should": "^7.0.1"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"assign",
|
|
39
|
+
"extend",
|
|
40
|
+
"javascript",
|
|
41
|
+
"js",
|
|
42
|
+
"keys",
|
|
43
|
+
"merge",
|
|
44
|
+
"obj",
|
|
45
|
+
"object",
|
|
46
|
+
"prop",
|
|
47
|
+
"properties",
|
|
48
|
+
"property",
|
|
49
|
+
"props",
|
|
50
|
+
"shallow",
|
|
51
|
+
"util",
|
|
52
|
+
"utility",
|
|
53
|
+
"utils",
|
|
54
|
+
"value"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2018, Jon Schlinkert.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|