Changeset 79a0317 for imaps-frontend/node_modules/es-set-tostringtag
- Timestamp:
- 01/21/25 03:08:24 (4 weeks ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/es-set-tostringtag
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-set-tostringtag/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 ## [v2.1.0](https://github.com/es-shims/es-set-tostringtag/compare/v2.0.3...v2.1.0) - 2025-01-01 9 10 ### Commits 11 12 - [actions] split out node 10-20, and 20+ [`ede033c`](https://github.com/es-shims/es-set-tostringtag/commit/ede033cc4e506c3966d2d482d4ac5987e329162a) 13 - [types] use shared config [`28ef164`](https://github.com/es-shims/es-set-tostringtag/commit/28ef164ad7c5bc21837c79f7ef25542a1f258ade) 14 - [New] add `nonConfigurable` option [`3bee3f0`](https://github.com/es-shims/es-set-tostringtag/commit/3bee3f04caddd318f3932912212ed20b2d62aad7) 15 - [Fix] validate boolean option argument [`3c8a609`](https://github.com/es-shims/es-set-tostringtag/commit/3c8a609c795a305ccca163f0ff6956caa88cdc0e) 16 - [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/get-intrinsic`, `@types/tape`, `auto-changelog`, `tape` [`501a969`](https://github.com/es-shims/es-set-tostringtag/commit/501a96998484226e07f5ffd447e8f305a998f1d8) 17 - [Tests] add coverage [`18af289`](https://github.com/es-shims/es-set-tostringtag/commit/18af2897b4e937373c9b8c8831bc338932246470) 18 - [readme] document `force` option [`bd446a1`](https://github.com/es-shims/es-set-tostringtag/commit/bd446a107b71a2270278442e5124f45590d3ee64) 19 - [Tests] use `@arethetypeswrong/cli` [`7c2c2fa`](https://github.com/es-shims/es-set-tostringtag/commit/7c2c2fa3cca0f4d263603adb75426b239514598f) 20 - [Tests] replace `aud` with `npm audit` [`9e372d7`](https://github.com/es-shims/es-set-tostringtag/commit/9e372d7e6db3dab405599a14d9074a99a03b8242) 21 - [Deps] update `get-intrinsic` [`7df1216`](https://github.com/es-shims/es-set-tostringtag/commit/7df12167295385c2a547410e687cb0c04f3a34b9) 22 - [Deps] update `hasown` [`993a7d2`](https://github.com/es-shims/es-set-tostringtag/commit/993a7d200e2059fd857ec1a25d0a49c2c34ae6e2) 23 - [Dev Deps] add missing peer dep [`148ed8d`](https://github.com/es-shims/es-set-tostringtag/commit/148ed8db99a7a94f9af3823fd083e6e437fa1587) 7 24 8 25 ## [v2.0.3](https://github.com/es-shims/es-set-tostringtag/compare/v2.0.2...v2.0.3) - 2024-02-20 -
imaps-frontend/node_modules/es-set-tostringtag/README.md
r0c6b92a r79a0317 10 10 A helper to optimistically set Symbol.toStringTag, when possible. 11 11 12 ## Example 12 13 Most common usage: 13 14 ```js … … 23 24 assert.equal(Object.prototype.toString.call(obj), '[object tagged!]'); 24 25 ``` 26 27 ## Options 28 An optional options argument can be provided as the third argument. The available options are: 29 30 ### `force` 31 If the `force` option is set to `true`, the toStringTag will be set even if it is already set. 32 33 ### `nonConfigurable` 34 If the `nonConfigurable` option is set to `true`, the toStringTag will be defined as non-configurable when possible. 25 35 26 36 ## Tests -
imaps-frontend/node_modules/es-set-tostringtag/index.d.ts
r0c6b92a r79a0317 2 2 object: object & { [Symbol.toStringTag]?: unknown }, 3 3 value: string | unknown, 4 options?: { force?: boolean }, 4 options?: { 5 force?: boolean; 6 nonConfigurable?: boolean; 7 }, 5 8 ): void; 6 9 -
imaps-frontend/node_modules/es-set-tostringtag/index.js
r0c6b92a r79a0317 7 7 var hasToStringTag = require('has-tostringtag/shams')(); 8 8 var hasOwn = require('hasown'); 9 var $TypeError = require('es-errors/type'); 9 10 10 11 var toStringTag = hasToStringTag ? Symbol.toStringTag : null; … … 12 13 /** @type {import('.')} */ 13 14 module.exports = function setToStringTag(object, value) { 14 var overrideIfSet = arguments.length > 2 && arguments[2] && arguments[2].force; 15 var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force; 16 var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable; 17 if ( 18 (typeof overrideIfSet !== 'undefined' && typeof overrideIfSet !== 'boolean') 19 || (typeof nonConfigurable !== 'undefined' && typeof nonConfigurable !== 'boolean') 20 ) { 21 throw new $TypeError('if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans'); 22 } 15 23 if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) { 16 24 if ($defineProperty) { 17 25 $defineProperty(object, toStringTag, { 18 configurable: true,26 configurable: !nonConfigurable, 19 27 enumerable: false, 20 28 value: value, -
imaps-frontend/node_modules/es-set-tostringtag/package.json
r0c6b92a r79a0317 1 1 { 2 "name": "es-set-tostringtag", 3 "version": "2.0.3", 4 "description": "A helper to optimistically set Symbol.toStringTag, when possible.", 5 "main": "index.js", 6 "exports": { 7 ".": "./index.js", 8 "./package.json": "./package.json" 9 }, 10 "sideEffects": false, 11 "scripts": { 12 "prepack": "npmignore --auto --commentLines=autogenerated", 13 "prepublishOnly": "safe-publish-latest", 14 "prepublish": "not-in-publish || npm run prepublishOnly", 15 "prelint": "evalmd README.md", 16 "lint": "eslint --ext=js,mjs .", 17 "postlint": "tsc -p .", 18 "pretest": "npm run lint", 19 "tests-only": "tape 'test/**/*.js'", 20 "test": "npm run tests-only", 21 "posttest": "aud --production", 22 "version": "auto-changelog && git add CHANGELOG.md", 23 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" 24 }, 25 "repository": { 26 "type": "git", 27 "url": "git+https://github.com/es-shims/es-set-tostringtag.git" 28 }, 29 "author": "Jordan Harband <ljharb@gmail.com>", 30 "license": "MIT", 31 "bugs": { 32 "url": "https://github.com/es-shims/es-set-tostringtag/issues" 33 }, 34 "homepage": "https://github.com/es-shims/es-set-tostringtag#readme", 35 "devDependencies": { 36 "@ljharb/eslint-config": "^21.1.0", 37 "@types/get-intrinsic": "^1.2.2", 38 "@types/has-symbols": "^1.0.2", 39 "@types/tape": "^5.6.4", 40 "aud": "^2.0.4", 41 "auto-changelog": "^2.4.0", 42 "eslint": "=8.8.0", 43 "evalmd": "^0.0.19", 44 "in-publish": "^2.0.1", 45 "npmignore": "^0.3.1", 46 "safe-publish-latest": "^2.0.0", 47 "tape": "^5.7.5", 48 "typescript": "^5.4.0-dev.20240220" 49 }, 50 "dependencies": { 51 "get-intrinsic": "^1.2.4", 52 "has-tostringtag": "^1.0.2", 53 "hasown": "^2.0.1" 54 }, 55 "engines": { 56 "node": ">= 0.4" 57 }, 58 "auto-changelog": { 59 "output": "CHANGELOG.md", 60 "template": "keepachangelog", 61 "unreleased": false, 62 "commitLimit": false, 63 "backfillLimit": false, 64 "hideCredit": true 65 }, 66 "testling": { 67 "files": "./test/index.js" 68 }, 69 "publishConfig": { 70 "ignore": [ 71 ".github/workflows" 72 ] 73 } 2 "_from": "es-set-tostringtag@^2.1.0", 3 "_id": "es-set-tostringtag@2.1.0", 4 "_inBundle": false, 5 "_integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", 6 "_location": "/es-set-tostringtag", 7 "_phantomChildren": {}, 8 "_requested": { 9 "type": "range", 10 "registry": true, 11 "raw": "es-set-tostringtag@^2.1.0", 12 "name": "es-set-tostringtag", 13 "escapedName": "es-set-tostringtag", 14 "rawSpec": "^2.1.0", 15 "saveSpec": null, 16 "fetchSpec": "^2.1.0" 17 }, 18 "_requiredBy": [ 19 "/es-abstract", 20 "/es-iterator-helpers" 21 ], 22 "_resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", 23 "_shasum": "f31dbbe0c183b00a6d26eb6325c810c0fd18bd4d", 24 "_spec": "es-set-tostringtag@^2.1.0", 25 "_where": "/home/stevetosak/Proekt/IMaps/imaps-frontend/node_modules/es-abstract", 26 "author": { 27 "name": "Jordan Harband", 28 "email": "ljharb@gmail.com" 29 }, 30 "auto-changelog": { 31 "output": "CHANGELOG.md", 32 "template": "keepachangelog", 33 "unreleased": false, 34 "commitLimit": false, 35 "backfillLimit": false, 36 "hideCredit": true 37 }, 38 "bugs": { 39 "url": "https://github.com/es-shims/es-set-tostringtag/issues" 40 }, 41 "bundleDependencies": false, 42 "dependencies": { 43 "es-errors": "^1.3.0", 44 "get-intrinsic": "^1.2.6", 45 "has-tostringtag": "^1.0.2", 46 "hasown": "^2.0.2" 47 }, 48 "deprecated": false, 49 "description": "A helper to optimistically set Symbol.toStringTag, when possible.", 50 "devDependencies": { 51 "@arethetypeswrong/cli": "^0.17.2", 52 "@ljharb/eslint-config": "^21.1.1", 53 "@ljharb/tsconfig": "^0.2.3", 54 "@types/get-intrinsic": "^1.2.3", 55 "@types/has-symbols": "^1.0.2", 56 "@types/tape": "^5.8.0", 57 "auto-changelog": "^2.5.0", 58 "encoding": "^0.1.13", 59 "eslint": "=8.8.0", 60 "evalmd": "^0.0.19", 61 "in-publish": "^2.0.1", 62 "npmignore": "^0.3.1", 63 "nyc": "^10.3.2", 64 "safe-publish-latest": "^2.0.0", 65 "tape": "^5.9.0", 66 "typescript": "next" 67 }, 68 "engines": { 69 "node": ">= 0.4" 70 }, 71 "exports": { 72 ".": "./index.js", 73 "./package.json": "./package.json" 74 }, 75 "homepage": "https://github.com/es-shims/es-set-tostringtag#readme", 76 "license": "MIT", 77 "main": "index.js", 78 "name": "es-set-tostringtag", 79 "publishConfig": { 80 "ignore": [ 81 ".github/workflows" 82 ] 83 }, 84 "repository": { 85 "type": "git", 86 "url": "git+https://github.com/es-shims/es-set-tostringtag.git" 87 }, 88 "scripts": { 89 "lint": "eslint --ext=js,mjs .", 90 "postlint": "tsc -p . && attw -P", 91 "posttest": "npx npm@\">= 10.2\" audit --production", 92 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", 93 "prelint": "evalmd README.md", 94 "prepack": "npmignore --auto --commentLines=autogenerated", 95 "prepublish": "not-in-publish || npm run prepublishOnly", 96 "prepublishOnly": "safe-publish-latest", 97 "pretest": "npm run lint", 98 "test": "npm run tests-only", 99 "tests-only": "nyc tape 'test/**/*.js'", 100 "version": "auto-changelog && git add CHANGELOG.md" 101 }, 102 "sideEffects": false, 103 "testling": { 104 "files": "./test/index.js" 105 }, 106 "version": "2.1.0" 74 107 } -
imaps-frontend/node_modules/es-set-tostringtag/test/index.js
r0c6b92a r79a0317 15 15 16 16 setToStringTag(obj, sentinel); 17 18 t['throws']( 19 // @ts-expect-error 20 function () { setToStringTag(obj, sentinel, { force: 'yes' }); }, 21 TypeError, 22 'throws if options is not an object' 23 ); 17 24 18 25 t.test('has Symbol.toStringTag', { skip: !hasToStringTag }, function (st) { … … 33 40 setToStringTag(tagged, 'new tag', { force: true }); 34 41 st.equal(String(tagged), '[object new tag]', 'toStringTag is changed with force: true'); 42 43 st.deepEqual( 44 Object.getOwnPropertyDescriptor(tagged, Symbol.toStringTag), 45 { 46 configurable: true, 47 enumerable: false, 48 value: 'new tag', 49 writable: false 50 }, 51 'has expected property descriptor' 52 ); 53 54 setToStringTag(tagged, 'new tag', { force: true, nonConfigurable: true }); 55 st.deepEqual( 56 Object.getOwnPropertyDescriptor(tagged, Symbol.toStringTag), 57 { 58 configurable: false, 59 enumerable: false, 60 value: 'new tag', 61 writable: false 62 }, 63 'is nonconfigurable' 64 ); 35 65 36 66 st.end(); -
imaps-frontend/node_modules/es-set-tostringtag/tsconfig.json
r0c6b92a r79a0317 1 1 { 2 "extends": "@ljharb/tsconfig", 2 3 "compilerOptions": { 3 /* Visit https://aka.ms/tsconfig.json to read more about this file */ 4 5 /* Projects */ 6 7 /* Language and Environment */ 8 "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ 9 // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ 10 // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ 11 "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ 12 // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ 13 14 /* Modules */ 15 "module": "commonjs", /* Specify what module code is generated. */ 16 // "rootDir": "./", /* Specify the root folder within your source files. */ 17 // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ 18 // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ 19 // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ 20 // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ 21 // "typeRoots": ["types"], /* Specify multiple folders that act like `./node_modules/@types`. */ 22 "resolveJsonModule": true, /* Enable importing .json files. */ 23 // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ 24 25 /* JavaScript Support */ 26 "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ 27 "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ 28 "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */ 29 30 /* Emit */ 31 "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ 32 "declarationMap": true, /* Create sourcemaps for d.ts files. */ 33 "noEmit": true, /* Disable emitting files from a compilation. */ 34 35 /* Interop Constraints */ 36 "allowSyntheticDefaultImports": true, /* Allow `import x from y` when a module doesn't have a default export. */ 37 "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ 38 "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ 39 40 /* Type Checking */ 41 "strict": true, /* Enable all strict type-checking options. */ 42 43 /* Completeness */ 44 // "skipLibCheck": true /* Skip type checking all .d.ts files. */ 4 "target": "es2021", 45 5 }, 46 6 "exclude": [
Note:
See TracChangeset
for help on using the changeset viewer.