@openfn/language-dhis2 3.0.4 → 3.0.5
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/node_modules/call-bind/.eslintignore +1 -0
- package/node_modules/call-bind/.eslintrc +17 -0
- package/node_modules/call-bind/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind/.nycrc +13 -0
- package/node_modules/call-bind/CHANGELOG.md +42 -0
- package/node_modules/call-bind/LICENSE +21 -0
- package/node_modules/call-bind/README.md +2 -0
- package/node_modules/call-bind/callBound.js +15 -0
- package/node_modules/call-bind/index.js +47 -0
- package/node_modules/call-bind/package.json +108 -0
- package/node_modules/call-bind/test/callBound.js +55 -0
- package/node_modules/call-bind/test/index.js +66 -0
- package/node_modules/function-bind/.editorconfig +20 -0
- package/node_modules/function-bind/.eslintrc +15 -0
- package/node_modules/function-bind/.jscs.json +176 -0
- package/node_modules/function-bind/.npmignore +22 -0
- package/node_modules/function-bind/.travis.yml +168 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +48 -0
- package/node_modules/function-bind/implementation.js +52 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +100 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-intrinsic/.eslintignore +1 -0
- package/node_modules/get-intrinsic/.eslintrc +43 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +13 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +64 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +65 -0
- package/node_modules/get-intrinsic/index.js +330 -0
- package/node_modules/get-intrinsic/package.json +107 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +260 -0
- package/node_modules/has/LICENSE-MIT +22 -0
- package/node_modules/has/README.md +18 -0
- package/node_modules/has/package.json +79 -0
- package/node_modules/has/src/index.js +5 -0
- package/node_modules/has/test/index.js +10 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.github/workflows/rebase.yml +15 -0
- package/node_modules/has-symbols/.travis.yml +12 -0
- package/node_modules/has-symbols/CHANGELOG.md +34 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +45 -0
- package/node_modules/has-symbols/index.js +13 -0
- package/node_modules/has-symbols/package.json +124 -0
- package/node_modules/has-symbols/shams.js +42 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +28 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +28 -0
- package/node_modules/has-symbols/test/tests.js +54 -0
- package/node_modules/qs/.editorconfig +40 -0
- package/node_modules/qs/.eslintrc +38 -0
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +388 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +623 -0
- package/node_modules/qs/dist/qs.js +2044 -0
- package/node_modules/qs/lib/formats.js +23 -0
- package/node_modules/qs/lib/index.js +11 -0
- package/node_modules/qs/lib/parse.js +263 -0
- package/node_modules/qs/lib/stringify.js +317 -0
- package/node_modules/qs/lib/utils.js +252 -0
- package/node_modules/qs/package.json +104 -0
- package/node_modules/qs/test/parse.js +841 -0
- package/node_modules/qs/test/stringify.js +865 -0
- package/node_modules/qs/test/utils.js +136 -0
- package/node_modules/side-channel/.eslintignore +1 -0
- package/node_modules/side-channel/.eslintrc +11 -0
- package/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel/.nycrc +13 -0
- package/node_modules/side-channel/CHANGELOG.md +65 -0
- package/node_modules/side-channel/LICENSE +21 -0
- package/node_modules/side-channel/README.md +2 -0
- package/node_modules/side-channel/index.js +124 -0
- package/node_modules/side-channel/node_modules/object-inspect/.eslintignore +1 -0
- package/node_modules/side-channel/node_modules/object-inspect/.eslintrc +53 -0
- package/node_modules/side-channel/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel/node_modules/object-inspect/.nycrc +13 -0
- package/node_modules/side-channel/node_modules/object-inspect/CHANGELOG.md +342 -0
- package/node_modules/side-channel/node_modules/object-inspect/LICENSE +21 -0
- package/node_modules/side-channel/node_modules/object-inspect/example/all.js +23 -0
- package/node_modules/side-channel/node_modules/object-inspect/example/circular.js +6 -0
- package/node_modules/side-channel/node_modules/object-inspect/example/fn.js +5 -0
- package/node_modules/side-channel/node_modules/object-inspect/example/inspect.js +10 -0
- package/node_modules/side-channel/node_modules/object-inspect/index.js +511 -0
- package/node_modules/side-channel/node_modules/object-inspect/package.json +112 -0
- package/node_modules/side-channel/node_modules/object-inspect/readme.markdown +86 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/bigint.js +58 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/circular.js +16 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/deep.js +12 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/element.js +53 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/err.js +48 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/fakes.js +29 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/fn.js +76 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/has.js +34 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/holes.js +15 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/indent-option.js +271 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/inspect.js +102 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/number.js +58 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/quoteStyle.js +17 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/undef.js +12 -0
- package/node_modules/side-channel/node_modules/object-inspect/test/values.js +211 -0
- package/node_modules/side-channel/node_modules/object-inspect/test-core-js.js +26 -0
- package/node_modules/side-channel/node_modules/object-inspect/util.inspect.js +1 -0
- package/node_modules/side-channel/package.json +95 -0
- package/node_modules/side-channel/test/index.js +78 -0
- package/package.json +3 -2
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_args": [
|
|
3
|
+
[
|
|
4
|
+
"has-symbols@1.0.1",
|
|
5
|
+
"/Users/taylor/devtools/adaptors/language-dhis2"
|
|
6
|
+
]
|
|
7
|
+
],
|
|
8
|
+
"_development": true,
|
|
9
|
+
"_from": "has-symbols@1.0.1",
|
|
10
|
+
"_id": "has-symbols@1.0.1",
|
|
11
|
+
"_inBundle": false,
|
|
12
|
+
"_integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==",
|
|
13
|
+
"_location": "/has-symbols",
|
|
14
|
+
"_phantomChildren": {},
|
|
15
|
+
"_requested": {
|
|
16
|
+
"type": "version",
|
|
17
|
+
"registry": true,
|
|
18
|
+
"raw": "has-symbols@1.0.1",
|
|
19
|
+
"name": "has-symbols",
|
|
20
|
+
"escapedName": "has-symbols",
|
|
21
|
+
"rawSpec": "1.0.1",
|
|
22
|
+
"saveSpec": null,
|
|
23
|
+
"fetchSpec": "1.0.1"
|
|
24
|
+
},
|
|
25
|
+
"_requiredBy": [
|
|
26
|
+
"/es-abstract",
|
|
27
|
+
"/is-symbol",
|
|
28
|
+
"/object.assign"
|
|
29
|
+
],
|
|
30
|
+
"_resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",
|
|
31
|
+
"_spec": "1.0.1",
|
|
32
|
+
"_where": "/Users/taylor/devtools/adaptors/language-dhis2",
|
|
33
|
+
"author": {
|
|
34
|
+
"name": "Jordan Harband",
|
|
35
|
+
"email": "ljharb@gmail.com",
|
|
36
|
+
"url": "http://ljharb.codes"
|
|
37
|
+
},
|
|
38
|
+
"auto-changelog": {
|
|
39
|
+
"output": "CHANGELOG.md",
|
|
40
|
+
"template": "keepachangelog",
|
|
41
|
+
"unreleased": false,
|
|
42
|
+
"commitLimit": false,
|
|
43
|
+
"backfillLimit": false
|
|
44
|
+
},
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/ljharb/has-symbols/issues"
|
|
47
|
+
},
|
|
48
|
+
"contributors": [
|
|
49
|
+
{
|
|
50
|
+
"name": "Jordan Harband",
|
|
51
|
+
"email": "ljharb@gmail.com",
|
|
52
|
+
"url": "http://ljharb.codes"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"dependencies": {},
|
|
56
|
+
"description": "Determine if the JS environment has Symbol support. Supports spec, or shams.",
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@ljharb/eslint-config": "^15.0.1",
|
|
59
|
+
"auto-changelog": "^1.16.2",
|
|
60
|
+
"core-js": "^2.6.10",
|
|
61
|
+
"eslint": "^6.6.0",
|
|
62
|
+
"get-own-property-symbols": "^0.9.4",
|
|
63
|
+
"safe-publish-latest": "^1.1.4",
|
|
64
|
+
"tape": "^4.11.0"
|
|
65
|
+
},
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">= 0.4"
|
|
68
|
+
},
|
|
69
|
+
"funding": {
|
|
70
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
71
|
+
},
|
|
72
|
+
"homepage": "https://github.com/ljharb/has-symbols#readme",
|
|
73
|
+
"keywords": [
|
|
74
|
+
"Symbol",
|
|
75
|
+
"symbols",
|
|
76
|
+
"typeof",
|
|
77
|
+
"sham",
|
|
78
|
+
"polyfill",
|
|
79
|
+
"native",
|
|
80
|
+
"core-js",
|
|
81
|
+
"ES6"
|
|
82
|
+
],
|
|
83
|
+
"license": "MIT",
|
|
84
|
+
"main": "index.js",
|
|
85
|
+
"name": "has-symbols",
|
|
86
|
+
"repository": {
|
|
87
|
+
"type": "git",
|
|
88
|
+
"url": "git://github.com/ljharb/has-symbols.git"
|
|
89
|
+
},
|
|
90
|
+
"scripts": {
|
|
91
|
+
"lint": "eslint *.js",
|
|
92
|
+
"posttest": "npx aud",
|
|
93
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
|
|
94
|
+
"prepublish": "safe-publish-latest",
|
|
95
|
+
"pretest": "npm run --silent lint",
|
|
96
|
+
"test": "npm run --silent tests-only",
|
|
97
|
+
"test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs",
|
|
98
|
+
"test:shams:corejs": "node test/shams/core-js.js",
|
|
99
|
+
"test:shams:getownpropertysymbols": "node test/shams/get-own-property-symbols.js",
|
|
100
|
+
"test:staging": "node --harmony --es-staging test",
|
|
101
|
+
"test:stock": "node test",
|
|
102
|
+
"tests-only": "npm run --silent test:stock && npm run --silent test:staging && npm run --silent test:shams",
|
|
103
|
+
"version": "auto-changelog && git add CHANGELOG.md"
|
|
104
|
+
},
|
|
105
|
+
"testling": {
|
|
106
|
+
"files": "test/index.js",
|
|
107
|
+
"browsers": [
|
|
108
|
+
"iexplore/6.0..latest",
|
|
109
|
+
"firefox/3.0..6.0",
|
|
110
|
+
"firefox/15.0..latest",
|
|
111
|
+
"firefox/nightly",
|
|
112
|
+
"chrome/4.0..10.0",
|
|
113
|
+
"chrome/20.0..latest",
|
|
114
|
+
"chrome/canary",
|
|
115
|
+
"opera/10.0..latest",
|
|
116
|
+
"opera/next",
|
|
117
|
+
"safari/4.0..latest",
|
|
118
|
+
"ipad/6.0..latest",
|
|
119
|
+
"iphone/6.0..latest",
|
|
120
|
+
"android-browser/4.2"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"version": "1.0.1"
|
|
124
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
4
|
+
module.exports = function hasSymbols() {
|
|
5
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
6
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
7
|
+
|
|
8
|
+
var obj = {};
|
|
9
|
+
var sym = Symbol('test');
|
|
10
|
+
var symObj = Object(sym);
|
|
11
|
+
if (typeof sym === 'string') { return false; }
|
|
12
|
+
|
|
13
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
14
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
15
|
+
|
|
16
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
17
|
+
// if (sym instanceof Symbol) { return false; }
|
|
18
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
19
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
20
|
+
|
|
21
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
22
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
23
|
+
|
|
24
|
+
var symVal = 42;
|
|
25
|
+
obj[sym] = symVal;
|
|
26
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
|
|
27
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
28
|
+
|
|
29
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
30
|
+
|
|
31
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
32
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
33
|
+
|
|
34
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
35
|
+
|
|
36
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
37
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
38
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return true;
|
|
42
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
var hasSymbols = require('../');
|
|
5
|
+
var runSymbolTests = require('./tests');
|
|
6
|
+
|
|
7
|
+
test('interface', function (t) {
|
|
8
|
+
t.equal(typeof hasSymbols, 'function', 'is a function');
|
|
9
|
+
t.equal(typeof hasSymbols(), 'boolean', 'returns a boolean');
|
|
10
|
+
t.end();
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
test('Symbols are supported', { skip: !hasSymbols() }, function (t) {
|
|
14
|
+
runSymbolTests(t);
|
|
15
|
+
t.end();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test('Symbols are not supported', { skip: hasSymbols() }, function (t) {
|
|
19
|
+
t.equal(typeof Symbol, 'undefined', 'global Symbol is undefined');
|
|
20
|
+
t.equal(typeof Object.getOwnPropertySymbols, 'undefined', 'Object.getOwnPropertySymbols does not exist');
|
|
21
|
+
t.end();
|
|
22
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
|
|
5
|
+
if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
|
|
6
|
+
test('has native Symbol support', function (t) {
|
|
7
|
+
t.equal(typeof Symbol, 'function');
|
|
8
|
+
t.equal(typeof Symbol(), 'symbol');
|
|
9
|
+
t.end();
|
|
10
|
+
});
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
var hasSymbols = require('../../shams');
|
|
15
|
+
|
|
16
|
+
test('polyfilled Symbols', function (t) {
|
|
17
|
+
/* eslint-disable global-require */
|
|
18
|
+
t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling');
|
|
19
|
+
require('core-js/fn/symbol');
|
|
20
|
+
require('core-js/fn/symbol/to-string-tag');
|
|
21
|
+
|
|
22
|
+
require('../tests')(t);
|
|
23
|
+
|
|
24
|
+
var hasSymbolsAfter = hasSymbols();
|
|
25
|
+
t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling');
|
|
26
|
+
/* eslint-enable global-require */
|
|
27
|
+
t.end();
|
|
28
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
|
|
5
|
+
if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
|
|
6
|
+
test('has native Symbol support', function (t) {
|
|
7
|
+
t.equal(typeof Symbol, 'function');
|
|
8
|
+
t.equal(typeof Symbol(), 'symbol');
|
|
9
|
+
t.end();
|
|
10
|
+
});
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
var hasSymbols = require('../../shams');
|
|
15
|
+
|
|
16
|
+
test('polyfilled Symbols', function (t) {
|
|
17
|
+
/* eslint-disable global-require */
|
|
18
|
+
t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling');
|
|
19
|
+
|
|
20
|
+
require('get-own-property-symbols');
|
|
21
|
+
|
|
22
|
+
require('../tests')(t);
|
|
23
|
+
|
|
24
|
+
var hasSymbolsAfter = hasSymbols();
|
|
25
|
+
t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling');
|
|
26
|
+
/* eslint-enable global-require */
|
|
27
|
+
t.end();
|
|
28
|
+
});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = function runSymbolTests(t) {
|
|
4
|
+
t.equal(typeof Symbol, 'function', 'global Symbol is a function');
|
|
5
|
+
|
|
6
|
+
if (typeof Symbol !== 'function') { return false };
|
|
7
|
+
|
|
8
|
+
t.notEqual(Symbol(), Symbol(), 'two symbols are not equal');
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
t.equal(
|
|
12
|
+
Symbol.prototype.toString.call(Symbol('foo')),
|
|
13
|
+
Symbol.prototype.toString.call(Symbol('foo')),
|
|
14
|
+
'two symbols with the same description stringify the same'
|
|
15
|
+
);
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
var foo = Symbol('foo');
|
|
19
|
+
|
|
20
|
+
/*
|
|
21
|
+
t.notEqual(
|
|
22
|
+
String(foo),
|
|
23
|
+
String(Symbol('bar')),
|
|
24
|
+
'two symbols with different descriptions do not stringify the same'
|
|
25
|
+
);
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
t.equal(typeof Symbol.prototype.toString, 'function', 'Symbol#toString is a function');
|
|
29
|
+
// t.equal(String(foo), Symbol.prototype.toString.call(foo), 'Symbol#toString equals String of the same symbol');
|
|
30
|
+
|
|
31
|
+
t.equal(typeof Object.getOwnPropertySymbols, 'function', 'Object.getOwnPropertySymbols is a function');
|
|
32
|
+
|
|
33
|
+
var obj = {};
|
|
34
|
+
var sym = Symbol('test');
|
|
35
|
+
var symObj = Object(sym);
|
|
36
|
+
t.notEqual(typeof sym, 'string', 'Symbol is not a string');
|
|
37
|
+
t.equal(Object.prototype.toString.call(sym), '[object Symbol]', 'symbol primitive Object#toStrings properly');
|
|
38
|
+
t.equal(Object.prototype.toString.call(symObj), '[object Symbol]', 'symbol primitive Object#toStrings properly');
|
|
39
|
+
|
|
40
|
+
var symVal = 42;
|
|
41
|
+
obj[sym] = symVal;
|
|
42
|
+
for (sym in obj) { t.fail('symbol property key was found in for..in of object'); }
|
|
43
|
+
|
|
44
|
+
t.deepEqual(Object.keys(obj), [], 'no enumerable own keys on symbol-valued object');
|
|
45
|
+
t.deepEqual(Object.getOwnPropertyNames(obj), [], 'no own names on symbol-valued object');
|
|
46
|
+
t.deepEqual(Object.getOwnPropertySymbols(obj), [sym], 'one own symbol on symbol-valued object');
|
|
47
|
+
t.equal(Object.prototype.propertyIsEnumerable.call(obj, sym), true, 'symbol is enumerable');
|
|
48
|
+
t.deepEqual(Object.getOwnPropertyDescriptor(obj, sym), {
|
|
49
|
+
configurable: true,
|
|
50
|
+
enumerable: true,
|
|
51
|
+
value: 42,
|
|
52
|
+
writable: true
|
|
53
|
+
}, 'property descriptor is correct');
|
|
54
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
indent_style = space
|
|
5
|
+
indent_size = 4
|
|
6
|
+
end_of_line = lf
|
|
7
|
+
charset = utf-8
|
|
8
|
+
trim_trailing_whitespace = true
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
max_line_length = 160
|
|
11
|
+
quote_type = single
|
|
12
|
+
|
|
13
|
+
[test/*]
|
|
14
|
+
max_line_length = off
|
|
15
|
+
|
|
16
|
+
[LICENSE.md]
|
|
17
|
+
indent_size = off
|
|
18
|
+
|
|
19
|
+
[*.md]
|
|
20
|
+
max_line_length = off
|
|
21
|
+
|
|
22
|
+
[*.json]
|
|
23
|
+
max_line_length = off
|
|
24
|
+
|
|
25
|
+
[Makefile]
|
|
26
|
+
max_line_length = off
|
|
27
|
+
|
|
28
|
+
[CHANGELOG.md]
|
|
29
|
+
indent_style = space
|
|
30
|
+
indent_size = 2
|
|
31
|
+
|
|
32
|
+
[LICENSE]
|
|
33
|
+
indent_size = 2
|
|
34
|
+
max_line_length = off
|
|
35
|
+
|
|
36
|
+
[coverage/**/*]
|
|
37
|
+
indent_size = off
|
|
38
|
+
indent_style = off
|
|
39
|
+
indent = off
|
|
40
|
+
max_line_length = off
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
|
|
4
|
+
"extends": "@ljharb",
|
|
5
|
+
|
|
6
|
+
"ignorePatterns": [
|
|
7
|
+
"dist/",
|
|
8
|
+
],
|
|
9
|
+
|
|
10
|
+
"rules": {
|
|
11
|
+
"complexity": 0,
|
|
12
|
+
"consistent-return": 1,
|
|
13
|
+
"func-name-matching": 0,
|
|
14
|
+
"id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
|
|
15
|
+
"indent": [2, 4],
|
|
16
|
+
"max-lines-per-function": [2, { "max": 150 }],
|
|
17
|
+
"max-params": [2, 15],
|
|
18
|
+
"max-statements": [2, 52],
|
|
19
|
+
"multiline-comment-style": 0,
|
|
20
|
+
"no-continue": 1,
|
|
21
|
+
"no-magic-numbers": 0,
|
|
22
|
+
"no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
"overrides": [
|
|
26
|
+
{
|
|
27
|
+
"files": "test/**",
|
|
28
|
+
"rules": {
|
|
29
|
+
"function-paren-newline": 0,
|
|
30
|
+
"max-lines-per-function": 0,
|
|
31
|
+
"max-statements": 0,
|
|
32
|
+
"no-buffer-constructor": 0,
|
|
33
|
+
"no-extend-native": 0,
|
|
34
|
+
"no-throw-literal": 0,
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: [ljharb]
|
|
4
|
+
patreon: # Replace with a single Patreon username
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
+
tidelift: npm/qs
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
+
otechie: # Replace with a single Otechie username
|
|
12
|
+
custom: # Replace with a single custom sponsorship URL
|