typed-array-buffer
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -8,20 +8,37 @@ # Changelog | ||
## [v1.0.2](https://github.com/ljharb/typed-array-buffer/compare/v1.0.1...v1.0.2) - 2024-02-19 | ||
## [v1.0.3](https://github.com/inspect-js/typed-array-buffer/compare/v1.0.2...v1.0.3) - 2024-12-18 | ||
### Commits | ||
- add types [`23c6fba`](https://github.com/ljharb/typed-array-buffer/commit/23c6fba167dbc8c1e9291eed3f68e64a5651075a) | ||
- [Deps] update `available-typed-arrays` [`5f68ba1`](https://github.com/ljharb/typed-array-buffer/commit/5f68ba1fdcd004af46d529fbb08220de2254cf43) | ||
- [Deps] update `call-bind` [`54a92ce`](https://github.com/ljharb/typed-array-buffer/commit/54a92ce4caf023c8680ffe64534ba881b78cdc17) | ||
- [Dev Deps] update `tape` [`b0b3342`](https://github.com/ljharb/typed-array-buffer/commit/b0b3342bcbefae5f3dff01b0e3734b08ca927f58) | ||
- [meta] update URLs [`aca9484`](https://github.com/inspect-js/typed-array-buffer/commit/aca9484b41f96767408e26e63854b5d86f759de8) | ||
- [types] use shared config [`fcdcb05`](https://github.com/inspect-js/typed-array-buffer/commit/fcdcb05941a771826e1478a77aadd89c582e37cd) | ||
- [actions] split out node 10-20, and 20+ [`5f5a406`](https://github.com/inspect-js/typed-array-buffer/commit/5f5a4067752d7bccecbaa8f6e143863d55197af9) | ||
- [types] improve types [`f45042c`](https://github.com/inspect-js/typed-array-buffer/commit/f45042c07c04007217404d73aa77c26a73885210) | ||
- [Dev Deps] update `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/object-inspect`, `@types/tape`, `auto-changelog`, `es-value-fixtures`, `object-inspect`, `tape` [`0c937e7`](https://github.com/inspect-js/typed-array-buffer/commit/0c937e72e93dccc359c08cf1a9ef060e5f5e1a8d) | ||
- [Refactor] use `call-bound` directly [`cf4aba4`](https://github.com/inspect-js/typed-array-buffer/commit/cf4aba4d8c1702ee9130abaf8a6a72907ca96ce0) | ||
- [Tests] replace `aud` with `npm audit` [`a3abb73`](https://github.com/inspect-js/typed-array-buffer/commit/a3abb739300d1de6e88736019d718d831c7a4cca) | ||
- [Dev Deps] update `@types/tape` [`548ffdc`](https://github.com/inspect-js/typed-array-buffer/commit/548ffdc881726b060ac92fc0c59ab0bb150df91f) | ||
- [Deps] update `is-typed-array` [`3b5deb1`](https://github.com/inspect-js/typed-array-buffer/commit/3b5deb191a1c942deced0273b07fe69bc8de39ab) | ||
- [Deps] update `call-bind` [`02cbc0c`](https://github.com/inspect-js/typed-array-buffer/commit/02cbc0cca2f69d81cdeedf7beebae2a5dd9dd4f7) | ||
- [Tests] add attw and `postlint` [`f6daa66`](https://github.com/inspect-js/typed-array-buffer/commit/f6daa6695a69878d845070b90ab0bbf6392ebb03) | ||
- [Dev Deps] add missing peer dep [`c9faf2a`](https://github.com/inspect-js/typed-array-buffer/commit/c9faf2ac04fc78410aeb144405db110fe9b60b6c) | ||
## [v1.0.1](https://github.com/ljharb/typed-array-buffer/compare/v1.0.0...v1.0.1) - 2024-02-06 | ||
## [v1.0.2](https://github.com/inspect-js/typed-array-buffer/compare/v1.0.1...v1.0.2) - 2024-02-19 | ||
### Commits | ||
- [Dev Deps] update `aud`, `available-typed-arrays`, `npmignore`, `object-inspect`, `tape` [`5334477`](https://github.com/ljharb/typed-array-buffer/commit/53344773866f35820dc4deef1aa47ec7890f2b02) | ||
- [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`e2511e0`](https://github.com/ljharb/typed-array-buffer/commit/e2511e011a2331bd4a36ad6003a98b1cf766bc26) | ||
- [Deps] update `call-bind`, `get-intrinsic`, `is-typed-array` [`36c3b11`](https://github.com/ljharb/typed-array-buffer/commit/36c3b11efc9bce98de8bee5f81dcae4305876893) | ||
- [meta] add `sideEffects` flag [`46cc1f4`](https://github.com/ljharb/typed-array-buffer/commit/46cc1f4a8b8875fc6e84b33182602ec37655bbbd) | ||
- add types [`23c6fba`](https://github.com/inspect-js/typed-array-buffer/commit/23c6fba167dbc8c1e9291eed3f68e64a5651075a) | ||
- [Deps] update `available-typed-arrays` [`5f68ba1`](https://github.com/inspect-js/typed-array-buffer/commit/5f68ba1fdcd004af46d529fbb08220de2254cf43) | ||
- [Deps] update `call-bind` [`54a92ce`](https://github.com/inspect-js/typed-array-buffer/commit/54a92ce4caf023c8680ffe64534ba881b78cdc17) | ||
- [Dev Deps] update `tape` [`b0b3342`](https://github.com/inspect-js/typed-array-buffer/commit/b0b3342bcbefae5f3dff01b0e3734b08ca927f58) | ||
## [v1.0.1](https://github.com/inspect-js/typed-array-buffer/compare/v1.0.0...v1.0.1) - 2024-02-06 | ||
### Commits | ||
- [Dev Deps] update `aud`, `available-typed-arrays`, `npmignore`, `object-inspect`, `tape` [`5334477`](https://github.com/inspect-js/typed-array-buffer/commit/53344773866f35820dc4deef1aa47ec7890f2b02) | ||
- [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`e2511e0`](https://github.com/inspect-js/typed-array-buffer/commit/e2511e011a2331bd4a36ad6003a98b1cf766bc26) | ||
- [Deps] update `call-bind`, `get-intrinsic`, `is-typed-array` [`36c3b11`](https://github.com/inspect-js/typed-array-buffer/commit/36c3b11efc9bce98de8bee5f81dcae4305876893) | ||
- [meta] add `sideEffects` flag [`46cc1f4`](https://github.com/inspect-js/typed-array-buffer/commit/46cc1f4a8b8875fc6e84b33182602ec37655bbbd) | ||
## v1.0.0 - 2023-06-05 | ||
@@ -31,5 +48,5 @@ | ||
- Initial implementation, tests, readme [`5bc2953`](https://github.com/ljharb/typed-array-buffer/commit/5bc295337b4310659832fc08699a4d10c2dbbded) | ||
- Initial commit [`98b8ac9`](https://github.com/ljharb/typed-array-buffer/commit/98b8ac90f407c368effa25d395aeea1d72e1d4b6) | ||
- npm init [`6a4a73c`](https://github.com/ljharb/typed-array-buffer/commit/6a4a73c66b1f13fd17699c6500a4979003676696) | ||
- Only apps should have lockfiles [`7226abf`](https://github.com/ljharb/typed-array-buffer/commit/7226abfda329b99dc25526c48740b076d128a7be) | ||
- Initial implementation, tests, readme [`5bc2953`](https://github.com/inspect-js/typed-array-buffer/commit/5bc295337b4310659832fc08699a4d10c2dbbded) | ||
- Initial commit [`98b8ac9`](https://github.com/inspect-js/typed-array-buffer/commit/98b8ac90f407c368effa25d395aeea1d72e1d4b6) | ||
- npm init [`6a4a73c`](https://github.com/inspect-js/typed-array-buffer/commit/6a4a73c66b1f13fd17699c6500a4979003676696) | ||
- Only apps should have lockfiles [`7226abf`](https://github.com/inspect-js/typed-array-buffer/commit/7226abfda329b99dc25526c48740b076d128a7be) |
@@ -1,16 +0,9 @@ | ||
type TypedArray = | ||
| Int8Array | ||
| Uint8Array | ||
| Uint8ClampedArray | ||
| Int16Array | ||
| Uint16Array | ||
| Int32Array | ||
| Uint32Array | ||
| Float32Array | ||
| Float64Array | ||
| BigInt64Array | ||
| BigUint64Array; | ||
import type { TypedArray } from 'is-typed-array'; | ||
declare function typedArrayBuffer(x: TypedArray): ArrayBuffer; | ||
declare namespace typedArrayBuffer{ | ||
export type { TypedArray }; | ||
} | ||
declare function typedArrayBuffer(x: typedArrayBuffer.TypedArray): ArrayBuffer; | ||
export = typedArrayBuffer; |
@@ -5,4 +5,5 @@ 'use strict'; | ||
var callBound = require('call-bind/callBound'); | ||
var callBound = require('call-bound'); | ||
/** @type {undefined | ((thisArg: import('.').TypedArray) => Buffer<ArrayBufferLike>)} */ | ||
var $typedArrayBuffer = callBound('TypedArray.prototype.buffer', true); | ||
@@ -9,0 +10,0 @@ |
{ | ||
"name": "typed-array-buffer", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Get the ArrayBuffer out of a TypedArray, robustly.", | ||
@@ -16,6 +16,7 @@ "main": "index.js", | ||
"lint": "eslint --ext=js,mjs .", | ||
"postlint": "tsc && attw -P", | ||
"pretest": "npm run lint", | ||
"tests-only": "nyc tape 'test/**/*.js'", | ||
"test": "npm run tests-only", | ||
"posttest": "aud --production", | ||
"posttest": "npx npm@'>= 10.2' audit --production", | ||
"version": "auto-changelog && git add CHANGELOG.md", | ||
@@ -26,3 +27,3 @@ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" | ||
"type": "git", | ||
"url": "git+https://github.com/ljharb/typed-array-buffer.git" | ||
"url": "git+https://github.com/inspect-js/typed-array-buffer.git" | ||
}, | ||
@@ -37,21 +38,22 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/ljharb/typed-array-buffer/issues" | ||
"url": "https://github.com/inspect-js/typed-array-buffer/issues" | ||
}, | ||
"homepage": "https://github.com/ljharb/typed-array-buffer#readme", | ||
"homepage": "https://github.com/inspect-js/typed-array-buffer#readme", | ||
"dependencies": { | ||
"call-bind": "^1.0.7", | ||
"call-bound": "^1.0.3", | ||
"es-errors": "^1.3.0", | ||
"is-typed-array": "^1.1.13" | ||
"is-typed-array": "^1.1.14" | ||
}, | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^21.1.0", | ||
"@types/call-bind": "^1.0.5", | ||
"@arethetypeswrong/cli": "^0.17.1", | ||
"@ljharb/eslint-config": "^21.1.1", | ||
"@ljharb/tsconfig": "^0.2.2", | ||
"@types/es-value-fixtures": "^1.4.4", | ||
"@types/for-each": "^0.3.3", | ||
"@types/object-inspect": "^1.8.4", | ||
"@types/tape": "^5.6.4", | ||
"aud": "^2.0.4", | ||
"auto-changelog": "^2.4.0", | ||
"@types/object-inspect": "^1.13.0", | ||
"@types/tape": "^5.8.0", | ||
"auto-changelog": "^2.5.0", | ||
"available-typed-arrays": "^1.0.7", | ||
"es-value-fixtures": "^1.4.2", | ||
"encoding": "^0.1.13", | ||
"es-value-fixtures": "^1.5.0", | ||
"eslint": "=8.8.0", | ||
@@ -62,5 +64,5 @@ "for-each": "^0.3.3", | ||
"nyc": "^10.3.2", | ||
"object-inspect": "^1.13.1", | ||
"object-inspect": "^1.13.3", | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.7.5", | ||
"tape": "^5.9.0", | ||
"typescript": "next" | ||
@@ -67,0 +69,0 @@ }, |
@@ -29,7 +29,7 @@ # typed-array-buffer <sup>[![Version Badge][npm-version-svg]][package-url]</sup> | ||
[package-url]: https://npmjs.org/package/typed-array-buffer | ||
[npm-version-svg]: https://versionbadg.es/ljharb/typed-array-buffer.svg | ||
[deps-svg]: https://david-dm.org/ljharb/typed-array-buffer.svg | ||
[deps-url]: https://david-dm.org/ljharb/typed-array-buffer | ||
[dev-deps-svg]: https://david-dm.org/ljharb/typed-array-buffer/dev-status.svg | ||
[dev-deps-url]: https://david-dm.org/ljharb/typed-array-buffer#info=devDependencies | ||
[npm-version-svg]: https://versionbadg.es/inspect-js/typed-array-buffer.svg | ||
[deps-svg]: https://david-dm.org/inspect-js/typed-array-buffer.svg | ||
[deps-url]: https://david-dm.org/inspect-js/typed-array-buffer | ||
[dev-deps-svg]: https://david-dm.org/inspect-js/typed-array-buffer/dev-status.svg | ||
[dev-deps-url]: https://david-dm.org/inspect-js/typed-array-buffer#info=devDependencies | ||
[npm-badge-png]: https://nodei.co/npm/typed-array-buffer.png?downloads=true&stars=true | ||
@@ -40,5 +40,5 @@ [license-image]: https://img.shields.io/npm/l/typed-array-buffer.svg | ||
[downloads-url]: https://npm-stat.com/charts.html?package=typed-array-buffer | ||
[codecov-image]: https://codecov.io/gh/ljharb/typed-array-buffer/branch/main/graphs/badge.svg | ||
[codecov-url]: https://app.codecov.io/gh/ljharb/typed-array-buffer/ | ||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/typed-array-buffer | ||
[actions-url]: https://github.com/ljharb/typed-array-buffer/actions | ||
[codecov-image]: https://codecov.io/gh/inspect-js/typed-array-buffer/branch/main/graphs/badge.svg | ||
[codecov-url]: https://app.codecov.io/gh/inspect-js/typed-array-buffer/ | ||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/typed-array-buffer | ||
[actions-url]: https://github.com/inspect-js/typed-array-buffer/actions |
{ | ||
"extends": "@ljharb/tsconfig", | ||
"compilerOptions": { | ||
/* Visit https://aka.ms/tsconfig.json to read more about this file */ | ||
/* Projects */ | ||
/* Language and Environment */ | ||
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ | ||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ | ||
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ | ||
"useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ | ||
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ | ||
/* Modules */ | ||
"module": "commonjs", /* Specify what module code is generated. */ | ||
// "rootDir": "./", /* Specify the root folder within your source files. */ | ||
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ | ||
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ | ||
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ | ||
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ | ||
// "typeRoots": ["types"], /* Specify multiple folders that act like `./node_modules/@types`. */ | ||
"resolveJsonModule": true, /* Enable importing .json files. */ | ||
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ | ||
/* JavaScript Support */ | ||
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ | ||
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ | ||
"maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */ | ||
/* Emit */ | ||
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ | ||
"declarationMap": true, /* Create sourcemaps for d.ts files. */ | ||
"noEmit": true, /* Disable emitting files from a compilation. */ | ||
/* Interop Constraints */ | ||
"allowSyntheticDefaultImports": true, /* Allow `import x from y` when a module doesn't have a default export. */ | ||
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ | ||
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ | ||
/* Type Checking */ | ||
"strict": true, /* Enable all strict type-checking options. */ | ||
/* Completeness */ | ||
// "skipLibCheck": true /* Skip type checking all .d.ts files. */ | ||
"target": "es2021", | ||
}, | ||
@@ -46,0 +6,0 @@ "exclude": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12215
20
47
+ Addedcall-bound@^1.0.3
- Removedcall-bind@^1.0.7
Updatedis-typed-array@^1.1.14