@stdlib/assert-instance-of 0.1.1 → 0.2.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/NOTICE +1 -1
- package/README.md +18 -3
- package/SECURITY.md +5 -0
- package/package.json +5 -22
- package/CITATION.cff +0 -30
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2024 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -98,7 +98,13 @@ var bool = instanceOf( bar, Foo );
|
|
|
98
98
|
|
|
99
99
|
- While the prototype of an `object` created using object literal notion is `undefined`, the function returns `true` when provided an `object` literal and the `Object` constructor. This maintains consistent behavior with the `instanceof` operator.
|
|
100
100
|
|
|
101
|
+
<!-- FIXME: apparent issue with realms when linting doctest values -->
|
|
102
|
+
|
|
103
|
+
<!-- eslint-disable stdlib/doctest -->
|
|
104
|
+
|
|
101
105
|
```javascript
|
|
106
|
+
var Object = require( '@stdlib/object-ctor' );
|
|
107
|
+
|
|
102
108
|
var bool = ( {} instanceof Object );
|
|
103
109
|
// returns true
|
|
104
110
|
|
|
@@ -114,10 +120,16 @@ var bool = instanceOf( bar, Foo );
|
|
|
114
120
|
|
|
115
121
|
## Examples
|
|
116
122
|
|
|
123
|
+
<!-- FIXME: apparent issue with realms when linting doctest values -->
|
|
124
|
+
|
|
125
|
+
<!-- eslint-disable stdlib/doctest -->
|
|
126
|
+
|
|
117
127
|
<!-- eslint no-undef: "error" -->
|
|
118
128
|
|
|
119
129
|
```javascript
|
|
120
130
|
var Number = require( '@stdlib/number-ctor' );
|
|
131
|
+
var Object = require( '@stdlib/object-ctor' );
|
|
132
|
+
var Function = require( '@stdlib/function-ctor' );
|
|
121
133
|
var instanceOf = require( '@stdlib/assert-instance-of' );
|
|
122
134
|
|
|
123
135
|
var bool = instanceOf( [], Array );
|
|
@@ -204,7 +216,7 @@ See [LICENSE][stdlib-license].
|
|
|
204
216
|
|
|
205
217
|
## Copyright
|
|
206
218
|
|
|
207
|
-
Copyright © 2016-
|
|
219
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
208
220
|
|
|
209
221
|
</section>
|
|
210
222
|
|
|
@@ -217,8 +229,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
217
229
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/assert-instance-of.svg
|
|
218
230
|
[npm-url]: https://npmjs.org/package/@stdlib/assert-instance-of
|
|
219
231
|
|
|
220
|
-
[test-image]: https://github.com/stdlib-js/assert-instance-of/actions/workflows/test.yml/badge.svg?branch=v0.
|
|
221
|
-
[test-url]: https://github.com/stdlib-js/assert-instance-of/actions/workflows/test.yml?query=branch:v0.
|
|
232
|
+
[test-image]: https://github.com/stdlib-js/assert-instance-of/actions/workflows/test.yml/badge.svg?branch=v0.2.1
|
|
233
|
+
[test-url]: https://github.com/stdlib-js/assert-instance-of/actions/workflows/test.yml?query=branch:v0.2.1
|
|
222
234
|
|
|
223
235
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-instance-of/main.svg
|
|
224
236
|
[coverage-url]: https://codecov.io/github/stdlib-js/assert-instance-of?branch=main
|
|
@@ -241,8 +253,11 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
241
253
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
242
254
|
|
|
243
255
|
[deno-url]: https://github.com/stdlib-js/assert-instance-of/tree/deno
|
|
256
|
+
[deno-readme]: https://github.com/stdlib-js/assert-instance-of/blob/deno/README.md
|
|
244
257
|
[umd-url]: https://github.com/stdlib-js/assert-instance-of/tree/umd
|
|
258
|
+
[umd-readme]: https://github.com/stdlib-js/assert-instance-of/blob/umd/README.md
|
|
245
259
|
[esm-url]: https://github.com/stdlib-js/assert-instance-of/tree/esm
|
|
260
|
+
[esm-readme]: https://github.com/stdlib-js/assert-instance-of/blob/esm/README.md
|
|
246
261
|
[branches-url]: https://github.com/stdlib-js/assert-instance-of/blob/main/branches.md
|
|
247
262
|
|
|
248
263
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/assert-instance-of/main/LICENSE
|
package/SECURITY.md
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/assert-instance-of",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Test whether a value has in its prototype chain a specified constructor as a prototype property.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -15,19 +15,12 @@
|
|
|
15
15
|
],
|
|
16
16
|
"main": "./lib",
|
|
17
17
|
"directories": {
|
|
18
|
-
"benchmark": "./benchmark",
|
|
19
18
|
"doc": "./docs",
|
|
20
|
-
"example": "./examples",
|
|
21
19
|
"lib": "./lib",
|
|
22
|
-
"
|
|
20
|
+
"dist": "./dist"
|
|
23
21
|
},
|
|
24
22
|
"types": "./docs/types",
|
|
25
|
-
"scripts": {
|
|
26
|
-
"test": "make test",
|
|
27
|
-
"test-cov": "make test-cov",
|
|
28
|
-
"examples": "make examples",
|
|
29
|
-
"benchmark": "make benchmark"
|
|
30
|
-
},
|
|
23
|
+
"scripts": {},
|
|
31
24
|
"homepage": "https://stdlib.io",
|
|
32
25
|
"repository": {
|
|
33
26
|
"type": "git",
|
|
@@ -37,19 +30,9 @@
|
|
|
37
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
31
|
},
|
|
39
32
|
"dependencies": {
|
|
40
|
-
"@stdlib/string-format": "^0.
|
|
41
|
-
"@stdlib/error-tools-fmtprodmsg": "^0.1.0"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@stdlib/assert-is-boolean": "^0.1.0",
|
|
45
|
-
"@stdlib/bench": "^0.1.0",
|
|
46
|
-
"@stdlib/number-ctor": "^0.1.0",
|
|
47
|
-
"@stdlib/object-ctor": "^0.1.1",
|
|
48
|
-
"@stdlib/utils-inherit": "^0.1.1",
|
|
49
|
-
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
50
|
-
"istanbul": "^0.4.1",
|
|
51
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
33
|
+
"@stdlib/string-format": "^0.2.1"
|
|
52
34
|
},
|
|
35
|
+
"devDependencies": {},
|
|
53
36
|
"engines": {
|
|
54
37
|
"node": ">=0.10.0",
|
|
55
38
|
"npm": ">2.7.0"
|
package/CITATION.cff
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
cff-version: 1.2.0
|
|
2
|
-
title: stdlib
|
|
3
|
-
message: >-
|
|
4
|
-
If you use this software, please cite it using the
|
|
5
|
-
metadata from this file.
|
|
6
|
-
|
|
7
|
-
type: software
|
|
8
|
-
|
|
9
|
-
authors:
|
|
10
|
-
- name: The Stdlib Authors
|
|
11
|
-
url: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
12
|
-
|
|
13
|
-
repository-code: https://github.com/stdlib-js/stdlib
|
|
14
|
-
url: https://stdlib.io
|
|
15
|
-
|
|
16
|
-
abstract: |
|
|
17
|
-
Standard library for JavaScript and Node.js.
|
|
18
|
-
|
|
19
|
-
keywords:
|
|
20
|
-
- JavaScript
|
|
21
|
-
- Node.js
|
|
22
|
-
- TypeScript
|
|
23
|
-
- standard library
|
|
24
|
-
- scientific computing
|
|
25
|
-
- numerical computing
|
|
26
|
-
- statistical computing
|
|
27
|
-
|
|
28
|
-
license: Apache-2.0 AND BSL-1.0
|
|
29
|
-
|
|
30
|
-
date-released: 2016
|