Changeset 79a0317 for imaps-frontend/node_modules/is-string
- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/is-string
- Files:
-
- 2 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/is-string/.eslintrc
r0c6b92a r79a0317 6 6 "rules": { 7 7 "func-name-matching": 0, 8 "max-statements": [2, 15]9 8 }, 10 11 "overrides": [12 {13 "files": ["test.js"],14 "rules": {15 "no-magic-numbers": 0,16 },17 },18 ],19 9 } -
imaps-frontend/node_modules/is-string/CHANGELOG.md
r0c6b92a r79a0317 7 7 8 8 Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). 9 10 ## [v1.1.1](https://github.com/inspect-js/is-string/compare/v1.1.0...v1.1.1) - 2024-12-15 11 12 ### Commits 13 14 - [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/tsconfig`, `@types/tape` [`c1f7ef7`](https://github.com/inspect-js/is-string/commit/c1f7ef7948b012f769ee3a59952f34ba75a5f5c0) 15 - [Refactor] use `call-bound` directly [`ba8a78f`](https://github.com/inspect-js/is-string/commit/ba8a78fc1c1fe9b4223c9a8721579026d5ddbce1) 16 - [Deps] update `call-bind` [`93c352f`](https://github.com/inspect-js/is-string/commit/93c352fd578379c03cd068aea7590de60068a44e) 17 18 ## [v1.1.0](https://github.com/inspect-js/is-string/compare/v1.0.7...v1.1.0) - 2024-12-01 19 20 ### Commits 21 22 - [actions] reuse common workflows [`12aa75b`](https://github.com/inspect-js/is-string/commit/12aa75b96e2d3f5cd0da139073afba41e6250951) 23 - [meta] use `npmignore` to autogenerate an npmignore file [`6401572`](https://github.com/inspect-js/is-string/commit/64015720bd63e517d84752eb750bc78178bf707c) 24 - [actions] split out node 10-20, and 20+ [`223540c`](https://github.com/inspect-js/is-string/commit/223540c6fd5ec982b866bb1b8b3fac37ef5913de) 25 - [New] add types [`7e83d67`](https://github.com/inspect-js/is-string/commit/7e83d67ae35a65b4d59d59760c7af9e68aafb4a4) 26 - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `core-js`, `safe-publish-latest`, `tape` [`febd26e`](https://github.com/inspect-js/is-string/commit/febd26e9211519506d36cd236eca293c7773ae99) 27 - [readme] add github actions/codecov badges; update URLs [`f6bf065`](https://github.com/inspect-js/is-string/commit/f6bf0657c3b4882844af6b93ecc49872ca15f503) 28 - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `core-js`, `tape` [`8afc37a`](https://github.com/inspect-js/is-string/commit/8afc37ae53d7a1888a28e298eb986a9f534fb46e) 29 - [Robustness] use `call-bind` [`ac86dd7`](https://github.com/inspect-js/is-string/commit/ac86dd7fcf68b90772d1c9f8dd931e0442908f4a) 30 - [actions] update rebase action to use reusable workflow [`77058c8`](https://github.com/inspect-js/is-string/commit/77058c8c9e70dc77a5331dd654004e1f8500e985) 31 - [actions] update codecov uploader [`4312be5`](https://github.com/inspect-js/is-string/commit/4312be511df011bb3f3bcc9a46e57755c18465ea) 32 - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `core-js`, `tape` [`98c3779`](https://github.com/inspect-js/is-string/commit/98c3779e29220c495b216b6d7cb0813dbe146b59) 33 - [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `core-js`, `npmignore`, `tape` [`7d8e0e5`](https://github.com/inspect-js/is-string/commit/7d8e0e5e8a9631ffef4def01c7fe4029147cbf89) 34 - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `core-js`, `safe-publish-latest`, `tape` [`3284ad1`](https://github.com/inspect-js/is-string/commit/3284ad1a9aeff3eed23d177501c0920e9c5841e3) 35 - [Tests] replace `aud` with `npm audit` [`8cb7ea7`](https://github.com/inspect-js/is-string/commit/8cb7ea7a493d51435bb093a55acbd32a206e7c1a) 36 - [Refactor] skip expensive check, for null [`20fde50`](https://github.com/inspect-js/is-string/commit/20fde5092adddc024562f391a96db0b61478a56d) 37 - [Deps] update `has-tostringtag` [`b67a78d`](https://github.com/inspect-js/is-string/commit/b67a78d4b64d6337d0b6f07ae0af6b04dec327d4) 38 - [meta] fix repo URL [`1a2ee6b`](https://github.com/inspect-js/is-string/commit/1a2ee6b4556ebd56bdc1288cf34b942ee3b60458) 39 - [meta] better `eccheck` command [`6913c75`](https://github.com/inspect-js/is-string/commit/6913c75f6e7469e421880a1593c440783aa50ac6) 40 - [Dev Deps] add missing peer dep [`8ac8551`](https://github.com/inspect-js/is-string/commit/8ac8551d76bf8b68a94ad3504fcbf8f99d16e756) 9 41 10 42 ## [v1.0.7](https://github.com/inspect-js/is-string/compare/v1.0.6...v1.0.7) - 2021-08-05 -
imaps-frontend/node_modules/is-string/README.md
r0c6b92a r79a0317 1 # is-string <sup>[![Version Badge][ 2]][1]</sup>1 # is-string <sup>[![Version Badge][npm-version-svg]][package-url]</sup> 2 2 3 3 [![github actions][actions-image]][actions-url] 4 4 [![coverage][codecov-image]][codecov-url] 5 [![dependency status][ 5]][6]6 [![dev dependency status][ 7]][8]5 [![dependency status][deps-svg]][deps-url] 6 [![dev dependency status][dev-deps-svg]][dev-deps-url] 7 7 [![License][license-image]][license-url] 8 8 [![Downloads][downloads-image]][downloads-url] 9 9 10 [![npm badge][ 11]][1]10 [![npm badge][npm-badge-png]][package-url] 11 11 12 12 Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag. … … 40 40 Simply clone the repo, `npm install`, and run `npm test` 41 41 42 [ 1]: https://npmjs.org/package/is-string43 [ 2]: https://versionbadg.es/inspect-js/is-string.svg44 [ 5]: https://david-dm.org/inspect-js/is-string.svg45 [ 6]: https://david-dm.org/inspect-js/is-string46 [ 7]: https://david-dm.org/inspect-js/is-string/dev-status.svg47 [ 8]: https://david-dm.org/inspect-js/is-string#info=devDependencies48 [ 11]: https://nodei.co/npm/is-string.png?downloads=true&stars=true42 [package-url]: https://npmjs.org/package/is-string 43 [npm-version-svg]: https://versionbadg.es/inspect-js/is-string.svg 44 [deps-svg]: https://david-dm.org/inspect-js/is-string.svg 45 [deps-url]: https://david-dm.org/inspect-js/is-string 46 [dev-deps-svg]: https://david-dm.org/inspect-js/is-string/dev-status.svg 47 [dev-deps-url]: https://david-dm.org/inspect-js/is-string#info=devDependencies 48 [npm-badge-png]: https://nodei.co/npm/is-string.png?downloads=true&stars=true 49 49 [license-image]: https://img.shields.io/npm/l/is-string.svg 50 50 [license-url]: LICENSE -
imaps-frontend/node_modules/is-string/index.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var strValue = String.prototype.valueOf; 3 var callBound = require('call-bound'); 4 5 /** @type {(receiver: ThisParameterType<typeof String.prototype.valueOf>, ...args: Parameters<typeof String.prototype.valueOf>) => ReturnType<typeof String.prototype.valueOf>} */ 6 var $strValueOf = callBound('String.prototype.valueOf'); 7 8 /** @type {import('.')} */ 4 9 var tryStringObject = function tryStringObject(value) { 5 10 try { 6 strValue.call(value);11 $strValueOf(value); 7 12 return true; 8 13 } catch (e) { … … 10 15 } 11 16 }; 12 var toStr = Object.prototype.toString; 17 /** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */ 18 var $toString = callBound('Object.prototype.toString'); 13 19 var strClass = '[object String]'; 14 20 var hasToStringTag = require('has-tostringtag/shams')(); 15 21 22 /** @type {import('.')} */ 16 23 module.exports = function isString(value) { 17 24 if (typeof value === 'string') { 18 25 return true; 19 26 } 20 if ( typeof value !== 'object') {27 if (!value || typeof value !== 'object') { 21 28 return false; 22 29 } 23 return hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;30 return hasToStringTag ? tryStringObject(value) : $toString(value) === strClass; 24 31 }; -
imaps-frontend/node_modules/is-string/package.json
r0c6b92a r79a0317 1 1 { 2 "name": "is-string", 3 "version": "1.0.7", 4 "author": "Jordan Harband <ljharb@gmail.com>", 5 "funding": { 6 "url": "https://github.com/sponsors/ljharb" 7 }, 8 "description": "Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.", 9 "license": "MIT", 10 "main": "index.js", 11 "scripts": { 12 "prepublishOnly": "safe-publish-latest", 13 "prepublish": "not-in-publish || npm run prepublishOnly", 14 "pretest": "npm run lint", 15 "tests-only": "nyc tape 'test/**/*.js'", 16 "test:corejs": "nyc tape test-corejs.js", 17 "test": "npm run tests-only && npm run test:corejs", 18 "posttest": "npx aud --production", 19 "lint": "eslint .", 20 "eccheck": "eclint check *.js **/*.js > /dev/null", 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://github.com/ljharb/is-string.git" 27 }, 28 "keywords": [ 29 "String", 30 "string", 31 "ES6", 32 "toStringTag", 33 "@@toStringTag", 34 "String object" 35 ], 36 "dependencies": { 37 "has-tostringtag": "^1.0.0" 38 }, 39 "devDependencies": { 40 "@ljharb/eslint-config": "^17.6.0", 41 "aud": "^1.1.5", 42 "auto-changelog": "^2.3.0", 43 "core-js": "^3.16.0", 44 "eclint": "^2.8.1", 45 "eslint": "^7.32.0", 46 "foreach": "^2.0.5", 47 "indexof": "^0.0.1", 48 "is": "^3.3.0", 49 "nyc": "^10.3.2", 50 "safe-publish-latest": "^1.1.4", 51 "tape": "^5.3.0" 52 }, 53 "testling": { 54 "files": "test/index.js", 55 "browsers": [ 56 "iexplore/6.0..latest", 57 "firefox/3.0..6.0", 58 "firefox/15.0..latest", 59 "firefox/nightly", 60 "chrome/4.0..10.0", 61 "chrome/20.0..latest", 62 "chrome/canary", 63 "opera/10.0..latest", 64 "opera/next", 65 "safari/4.0..latest", 66 "ipad/6.0..latest", 67 "iphone/6.0..latest", 68 "android-browser/4.2" 69 ] 70 }, 71 "engines": { 72 "node": ">= 0.4" 73 }, 74 "auto-changelog": { 75 "output": "CHANGELOG.md", 76 "template": "keepachangelog", 77 "unreleased": false, 78 "commitLimit": false, 79 "backfillLimit": false 80 } 2 "_from": "is-string@^1.0.7", 3 "_id": "is-string@1.1.1", 4 "_inBundle": false, 5 "_integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", 6 "_location": "/is-string", 7 "_phantomChildren": {}, 8 "_requested": { 9 "type": "range", 10 "registry": true, 11 "raw": "is-string@^1.0.7", 12 "name": "is-string", 13 "escapedName": "is-string", 14 "rawSpec": "^1.0.7", 15 "saveSpec": null, 16 "fetchSpec": "^1.0.7" 17 }, 18 "_requiredBy": [ 19 "/array-includes", 20 "/es-abstract", 21 "/which-boxed-primitive" 22 ], 23 "_resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", 24 "_shasum": "92ea3f3d5c5b6e039ca8677e5ac8d07ea773cbb9", 25 "_spec": "is-string@^1.0.7", 26 "_where": "/home/stevetosak/Proekt/IMaps/imaps-frontend/node_modules/array-includes", 27 "author": { 28 "name": "Jordan Harband", 29 "email": "ljharb@gmail.com" 30 }, 31 "auto-changelog": { 32 "output": "CHANGELOG.md", 33 "template": "keepachangelog", 34 "unreleased": false, 35 "commitLimit": false, 36 "backfillLimit": false 37 }, 38 "bugs": { 39 "url": "https://github.com/inspect-js/is-string/issues" 40 }, 41 "bundleDependencies": false, 42 "dependencies": { 43 "call-bound": "^1.0.3", 44 "has-tostringtag": "^1.0.2" 45 }, 46 "deprecated": false, 47 "description": "Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.", 48 "devDependencies": { 49 "@arethetypeswrong/cli": "^0.17.1", 50 "@ljharb/eslint-config": "^21.1.1", 51 "@ljharb/tsconfig": "^0.2.2", 52 "@types/core-js": "^2.5.8", 53 "@types/tape": "^5.7.0", 54 "auto-changelog": "^2.5.0", 55 "core-js": "^3.39.0", 56 "eclint": "^2.8.1", 57 "encoding": "^0.1.13", 58 "eslint": "=8.8.0", 59 "in-publish": "^2.0.1", 60 "is": "^3.3.0", 61 "npmignore": "^0.3.1", 62 "nyc": "^10.3.2", 63 "safe-publish-latest": "^2.0.0", 64 "tape": "^5.9.0", 65 "typescript": "next" 66 }, 67 "engines": { 68 "node": ">= 0.4" 69 }, 70 "funding": { 71 "url": "https://github.com/sponsors/ljharb" 72 }, 73 "homepage": "https://github.com/inspect-js/is-string#readme", 74 "keywords": [ 75 "String", 76 "string", 77 "ES6", 78 "toStringTag", 79 "@@toStringTag", 80 "String object" 81 ], 82 "license": "MIT", 83 "main": "index.js", 84 "name": "is-string", 85 "publishConfig": { 86 "ignore": [ 87 ".github/workflows", 88 "test-corejs.js" 89 ] 90 }, 91 "repository": { 92 "type": "git", 93 "url": "git://github.com/inspect-js/is-string.git" 94 }, 95 "scripts": { 96 "lint": "eslint --ext=js,mjs .", 97 "postlint": "tsc -p . && attw -P", 98 "posttest": "npx npm@'>=10.2' audit --production", 99 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", 100 "prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')", 101 "prepack": "npmignore --auto --commentLines=autogenerated", 102 "prepublish": "not-in-publish || npm run prepublishOnly", 103 "prepublishOnly": "safe-publish-latest", 104 "pretest": "npm run lint", 105 "test": "npm run tests-only && npm run test:corejs", 106 "test:corejs": "nyc tape test-corejs.js", 107 "tests-only": "nyc tape 'test/**/*.js'", 108 "version": "auto-changelog && git add CHANGELOG.md" 109 }, 110 "testling": { 111 "files": "test/index.js", 112 "browsers": [ 113 "iexplore/6.0..latest", 114 "firefox/3.0..6.0", 115 "firefox/15.0..latest", 116 "firefox/nightly", 117 "chrome/4.0..10.0", 118 "chrome/20.0..latest", 119 "chrome/canary", 120 "opera/10.0..latest", 121 "opera/next", 122 "safari/4.0..latest", 123 "ipad/6.0..latest", 124 "iphone/6.0..latest", 125 "android-browser/4.2" 126 ] 127 }, 128 "version": "1.1.1" 81 129 } -
imaps-frontend/node_modules/is-string/test/index.js
r0c6b92a r79a0317 6 6 7 7 test('not Strings', function (t) { 8 // @ts-expect-error 8 9 t.notOk(isString(), 'undefined is not String'); 9 10 t.notOk(isString(null), 'null is not String'); … … 24 25 25 26 test('@@toStringTag', { skip: !hasToStringTag }, function (t) { 27 /** @type {{ toString(): unknown; valueOf(): unknown; [Symbol.toStringTag]?: string; }} */ 26 28 var fakeString = { 27 29 toString: function () { return '7'; },
Note:
See TracChangeset
for help on using the changeset viewer.