Changeset 79a0317 for imaps-frontend/node_modules/get-symbol-description
- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/get-symbol-description
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/get-symbol-description/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/get-symbol-description/compare/v1.0.2...v1.1.0) - 2024-12-17 9 10 ### Commits 11 12 - [New] add types [`b957b65`](https://github.com/inspect-js/get-symbol-description/commit/b957b65e08bc1a6ac95fa5ab769ec241b9cac885) 13 - [actions] split out node 10-20, and 20+ [`bfbcae2`](https://github.com/inspect-js/get-symbol-description/commit/bfbcae2ab7224fcf4328bc139ba79445d64030a6) 14 - [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `es-value-fixtures`, `object-inspect`, tape` [`197ba80`](https://github.com/inspect-js/get-symbol-description/commit/197ba80ef87153e28f20ec353e8b926ddb145da0) 15 - [Refactor] use `call-bound` directly [`9df4de4`](https://github.com/inspect-js/get-symbol-description/commit/9df4de4e8faae09e84c5ac97ec22b4f010d03fca) 16 - [Deps] update `call-bind`, `get-intrinsic` [`44c1400`](https://github.com/inspect-js/get-symbol-description/commit/44c1400d5088429f6a32a5f81628d9f7270f68ca) 17 - [Dev Deps] update `hasown`, `tape` [`44e2264`](https://github.com/inspect-js/get-symbol-description/commit/44e226470a83e89523bb4898e1ef7a0942e6cb3a) 18 - [Tests] replace `aud` with `npm audit` [`62d9414`](https://github.com/inspect-js/get-symbol-description/commit/62d9414d316f7ba2320cb6fad8d9fd4d8b99c420) 19 - [Deps] update `call-bind` [`396ee27`](https://github.com/inspect-js/get-symbol-description/commit/396ee2763238415c51eec62fbc41bf274c6552b2) 20 - [Dev Deps] add missing peer dep [`cc4b9eb`](https://github.com/inspect-js/get-symbol-description/commit/cc4b9eb527504a49e91f560ee6d9cb942db4e46f) 7 21 8 22 ## [v1.0.2](https://github.com/inspect-js/get-symbol-description/compare/v1.0.1...v1.0.2) - 2024-02-07 -
imaps-frontend/node_modules/get-symbol-description/getInferredName.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 /** @type {NonNullable<import('./getInferredName')> | undefined} */ 3 4 var getInferredName; 4 5 try { 5 // eslint-disable-next-line no-new-func 6 getInferredName = Function('s', 'return { [s]() {} }[s].name;');6 // eslint-disable-next-line no-new-func, no-extra-parens 7 getInferredName = /** @type {NonNullable<import('./getInferredName')>} */ (Function('s', 'return { [s]() {} }[s].name;')); 7 8 } catch (e) {} 8 9 9 10 var inferred = function () {}; 11 12 /** @type {import('./getInferredName')} */ 10 13 module.exports = getInferredName && inferred.name === 'inferred' ? getInferredName : null; -
imaps-frontend/node_modules/get-symbol-description/index.js
r0c6b92a r79a0317 3 3 var GetIntrinsic = require('get-intrinsic'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 7 7 var $SyntaxError = require('es-errors/syntax'); 8 8 var getGlobalSymbolDescription = GetIntrinsic('%Symbol.keyFor%', true); 9 /** @type {undefined | ((thisArg: symbol | Symbol) => symbol)} */ 9 10 var thisSymbolValue = callBound('%Symbol.prototype.valueOf%', true); 11 /** @type {undefined | ((thisArg: symbol | Symbol) => string)} */ 10 12 var symToStr = callBound('Symbol.prototype.toString', true); 13 /** @type {(thisArg: string, start?: number, end?: number) => string} */ 11 14 var $strSlice = callBound('String.prototype.slice'); 12 15 13 16 var getInferredName = require('./getInferredName'); 14 17 18 /** @type {import('.')} */ 15 19 /* eslint-disable consistent-return */ 16 20 module.exports = callBound('%Symbol.prototype.description%', true) || function getSymbolDescription(symbol) { … … 38 42 } 39 43 40 desc = $strSlice(symToStr(sym), 7, -1); // str.slice('Symbol('.length, -')'.length); 44 // eslint-disable-next-line no-extra-parens 45 desc = $strSlice(/** @type {NonNullable<typeof symToStr>} */ (symToStr)(sym), 7, -1); // str.slice('Symbol('.length, -')'.length); 41 46 if (desc) { 42 47 return desc; -
imaps-frontend/node_modules/get-symbol-description/package.json
r0c6b92a r79a0317 1 1 { 2 "name": "get-symbol-description", 3 "version": "1.0.2", 4 "description": "Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.", 5 "main": "index.js", 6 "exports": { 7 ".": "./index.js", 8 "./getInferredName": "./getInferredName.js", 9 "./package.json": "./package.json" 10 }, 11 "scripts": { 12 "prepack": "npmignore --auto --commentLines=autogenerated", 13 "prepublish": "not-in-publish || npm run prepublishOnly", 14 "prepublishOnly": "safe-publish-latest", 15 "lint": "eslint --ext=.js,.mjs .", 16 "postlint": "evalmd README.md", 17 "pretest": "npm run lint", 18 "tests-only": "nyc tape 'test/**/*.js'", 19 "test": "npm run tests-only", 20 "posttest": "aud --production", 21 "version": "auto-changelog && git add CHANGELOG.md", 22 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" 23 }, 24 "repository": { 25 "type": "git", 26 "url": "git+https://github.com/inspect-js/get-symbol-description.git" 27 }, 28 "keywords": [ 29 "symbol", 30 "ecmascript", 31 "javascript", 32 "description" 33 ], 34 "author": "Jordan Harband <ljharb@gmail.com>", 35 "funding": { 36 "url": "https://github.com/sponsors/ljharb" 37 }, 38 "license": "MIT", 39 "bugs": { 40 "url": "https://github.com/inspect-js/get-symbol-description/issues" 41 }, 42 "homepage": "https://github.com/inspect-js/get-symbol-description#readme", 43 "dependencies": { 44 "call-bind": "^1.0.5", 45 "es-errors": "^1.3.0", 46 "get-intrinsic": "^1.2.4" 47 }, 48 "devDependencies": { 49 "@ljharb/eslint-config": "^21.1.0", 50 "aud": "^2.0.4", 51 "auto-changelog": "^2.4.0", 52 "es-value-fixtures": "^1.4.2", 53 "eslint": "=8.8.0", 54 "evalmd": "^0.0.19", 55 "for-each": "^0.3.3", 56 "hasown": "^2.0.0", 57 "in-publish": "^2.0.1", 58 "npmignore": "^0.3.1", 59 "nyc": "^10.3.2", 60 "object-inspect": "^1.13.1", 61 "safe-publish-latest": "^2.0.0", 62 "tape": "^5.7.4" 63 }, 64 "engines": { 65 "node": ">= 0.4" 66 }, 67 "auto-changelog": { 68 "output": "CHANGELOG.md", 69 "template": "keepachangelog", 70 "unreleased": false, 71 "commitLimit": false, 72 "backfillLimit": false, 73 "hideCredit": true 74 }, 75 "publishConfig": { 76 "ignore": [ 77 ".github/workflows" 78 ] 79 } 2 "_from": "get-symbol-description@^1.1.0", 3 "_id": "get-symbol-description@1.1.0", 4 "_inBundle": false, 5 "_integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", 6 "_location": "/get-symbol-description", 7 "_phantomChildren": {}, 8 "_requested": { 9 "type": "range", 10 "registry": true, 11 "raw": "get-symbol-description@^1.1.0", 12 "name": "get-symbol-description", 13 "escapedName": "get-symbol-description", 14 "rawSpec": "^1.1.0", 15 "saveSpec": null, 16 "fetchSpec": "^1.1.0" 17 }, 18 "_requiredBy": [ 19 "/es-abstract" 20 ], 21 "_resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", 22 "_shasum": "7bdd54e0befe8ffc9f3b4e203220d9f1e881b6ee", 23 "_spec": "get-symbol-description@^1.1.0", 24 "_where": "/home/stevetosak/Proekt/IMaps/imaps-frontend/node_modules/es-abstract", 25 "author": { 26 "name": "Jordan Harband", 27 "email": "ljharb@gmail.com" 28 }, 29 "auto-changelog": { 30 "output": "CHANGELOG.md", 31 "template": "keepachangelog", 32 "unreleased": false, 33 "commitLimit": false, 34 "backfillLimit": false, 35 "hideCredit": true 36 }, 37 "bugs": { 38 "url": "https://github.com/inspect-js/get-symbol-description/issues" 39 }, 40 "bundleDependencies": false, 41 "dependencies": { 42 "call-bound": "^1.0.3", 43 "es-errors": "^1.3.0", 44 "get-intrinsic": "^1.2.6" 45 }, 46 "deprecated": false, 47 "description": "Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.", 48 "devDependencies": { 49 "@arethetypeswrong/cli": "^0.17.1", 50 "@ljharb/eslint-config": "^21.1.1", 51 "@ljharb/tsconfig": "^0.2.2", 52 "@types/for-each": "^0.3.3", 53 "@types/get-intrinsic": "^1.2.3", 54 "@types/object-inspect": "^1.13.0", 55 "@types/tape": "^5.7.0", 56 "auto-changelog": "^2.5.0", 57 "encoding": "^0.1.13", 58 "es-value-fixtures": "^1.5.0", 59 "eslint": "=8.8.0", 60 "evalmd": "^0.0.19", 61 "for-each": "^0.3.3", 62 "hasown": "^2.0.2", 63 "in-publish": "^2.0.1", 64 "npmignore": "^0.3.1", 65 "nyc": "^10.3.2", 66 "object-inspect": "^1.13.3", 67 "safe-publish-latest": "^2.0.0", 68 "tape": "^5.9.0", 69 "typescript": "^5.8.0-dev.20241216" 70 }, 71 "engines": { 72 "node": ">= 0.4" 73 }, 74 "exports": { 75 ".": "./index.js", 76 "./getInferredName": "./getInferredName.js", 77 "./package.json": "./package.json" 78 }, 79 "funding": { 80 "url": "https://github.com/sponsors/ljharb" 81 }, 82 "homepage": "https://github.com/inspect-js/get-symbol-description#readme", 83 "keywords": [ 84 "symbol", 85 "ecmascript", 86 "javascript", 87 "description" 88 ], 89 "license": "MIT", 90 "main": "index.js", 91 "name": "get-symbol-description", 92 "publishConfig": { 93 "ignore": [ 94 ".github/workflows" 95 ] 96 }, 97 "repository": { 98 "type": "git", 99 "url": "git+https://github.com/inspect-js/get-symbol-description.git" 100 }, 101 "scripts": { 102 "lint": "eslint --ext=.js,.mjs .", 103 "postlint": "tsc && attw -P", 104 "posttest": "npx npm@'>= 10.2' audit --production", 105 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", 106 "prelint": "evalmd README.md", 107 "prepack": "npmignore --auto --commentLines=autogenerated", 108 "prepublish": "not-in-publish || npm run prepublishOnly", 109 "prepublishOnly": "safe-publish-latest", 110 "pretest": "npm run lint", 111 "test": "npm run tests-only", 112 "tests-only": "nyc tape 'test/**/*.js'", 113 "version": "auto-changelog && git add CHANGELOG.md" 114 }, 115 "version": "1.1.0" 80 116 } -
imaps-frontend/node_modules/get-symbol-description/test/index.js
r0c6b92a r79a0317 13 13 t.test('no symbols', { skip: v.hasSymbols }, function (st) { 14 14 st['throws']( 15 // @ts-expect-error 15 16 getSymbolDescription, 16 17 SyntaxError, … … 21 22 }); 22 23 23 forEach(v.nonSymbolPrimitives.concat(v.objects), function (nonSymbol) { 24 forEach([].concat( 25 // @ts-expect-error TS sucks with concat 26 v.nonSymbolPrimitives, 27 v.objects 28 ), function (nonSymbol) { 24 29 t['throws']( 25 30 function () { getSymbolDescription(nonSymbol); }, … … 31 36 t.test('with symbols', { skip: !v.hasSymbols }, function (st) { 32 37 forEach( 33 [ 38 // eslint-disable-next-line no-extra-parens 39 /** @type {[symbol, undefined | string][]} */ ([ 34 40 [Symbol(), undefined], 35 41 [Symbol(undefined), undefined], 42 // @ts-expect-error 36 43 [Symbol(null), 'null'], 37 44 [Symbol.iterator, 'Symbol.iterator'], 38 45 [Symbol('foo'), 'foo'] 39 ] ,46 ]), 40 47 function (pair) { 41 48 var sym = pair[0];
Note:
See TracChangeset
for help on using the changeset viewer.