Changeset 79a0317 for imaps-frontend/node_modules/typed-array-byte-length
- Timestamp:
- 01/21/25 03:08:24 (4 weeks ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/typed-array-byte-length
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/typed-array-byte-length/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.0.3](https://github.com/inspect-js/typed-array-byte-length/compare/v1.0.2...v1.0.3) - 2024-12-17 9 10 ### Commits 11 12 - [types] oops, this is a type export, not a value export [`2fcf3e8`](https://github.com/inspect-js/typed-array-byte-length/commit/2fcf3e87f0312bca866dd24e805641f9c2c0798b) 13 14 ## [v1.0.2](https://github.com/inspect-js/typed-array-byte-length/compare/v1.0.1...v1.0.2) - 2024-12-17 15 16 ### Commits 17 18 - [types] improve types [`fcc9606`](https://github.com/inspect-js/typed-array-byte-length/commit/fcc9606bf4f27d1299aacbfa3011973ecf3f25bc) 19 - [types] use shared config [`ca29c46`](https://github.com/inspect-js/typed-array-byte-length/commit/ca29c46795620d624bcb6cbdbc32c1b0580ab0f8) 20 - [actions] split out node 10-20, and 20+ [`9a38c81`](https://github.com/inspect-js/typed-array-byte-length/commit/9a38c81be40d6e34b4a1cbe3d83dde8806a998cc) 21 - [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/object-inspect`, `@types/tape`, `auto-changelog`, `object-inspect`, `tape` [`78cd1f2`](https://github.com/inspect-js/typed-array-byte-length/commit/78cd1f274612d46207951cf16a05615d2d14d13e) 22 - [Deps] update `call-bind`, `gopd`, `has-proto`, `is-typed-array` [`8c13b84`](https://github.com/inspect-js/typed-array-byte-length/commit/8c13b84060a47865c6f6f5fafdeccfdf8f304258) 23 - [Tests] replace `aud` with `npm audit` [`0d9aee3`](https://github.com/inspect-js/typed-array-byte-length/commit/0d9aee379568e90c7898163b43163c3287004e71) 24 - [Tests] use `@arethetypeswrong/cli` [`abf28fa`](https://github.com/inspect-js/typed-array-byte-length/commit/abf28fa1baff255683c3f38fe594271178199743) 25 - [Dev Deps] add missing peer dep [`dfd248d`](https://github.com/inspect-js/typed-array-byte-length/commit/dfd248d58080f8c74990d76202e72acd4f3e9fa0) 7 26 8 27 ## [v1.0.1](https://github.com/inspect-js/typed-array-byte-length/compare/v1.0.0...v1.0.1) - 2024-02-20 -
imaps-frontend/node_modules/typed-array-byte-length/index.d.ts
r0c6b92a r79a0317 1 type TypedArray = 2 | Int8Array 3 | Uint8Array 4 | Uint8ClampedArray 5 | Int16Array 6 | Uint16Array 7 | Int32Array 8 | Uint32Array 9 | Float32Array 10 | Float64Array 11 | BigInt64Array 12 | BigUint64Array; 1 import type { TypedArray } from 'is-typed-array'; 2 3 declare namespace typedArrayByteLength { 4 export type { TypedArray }; 5 } 13 6 14 7 declare function typedArrayByteLength(value: TypedArray): number; -
imaps-frontend/node_modules/typed-array-byte-length/index.js
r0c6b92a r79a0317 9 9 var typedArrays = require('available-typed-arrays')(); 10 10 11 /** @typedef {Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array} TypedArray */ 12 /** @typedef {import('possible-typed-array-names')[number]} TypedArrayNames */ 13 /** @typedef {(value: TypedArray) => number} Getter */ 11 /** @typedef {import('possible-typed-array-names')[number]} TypedArrayName */ 12 /** @typedef {(value: import('.').TypedArray) => number} Getter */ 14 13 15 /** @type {Object.<TypedArrayNames, Getter>} */ 16 var getters = {}; 14 /** @type {Partial<Record<TypedArrayName, Getter> & { __proto__: null }>} */ 15 var getters = { 16 __proto__: null 17 }; 17 18 18 19 var oDP = Object.defineProperty; … … 25 26 // In Safari 7, Typed Array constructors are typeof object 26 27 if (typeof global[typedArray] === 'function' || typeof global[typedArray] === 'object') { 27 var Proto = global[typedArray].prototype; 28 var TA = global[typedArray]; 29 /** @type {import('.').TypedArray} */ 30 var Proto = TA.prototype; 28 31 // @ts-expect-error TS doesn't narrow properly inside callbacks 29 32 var descriptor = gOPD(Proto, 'byteLength'); … … 56 59 var tryTypedArrays = function tryAllTypedArrays(value) { 57 60 /** @type {number} */ var foundByteLength; 58 forEach(getters, /** @type {(getter: Getter) => void} */ function (getter) { 59 if (typeof foundByteLength !== 'number') { 60 try { 61 var byteLength = getter(value); 62 if (typeof byteLength === 'number') { 63 foundByteLength = byteLength; 64 } 65 } catch (e) {} 61 forEach( 62 // eslint-disable-next-line no-extra-parens 63 /** @type {Record<TypedArrayName, Getter>} */ (getters), 64 /** @type {(getter: Getter) => void} */ function (getter) { 65 if (typeof foundByteLength !== 'number') { 66 try { 67 var byteLength = getter(value); 68 if (typeof byteLength === 'number') { 69 foundByteLength = byteLength; 70 } 71 } catch (e) {} 72 } 66 73 } 67 });74 ); 68 75 // @ts-expect-error TS can't guarantee the callback is invoked sync 69 76 return foundByteLength; -
imaps-frontend/node_modules/typed-array-byte-length/package.json
r0c6b92a r79a0317 1 1 { 2 "name": "typed-array-byte-length", 3 "version": "1.0.1", 4 "description": "Robustly get the byte length of a Typed Array", 5 "main": "index.js", 6 "exports": { 7 ".": "./index.js", 8 "./package.json": "./package.json" 9 }, 10 "types": "./index.d.ts", 11 "sideEffects": false, 12 "scripts": { 13 "prepack": "npmignore --auto --commentLines=autogenerated", 14 "prepublishOnly": "safe-publish-latest", 15 "prepublish": "not-in-publish || npm run prepublishOnly", 16 "pretest": "npm run lint", 17 "prelint": "evalmd README.md", 18 "lint": "eslint --ext=js,mjs .", 19 "postlint": "tsc -p .", 20 "tests-only": "nyc tape 'test/**/*.js'", 21 "test": "npm run tests-only", 22 "posttest": "aud --production", 23 "version": "auto-changelog && git add CHANGELOG.md", 24 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" 25 }, 26 "repository": { 27 "type": "git", 28 "url": "git+https://github.com/inspect-js/typed-array-byte-length.git" 29 }, 30 "keywords": [ 31 "typed", 32 "array", 33 "byteLength", 34 "byte", 35 "length", 36 "robust", 37 "es", 38 "Int8Array", 39 "Uint8Array", 40 "Uint8ClampedArray", 41 "Int16Array", 42 "Uint16Array", 43 "Int32Array", 44 "Uint32Array", 45 "Float32Array", 46 "Float64Array", 47 "BigInt64Array", 48 "BigUint64Array" 49 ], 50 "author": "Jordan Harband <ljharb@gmail.com>", 51 "funding": { 52 "url": "https://github.com/sponsors/ljharb" 53 }, 54 "license": "MIT", 55 "bugs": { 56 "url": "https://github.com/inspect-js/typed-array-byte-length/issues" 57 }, 58 "homepage": "https://github.com/inspect-js/typed-array-byte-length#readme", 59 "dependencies": { 60 "call-bind": "^1.0.7", 61 "for-each": "^0.3.3", 62 "gopd": "^1.0.1", 63 "has-proto": "^1.0.3", 64 "is-typed-array": "^1.1.13" 65 }, 66 "devDependencies": { 67 "@ljharb/eslint-config": "^21.1.0", 68 "@types/call-bind": "^1.0.5", 69 "@types/for-each": "^0.3.3", 70 "@types/gopd": "^1.0.3", 71 "@types/is-callable": "^1.1.2", 72 "@types/make-arrow-function": "^1.2.2", 73 "@types/make-generator-function": "^2.0.3", 74 "@types/object-inspect": "^1.8.4", 75 "@types/tape": "^5.6.4", 76 "aud": "^2.0.4", 77 "auto-changelog": "^2.4.0", 78 "available-typed-arrays": "^1.0.7", 79 "eslint": "=8.8.0", 80 "evalmd": "^0.0.19", 81 "in-publish": "^2.0.1", 82 "is-callable": "^1.2.7", 83 "make-arrow-function": "^1.2.0", 84 "make-generator-function": "^2.0.0", 85 "npmignore": "^0.3.1", 86 "nyc": "^10.3.2", 87 "object-inspect": "^1.13.1", 88 "safe-publish-latest": "^2.0.0", 89 "tape": "^5.7.5", 90 "typescript": "next" 91 }, 92 "engines": { 93 "node": ">= 0.4" 94 }, 95 "auto-changelog": { 96 "output": "CHANGELOG.md", 97 "template": "keepachangelog", 98 "unreleased": false, 99 "commitLimit": false, 100 "backfillLimit": false, 101 "hideCredit": true 102 }, 103 "testling": { 104 "files": "test/index.js" 105 }, 106 "publishConfig": { 107 "ignore": [ 108 ".github/workflows" 109 ] 110 } 2 "_from": "typed-array-byte-length@^1.0.3", 3 "_id": "typed-array-byte-length@1.0.3", 4 "_inBundle": false, 5 "_integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", 6 "_location": "/typed-array-byte-length", 7 "_phantomChildren": {}, 8 "_requested": { 9 "type": "range", 10 "registry": true, 11 "raw": "typed-array-byte-length@^1.0.3", 12 "name": "typed-array-byte-length", 13 "escapedName": "typed-array-byte-length", 14 "rawSpec": "^1.0.3", 15 "saveSpec": null, 16 "fetchSpec": "^1.0.3" 17 }, 18 "_requiredBy": [ 19 "/es-abstract" 20 ], 21 "_resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", 22 "_shasum": "8407a04f7d78684f3d252aa1a143d2b77b4160ce", 23 "_spec": "typed-array-byte-length@^1.0.3", 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/typed-array-byte-length/issues" 39 }, 40 "bundleDependencies": false, 41 "dependencies": { 42 "call-bind": "^1.0.8", 43 "for-each": "^0.3.3", 44 "gopd": "^1.2.0", 45 "has-proto": "^1.2.0", 46 "is-typed-array": "^1.1.14" 47 }, 48 "deprecated": false, 49 "description": "Robustly get the byte length of a Typed Array", 50 "devDependencies": { 51 "@arethetypeswrong/cli": "^0.17.1", 52 "@ljharb/eslint-config": "^21.1.1", 53 "@ljharb/tsconfig": "^0.2.2", 54 "@types/call-bind": "^1.0.5", 55 "@types/for-each": "^0.3.3", 56 "@types/gopd": "^1.0.3", 57 "@types/is-callable": "^1.1.2", 58 "@types/make-arrow-function": "^1.2.2", 59 "@types/make-generator-function": "^2.0.3", 60 "@types/object-inspect": "^1.13.0", 61 "@types/tape": "^5.7.0", 62 "auto-changelog": "^2.5.0", 63 "available-typed-arrays": "^1.0.7", 64 "encoding": "^0.1.13", 65 "eslint": "=8.8.0", 66 "evalmd": "^0.0.19", 67 "in-publish": "^2.0.1", 68 "is-callable": "^1.2.7", 69 "make-arrow-function": "^1.2.0", 70 "make-generator-function": "^2.0.0", 71 "npmignore": "^0.3.1", 72 "nyc": "^10.3.2", 73 "object-inspect": "^1.13.3", 74 "safe-publish-latest": "^2.0.0", 75 "tape": "^5.9.0", 76 "typescript": "next" 77 }, 78 "engines": { 79 "node": ">= 0.4" 80 }, 81 "exports": { 82 ".": "./index.js", 83 "./package.json": "./package.json" 84 }, 85 "funding": { 86 "url": "https://github.com/sponsors/ljharb" 87 }, 88 "homepage": "https://github.com/inspect-js/typed-array-byte-length#readme", 89 "keywords": [ 90 "typed", 91 "array", 92 "byteLength", 93 "byte", 94 "length", 95 "robust", 96 "es", 97 "Int8Array", 98 "Uint8Array", 99 "Uint8ClampedArray", 100 "Int16Array", 101 "Uint16Array", 102 "Int32Array", 103 "Uint32Array", 104 "Float32Array", 105 "Float64Array", 106 "BigInt64Array", 107 "BigUint64Array" 108 ], 109 "license": "MIT", 110 "main": "index.js", 111 "name": "typed-array-byte-length", 112 "publishConfig": { 113 "ignore": [ 114 ".github/workflows" 115 ] 116 }, 117 "repository": { 118 "type": "git", 119 "url": "git+https://github.com/inspect-js/typed-array-byte-length.git" 120 }, 121 "scripts": { 122 "lint": "eslint --ext=js,mjs .", 123 "postlint": "tsc -p . && attw -P", 124 "posttest": "npx npm@'>= 10.2' audit --production", 125 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", 126 "prelint": "evalmd README.md", 127 "prepack": "npmignore --auto --commentLines=autogenerated", 128 "prepublish": "not-in-publish || npm run prepublishOnly", 129 "prepublishOnly": "safe-publish-latest", 130 "pretest": "npm run lint", 131 "test": "npm run tests-only", 132 "tests-only": "nyc tape 'test/**/*.js'", 133 "version": "auto-changelog && git add CHANGELOG.md" 134 }, 135 "sideEffects": false, 136 "testling": { 137 "files": "test/index.js" 138 }, 139 "types": "./index.d.ts", 140 "version": "1.0.3" 111 141 } -
imaps-frontend/node_modules/typed-array-byte-length/test/index.js
r0c6b92a r79a0317 67 67 var TypedArray = global[typedArray]; 68 68 if (isCallable(TypedArray)) { 69 // @ts-expect-error TS doesn't seem to know about the second TA arg 69 70 var arr = new TypedArray(buffer, byteLength); 70 71 t.equal(typedArrayByteLength(arr), byteLength, 'new ' + typedArray + '(new ArrayBuffer(' + length + '), ' + byteLength + ') is typed array of byte Length ' + byteLength); -
imaps-frontend/node_modules/typed-array-byte-length/tsconfig.json
r0c6b92a r79a0317 1 1 { 2 "compilerOptions": { 3 /* Visit https://aka.ms/tsconfig to read more about this file */ 4 5 /* Projects */ 6 7 /* Language and Environment */ 8 "target": "ESNext", /* 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": "node10", /* 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": 0, /* 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. */ 45 }, 46 "exclude": [ 47 "coverage" 48 ] 2 "extends": "@ljharb/tsconfig", 3 "compilerOptions": { 4 "target": "ES2021", 5 }, 6 "exclude": [ 7 "coverage", 8 ], 49 9 }
Note:
See TracChangeset
for help on using the changeset viewer.