Changeset 79a0317 for imaps-frontend/node_modules/has-symbols
- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/has-symbols
- Files:
-
- 3 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/has-symbols/CHANGELOG.md
r0c6b92a r79a0317 5 5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 8 ## [v1.1.0](https://github.com/inspect-js/has-symbols/compare/v1.0.3...v1.1.0) - 2024-12-02 9 10 ### Commits 11 12 - [actions] update workflows [`548c0bf`](https://github.com/inspect-js/has-symbols/commit/548c0bf8c9b1235458df7a1c0490b0064647a282) 13 - [actions] further shard; update action deps [`bec56bb`](https://github.com/inspect-js/has-symbols/commit/bec56bb0fb44b43a786686b944875a3175cf3ff3) 14 - [meta] use `npmignore` to autogenerate an npmignore file [`ac81032`](https://github.com/inspect-js/has-symbols/commit/ac81032809157e0a079e5264e9ce9b6f1275777e) 15 - [New] add types [`6469cbf`](https://github.com/inspect-js/has-symbols/commit/6469cbff1866cfe367b2b3d181d9296ec14b2a3d) 16 - [actions] update rebase action to use reusable workflow [`9c9d4d0`](https://github.com/inspect-js/has-symbols/commit/9c9d4d0d8938e4b267acdf8e421f4e92d1716d72) 17 - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`adb5887`](https://github.com/inspect-js/has-symbols/commit/adb5887ca9444849b08beb5caaa9e1d42320cdfb) 18 - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`13ec198`](https://github.com/inspect-js/has-symbols/commit/13ec198ec80f1993a87710af1606a1970b22c7cb) 19 - [Dev Deps] update `auto-changelog`, `core-js`, `tape` [`941be52`](https://github.com/inspect-js/has-symbols/commit/941be5248387cab1da72509b22acf3fdb223f057) 20 - [Tests] replace `aud` with `npm audit` [`74f49e9`](https://github.com/inspect-js/has-symbols/commit/74f49e9a9d17a443020784234a1c53ce765b3559) 21 - [Dev Deps] update `npmignore` [`9c0ac04`](https://github.com/inspect-js/has-symbols/commit/9c0ac0452a834f4c2a4b54044f2d6a89f17e9a70) 22 - [Dev Deps] add missing peer dep [`52337a5`](https://github.com/inspect-js/has-symbols/commit/52337a5621cced61f846f2afdab7707a8132cc12) 7 23 8 24 ## [v1.0.3](https://github.com/inspect-js/has-symbols/compare/v1.0.2...v1.0.3) - 2022-03-01 -
imaps-frontend/node_modules/has-symbols/index.js
r0c6b92a r79a0317 4 4 var hasSymbolSham = require('./shams'); 5 5 6 /** @type {import('.')} */ 6 7 module.exports = function hasNativeSymbols() { 7 8 if (typeof origSymbol !== 'function') { return false; } -
imaps-frontend/node_modules/has-symbols/package.json
r0c6b92a r79a0317 1 1 { 2 "name": "has-symbols", 3 "version": "1.0.3", 4 "description": "Determine if the JS environment has Symbol support. Supports spec, or shams.", 5 "main": "index.js", 6 "scripts": { 7 "prepublishOnly": "safe-publish-latest", 8 "prepublish": "not-in-publish || npm run prepublishOnly", 9 "pretest": "npm run --silent lint", 10 "test": "npm run tests-only", 11 "posttest": "aud --production", 12 "tests-only": "npm run test:stock && npm run test:staging && npm run test:shams", 13 "test:stock": "nyc node test", 14 "test:staging": "nyc node --harmony --es-staging test", 15 "test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs", 16 "test:shams:corejs": "nyc node test/shams/core-js.js", 17 "test:shams:getownpropertysymbols": "nyc node test/shams/get-own-property-symbols.js", 18 "lint": "eslint --ext=js,mjs .", 19 "version": "auto-changelog && git add CHANGELOG.md", 20 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" 21 }, 22 "repository": { 23 "type": "git", 24 "url": "git://github.com/inspect-js/has-symbols.git" 25 }, 26 "keywords": [ 27 "Symbol", 28 "symbols", 29 "typeof", 30 "sham", 31 "polyfill", 32 "native", 33 "core-js", 34 "ES6" 35 ], 36 "author": { 37 "name": "Jordan Harband", 38 "email": "ljharb@gmail.com", 39 "url": "http://ljharb.codes" 40 }, 41 "contributors": [ 42 { 43 "name": "Jordan Harband", 44 "email": "ljharb@gmail.com", 45 "url": "http://ljharb.codes" 46 } 47 ], 48 "funding": { 49 "url": "https://github.com/sponsors/ljharb" 50 }, 51 "license": "MIT", 52 "bugs": { 53 "url": "https://github.com/ljharb/has-symbols/issues" 54 }, 55 "homepage": "https://github.com/ljharb/has-symbols#readme", 56 "devDependencies": { 57 "@ljharb/eslint-config": "^20.2.3", 58 "aud": "^2.0.0", 59 "auto-changelog": "^2.4.0", 60 "core-js": "^2.6.12", 61 "eslint": "=8.8.0", 62 "get-own-property-symbols": "^0.9.5", 63 "nyc": "^10.3.2", 64 "safe-publish-latest": "^2.0.0", 65 "tape": "^5.5.2" 66 }, 67 "testling": { 68 "files": "test/index.js", 69 "browsers": [ 70 "iexplore/6.0..latest", 71 "firefox/3.0..6.0", 72 "firefox/15.0..latest", 73 "firefox/nightly", 74 "chrome/4.0..10.0", 75 "chrome/20.0..latest", 76 "chrome/canary", 77 "opera/10.0..latest", 78 "opera/next", 79 "safari/4.0..latest", 80 "ipad/6.0..latest", 81 "iphone/6.0..latest", 82 "android-browser/4.2" 83 ] 84 }, 85 "engines": { 86 "node": ">= 0.4" 87 }, 88 "auto-changelog": { 89 "output": "CHANGELOG.md", 90 "template": "keepachangelog", 91 "unreleased": false, 92 "commitLimit": false, 93 "backfillLimit": false, 94 "hideCredit": true 95 }, 96 "greenkeeper": { 97 "ignore": [ 98 "core-js" 99 ] 100 } 2 "_from": "has-symbols@^1.1.0", 3 "_id": "has-symbols@1.1.0", 4 "_inBundle": false, 5 "_integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", 6 "_location": "/has-symbols", 7 "_phantomChildren": {}, 8 "_requested": { 9 "type": "range", 10 "registry": true, 11 "raw": "has-symbols@^1.1.0", 12 "name": "has-symbols", 13 "escapedName": "has-symbols", 14 "rawSpec": "^1.1.0", 15 "saveSpec": null, 16 "fetchSpec": "^1.1.0" 17 }, 18 "_requiredBy": [ 19 "/es-abstract", 20 "/es-iterator-helpers", 21 "/get-intrinsic", 22 "/has-tostringtag", 23 "/is-symbol", 24 "/iterator.prototype", 25 "/object.assign", 26 "/safe-array-concat", 27 "/string.prototype.matchall", 28 "/unbox-primitive" 29 ], 30 "_resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", 31 "_shasum": "fc9c6a783a084951d0b971fe1018de813707a338", 32 "_spec": "has-symbols@^1.1.0", 33 "_where": "/home/stevetosak/Proekt/IMaps/imaps-frontend/node_modules/get-intrinsic", 34 "author": { 35 "name": "Jordan Harband", 36 "email": "ljharb@gmail.com", 37 "url": "http://ljharb.codes" 38 }, 39 "auto-changelog": { 40 "output": "CHANGELOG.md", 41 "template": "keepachangelog", 42 "unreleased": false, 43 "commitLimit": false, 44 "backfillLimit": false, 45 "hideCredit": true 46 }, 47 "bugs": { 48 "url": "https://github.com/ljharb/has-symbols/issues" 49 }, 50 "bundleDependencies": false, 51 "contributors": [ 52 { 53 "name": "Jordan Harband", 54 "email": "ljharb@gmail.com", 55 "url": "http://ljharb.codes" 56 } 57 ], 58 "deprecated": false, 59 "description": "Determine if the JS environment has Symbol support. Supports spec, or shams.", 60 "devDependencies": { 61 "@arethetypeswrong/cli": "^0.17.0", 62 "@ljharb/eslint-config": "^21.1.1", 63 "@ljharb/tsconfig": "^0.2.0", 64 "@types/core-js": "^2.5.8", 65 "@types/tape": "^5.6.5", 66 "auto-changelog": "^2.5.0", 67 "core-js": "^2.6.12", 68 "encoding": "^0.1.13", 69 "eslint": "=8.8.0", 70 "get-own-property-symbols": "^0.9.5", 71 "in-publish": "^2.0.1", 72 "npmignore": "^0.3.1", 73 "nyc": "^10.3.2", 74 "safe-publish-latest": "^2.0.0", 75 "tape": "^5.9.0", 76 "typescript": "next" 77 }, 78 "engines": { 79 "node": ">= 0.4" 80 }, 81 "funding": { 82 "url": "https://github.com/sponsors/ljharb" 83 }, 84 "homepage": "https://github.com/ljharb/has-symbols#readme", 85 "keywords": [ 86 "Symbol", 87 "symbols", 88 "typeof", 89 "sham", 90 "polyfill", 91 "native", 92 "core-js", 93 "ES6" 94 ], 95 "license": "MIT", 96 "main": "index.js", 97 "name": "has-symbols", 98 "publishConfig": { 99 "ignore": [ 100 ".github/workflows", 101 "types" 102 ] 103 }, 104 "repository": { 105 "type": "git", 106 "url": "git://github.com/inspect-js/has-symbols.git" 107 }, 108 "scripts": { 109 "lint": "eslint --ext=js,mjs .", 110 "postlint": "tsc -p . && attw -P", 111 "posttest": "npx npm@'>=10.2' audit --production", 112 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", 113 "prepack": "npmignore --auto --commentLines=autogenerated", 114 "prepublish": "not-in-publish || npm run prepublishOnly", 115 "prepublishOnly": "safe-publish-latest", 116 "pretest": "npm run --silent lint", 117 "test": "npm run tests-only", 118 "test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs", 119 "test:shams:corejs": "nyc node test/shams/core-js.js", 120 "test:shams:getownpropertysymbols": "nyc node test/shams/get-own-property-symbols.js", 121 "test:staging": "nyc node --harmony --es-staging test", 122 "test:stock": "nyc node test", 123 "tests-only": "npm run test:stock && npm run test:shams", 124 "version": "auto-changelog && git add CHANGELOG.md" 125 }, 126 "testling": { 127 "files": "test/index.js", 128 "browsers": [ 129 "iexplore/6.0..latest", 130 "firefox/3.0..6.0", 131 "firefox/15.0..latest", 132 "firefox/nightly", 133 "chrome/4.0..10.0", 134 "chrome/20.0..latest", 135 "chrome/canary", 136 "opera/10.0..latest", 137 "opera/next", 138 "safari/4.0..latest", 139 "ipad/6.0..latest", 140 "iphone/6.0..latest", 141 "android-browser/4.2" 142 ] 143 }, 144 "version": "1.1.0" 101 145 } -
imaps-frontend/node_modules/has-symbols/shams.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 /** @type {import('./shams')} */ 3 4 /* eslint complexity: [2, 18], max-statements: [2, 33] */ 4 5 module.exports = function hasSymbols() { … … 6 7 if (typeof Symbol.iterator === 'symbol') { return true; } 7 8 9 /** @type {{ [k in symbol]?: unknown }} */ 8 10 var obj = {}; 9 11 var sym = Symbol('test'); … … 24 26 var symVal = 42; 25 27 obj[sym] = symVal; 26 for ( symin obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop28 for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop 27 29 if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } 28 30 … … 35 37 36 38 if (typeof Object.getOwnPropertyDescriptor === 'function') { 37 var descriptor = Object.getOwnPropertyDescriptor(obj, sym); 39 // eslint-disable-next-line no-extra-parens 40 var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym)); 38 41 if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } 39 42 } -
imaps-frontend/node_modules/has-symbols/test/shams/core-js.js
r0c6b92a r79a0317 9 9 t.end(); 10 10 }); 11 // @ts-expect-error TS is stupid and doesn't know about top level return 11 12 return; 12 13 } -
imaps-frontend/node_modules/has-symbols/test/shams/get-own-property-symbols.js
r0c6b92a r79a0317 9 9 t.end(); 10 10 }); 11 // @ts-expect-error TS is stupid and doesn't know about top level return 11 12 return; 12 13 } -
imaps-frontend/node_modules/has-symbols/test/tests.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 /** @type {(t: import('tape').Test) => false | void} */ 3 4 // eslint-disable-next-line consistent-return 4 5 module.exports = function runSymbolTests(t) { … … 32 33 t.equal(typeof Object.getOwnPropertySymbols, 'function', 'Object.getOwnPropertySymbols is a function'); 33 34 35 /** @type {{ [k in symbol]?: unknown }} */ 34 36 var obj = {}; 35 37 var sym = Symbol('test'); … … 41 43 var symVal = 42; 42 44 obj[sym] = symVal; 43 // eslint-disable-next-line no-restricted-syntax 44 for ( symin obj) { t.fail('symbol property key was found in for..in of object'); }45 // eslint-disable-next-line no-restricted-syntax, no-unused-vars 46 for (var _ in obj) { t.fail('symbol property key was found in for..in of object'); } 45 47 46 48 t.deepEqual(Object.keys(obj), [], 'no enumerable own keys on symbol-valued object');
Note:
See TracChangeset
for help on using the changeset viewer.