typedarray.prototype.slice 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +18 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
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
7
|
|
|
8
|
+
## [v1.0.1](https://github.com/es-shims/TypedArray.prototype.slice/compare/v1.0.0...v1.0.1) - 2023-07-18
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [readme] fix title and URLs [`391dc87`](https://github.com/es-shims/TypedArray.prototype.slice/commit/391dc876acb64d7780fded8be0d65d5f0caab688)
|
|
13
|
+
|
|
8
14
|
## v1.0.0 - 2023-07-18
|
|
9
15
|
|
|
10
16
|
### Commits
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# TypedArray.prototype.slice <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]
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
[![npm badge][npm-badge-png]][package-url]
|
|
9
9
|
|
|
10
|
-
An ES spec-compliant `
|
|
10
|
+
An ES spec-compliant `TypedArray.prototype.slice` shim. Invoke its "shim" method to shim TypedArray.prototype.slice if it is unavailable.
|
|
11
11
|
|
|
12
|
-
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES5-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec
|
|
12
|
+
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES5-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-%typedarray%.prototype.slice).
|
|
13
13
|
|
|
14
14
|
Most common usage:
|
|
15
15
|
```js
|
|
@@ -27,7 +27,7 @@ assert.deepEqual(arr, new Uint8Array([1, 2, 3]));
|
|
|
27
27
|
assert.deepEqual(arr2, new Uint8Array([2, 3, 3]));
|
|
28
28
|
assert.notEqual(arr.buffer, arr2.buffer);
|
|
29
29
|
|
|
30
|
-
if (!
|
|
30
|
+
if (!Uint8Array.prototype.slice) {
|
|
31
31
|
slice.shim();
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -48,18 +48,18 @@ assert.notEqual(arr.buffer, arr3.buffer);
|
|
|
48
48
|
## Tests
|
|
49
49
|
Simply clone the repo, `npm install`, and run `npm test`
|
|
50
50
|
|
|
51
|
-
[package-url]: https://npmjs.org/package/
|
|
52
|
-
[npm-version-svg]: https://versionbadg.es/es-shims/
|
|
53
|
-
[deps-svg]: https://david-dm.org/es-shims/
|
|
54
|
-
[deps-url]: https://david-dm.org/es-shims/
|
|
55
|
-
[dev-deps-svg]: https://david-dm.org/es-shims/
|
|
56
|
-
[dev-deps-url]: https://david-dm.org/es-shims/
|
|
57
|
-
[npm-badge-png]: https://nodei.co/npm/
|
|
58
|
-
[license-image]: https://img.shields.io/npm/l/
|
|
51
|
+
[package-url]: https://npmjs.org/package/typedarray.prototype.slice
|
|
52
|
+
[npm-version-svg]: https://versionbadg.es/es-shims/TypedArray.prototype.slice.svg
|
|
53
|
+
[deps-svg]: https://david-dm.org/es-shims/TypedArray.prototype.slice.svg
|
|
54
|
+
[deps-url]: https://david-dm.org/es-shims/TypedArray.prototype.slice
|
|
55
|
+
[dev-deps-svg]: https://david-dm.org/es-shims/TypedArray.prototype.slice/dev-status.svg
|
|
56
|
+
[dev-deps-url]: https://david-dm.org/es-shims/TypedArray.prototype.slice#info=devDependencies
|
|
57
|
+
[npm-badge-png]: https://nodei.co/npm/typedarray.prototype.slice.png?downloads=true&stars=true
|
|
58
|
+
[license-image]: https://img.shields.io/npm/l/typedarray.prototype.slice.svg
|
|
59
59
|
[license-url]: LICENSE
|
|
60
|
-
[downloads-image]: https://img.shields.io/npm/dm/
|
|
61
|
-
[downloads-url]: https://npm-stat.com/charts.html?package=
|
|
62
|
-
[codecov-image]: https://codecov.io/gh/es-shims/
|
|
63
|
-
[codecov-url]: https://app.codecov.io/gh/es-shims/
|
|
64
|
-
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/
|
|
65
|
-
[actions-url]: https://github.com/es-shims/
|
|
60
|
+
[downloads-image]: https://img.shields.io/npm/dm/typedarray.prototype.slice.svg
|
|
61
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=typedarray.prototype.slice
|
|
62
|
+
[codecov-image]: https://codecov.io/gh/es-shims/TypedArray.prototype.slice/branch/main/graphs/badge.svg
|
|
63
|
+
[codecov-url]: https://app.codecov.io/gh/es-shims/TypedArray.prototype.slice/
|
|
64
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/TypedArray.prototype.slice
|
|
65
|
+
[actions-url]: https://github.com/es-shims/TypedArray.prototype.slice/actions
|