styled-map-package 4.0.1 → 4.1.0

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.
Files changed (189) hide show
  1. package/bin/smp-download.js +1 -1
  2. package/bin/smp-view.js +32 -23
  3. package/dist/download.d.cts +1 -1
  4. package/dist/download.d.ts +1 -1
  5. package/dist/index.d.cts +2 -2
  6. package/dist/index.d.ts +2 -2
  7. package/dist/reader-watch.d.cts +1 -1
  8. package/dist/reader-watch.d.ts +1 -1
  9. package/dist/reader.cjs +2 -1
  10. package/dist/reader.d.cts +1 -1
  11. package/dist/reader.d.ts +1 -1
  12. package/dist/reader.js +2 -1
  13. package/dist/server.d.cts +1 -1
  14. package/dist/server.d.ts +1 -1
  15. package/dist/style-downloader.cjs +2 -2
  16. package/dist/style-downloader.d.cts +1 -1
  17. package/dist/style-downloader.d.ts +1 -1
  18. package/dist/style-downloader.js +2 -2
  19. package/dist/tile-downloader.cjs +2 -2
  20. package/dist/tile-downloader.d.cts +1 -1
  21. package/dist/tile-downloader.d.ts +1 -1
  22. package/dist/tile-downloader.js +2 -2
  23. package/dist/{types-B4Xn1F9K.d.cts → types-yLQy3AKR.d.cts} +6 -3
  24. package/dist/{types-B4Xn1F9K.d.ts → types-yLQy3AKR.d.ts} +6 -3
  25. package/dist/utils/file-formats.d.cts +1 -1
  26. package/dist/utils/file-formats.d.ts +1 -1
  27. package/dist/utils/style.cjs +2 -2
  28. package/dist/utils/style.d.cts +1 -1
  29. package/dist/utils/style.d.ts +1 -1
  30. package/dist/utils/style.js +2 -2
  31. package/dist/utils/templates.cjs +4 -0
  32. package/dist/utils/templates.d.cts +4 -2
  33. package/dist/utils/templates.d.ts +4 -2
  34. package/dist/utils/templates.js +2 -0
  35. package/dist/writer.cjs +51 -3
  36. package/dist/writer.d.cts +1 -1
  37. package/dist/writer.d.ts +1 -1
  38. package/dist/writer.js +53 -3
  39. package/node_modules/@node-rs/crc32/LICENSE +21 -0
  40. package/node_modules/@node-rs/crc32/README.md +61 -0
  41. package/node_modules/@node-rs/crc32/browser.js +1 -0
  42. package/node_modules/@node-rs/crc32/index.d.ts +5 -0
  43. package/node_modules/@node-rs/crc32/index.js +368 -0
  44. package/node_modules/@node-rs/crc32/package.json +97 -0
  45. package/node_modules/@node-rs/crc32-linux-x64-gnu/README.md +3 -0
  46. package/node_modules/@node-rs/crc32-linux-x64-gnu/crc32.linux-x64-gnu.node +0 -0
  47. package/node_modules/@node-rs/crc32-linux-x64-gnu/package.json +43 -0
  48. package/node_modules/@node-rs/crc32-linux-x64-musl/README.md +3 -0
  49. package/node_modules/@node-rs/crc32-linux-x64-musl/crc32.linux-x64-musl.node +0 -0
  50. package/node_modules/@node-rs/crc32-linux-x64-musl/package.json +43 -0
  51. package/node_modules/define-data-property/.eslintrc +24 -0
  52. package/node_modules/define-data-property/.github/FUNDING.yml +12 -0
  53. package/node_modules/define-data-property/.nycrc +13 -0
  54. package/node_modules/define-data-property/CHANGELOG.md +70 -0
  55. package/node_modules/define-data-property/LICENSE +21 -0
  56. package/node_modules/define-data-property/README.md +67 -0
  57. package/node_modules/define-data-property/index.d.ts +12 -0
  58. package/node_modules/define-data-property/index.js +56 -0
  59. package/node_modules/define-data-property/package.json +106 -0
  60. package/node_modules/define-data-property/test/index.js +392 -0
  61. package/node_modules/define-data-property/tsconfig.json +59 -0
  62. package/node_modules/define-properties/.editorconfig +13 -0
  63. package/node_modules/define-properties/.eslintrc +19 -0
  64. package/node_modules/define-properties/.github/FUNDING.yml +12 -0
  65. package/node_modules/define-properties/.nycrc +9 -0
  66. package/node_modules/define-properties/CHANGELOG.md +91 -0
  67. package/node_modules/define-properties/LICENSE +21 -0
  68. package/node_modules/define-properties/README.md +84 -0
  69. package/node_modules/define-properties/index.js +47 -0
  70. package/node_modules/define-properties/package.json +88 -0
  71. package/node_modules/es-define-property/.eslintrc +13 -0
  72. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  73. package/node_modules/es-define-property/.nycrc +9 -0
  74. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  75. package/node_modules/es-define-property/LICENSE +21 -0
  76. package/node_modules/es-define-property/README.md +49 -0
  77. package/node_modules/es-define-property/index.d.ts +3 -0
  78. package/node_modules/es-define-property/index.js +14 -0
  79. package/node_modules/es-define-property/package.json +81 -0
  80. package/node_modules/es-define-property/test/index.js +56 -0
  81. package/node_modules/es-define-property/tsconfig.json +10 -0
  82. package/node_modules/es-errors/.eslintrc +5 -0
  83. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  84. package/node_modules/es-errors/CHANGELOG.md +40 -0
  85. package/node_modules/es-errors/LICENSE +21 -0
  86. package/node_modules/es-errors/README.md +55 -0
  87. package/node_modules/es-errors/eval.d.ts +3 -0
  88. package/node_modules/es-errors/eval.js +4 -0
  89. package/node_modules/es-errors/index.d.ts +3 -0
  90. package/node_modules/es-errors/index.js +4 -0
  91. package/node_modules/es-errors/package.json +80 -0
  92. package/node_modules/es-errors/range.d.ts +3 -0
  93. package/node_modules/es-errors/range.js +4 -0
  94. package/node_modules/es-errors/ref.d.ts +3 -0
  95. package/node_modules/es-errors/ref.js +4 -0
  96. package/node_modules/es-errors/syntax.d.ts +3 -0
  97. package/node_modules/es-errors/syntax.js +4 -0
  98. package/node_modules/es-errors/test/index.js +19 -0
  99. package/node_modules/es-errors/tsconfig.json +49 -0
  100. package/node_modules/es-errors/type.d.ts +3 -0
  101. package/node_modules/es-errors/type.js +4 -0
  102. package/node_modules/es-errors/uri.d.ts +3 -0
  103. package/node_modules/es-errors/uri.js +4 -0
  104. package/node_modules/globalthis/.eslintrc +18 -0
  105. package/node_modules/globalthis/.nycrc +10 -0
  106. package/node_modules/globalthis/CHANGELOG.md +109 -0
  107. package/node_modules/globalthis/LICENSE +21 -0
  108. package/node_modules/globalthis/README.md +70 -0
  109. package/node_modules/globalthis/auto.js +3 -0
  110. package/node_modules/globalthis/implementation.browser.js +11 -0
  111. package/node_modules/globalthis/implementation.js +3 -0
  112. package/node_modules/globalthis/index.js +19 -0
  113. package/node_modules/globalthis/package.json +99 -0
  114. package/node_modules/globalthis/polyfill.js +10 -0
  115. package/node_modules/globalthis/shim.js +29 -0
  116. package/node_modules/globalthis/test/implementation.js +11 -0
  117. package/node_modules/globalthis/test/index.js +11 -0
  118. package/node_modules/globalthis/test/native.js +26 -0
  119. package/node_modules/globalthis/test/shimmed.js +29 -0
  120. package/node_modules/globalthis/test/tests.js +36 -0
  121. package/node_modules/gopd/.eslintrc +16 -0
  122. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  123. package/node_modules/gopd/CHANGELOG.md +45 -0
  124. package/node_modules/gopd/LICENSE +21 -0
  125. package/node_modules/gopd/README.md +40 -0
  126. package/node_modules/gopd/gOPD.d.ts +1 -0
  127. package/node_modules/gopd/gOPD.js +4 -0
  128. package/node_modules/gopd/index.d.ts +5 -0
  129. package/node_modules/gopd/index.js +15 -0
  130. package/node_modules/gopd/package.json +77 -0
  131. package/node_modules/gopd/test/index.js +36 -0
  132. package/node_modules/gopd/tsconfig.json +9 -0
  133. package/node_modules/has-property-descriptors/.eslintrc +13 -0
  134. package/node_modules/has-property-descriptors/.github/FUNDING.yml +12 -0
  135. package/node_modules/has-property-descriptors/.nycrc +9 -0
  136. package/node_modules/has-property-descriptors/CHANGELOG.md +35 -0
  137. package/node_modules/has-property-descriptors/LICENSE +21 -0
  138. package/node_modules/has-property-descriptors/README.md +43 -0
  139. package/node_modules/has-property-descriptors/index.js +22 -0
  140. package/node_modules/has-property-descriptors/package.json +77 -0
  141. package/node_modules/has-property-descriptors/test/index.js +57 -0
  142. package/node_modules/is-it-type/License +19 -0
  143. package/node_modules/is-it-type/README.md +102 -0
  144. package/node_modules/is-it-type/changelog.md +239 -0
  145. package/node_modules/is-it-type/dist/cjs/is-it-type.js +173 -0
  146. package/node_modules/is-it-type/dist/cjs/is-it-type.js.map +1 -0
  147. package/node_modules/is-it-type/dist/cjs/is-it-type.min.js +2 -0
  148. package/node_modules/is-it-type/dist/cjs/is-it-type.min.js.map +1 -0
  149. package/node_modules/is-it-type/dist/esm/is-it-type.js +143 -0
  150. package/node_modules/is-it-type/dist/esm/is-it-type.js.map +1 -0
  151. package/node_modules/is-it-type/dist/esm/is-it-type.min.js +2 -0
  152. package/node_modules/is-it-type/dist/esm/is-it-type.min.js.map +1 -0
  153. package/node_modules/is-it-type/dist/esm/package.json +3 -0
  154. package/node_modules/is-it-type/dist/umd/is-it-type.js +450 -0
  155. package/node_modules/is-it-type/dist/umd/is-it-type.js.map +1 -0
  156. package/node_modules/is-it-type/dist/umd/is-it-type.min.js +2 -0
  157. package/node_modules/is-it-type/dist/umd/is-it-type.min.js.map +1 -0
  158. package/node_modules/is-it-type/es/index.js +8 -0
  159. package/node_modules/is-it-type/es/package.json +3 -0
  160. package/node_modules/is-it-type/index.js +10 -0
  161. package/node_modules/is-it-type/package.json +87 -0
  162. package/node_modules/is-it-type/src/index.js +169 -0
  163. package/node_modules/object-keys/.editorconfig +13 -0
  164. package/node_modules/object-keys/.eslintrc +17 -0
  165. package/node_modules/object-keys/.travis.yml +277 -0
  166. package/node_modules/object-keys/CHANGELOG.md +232 -0
  167. package/node_modules/object-keys/LICENSE +21 -0
  168. package/node_modules/object-keys/README.md +76 -0
  169. package/node_modules/object-keys/implementation.js +122 -0
  170. package/node_modules/object-keys/index.js +32 -0
  171. package/node_modules/object-keys/isArguments.js +17 -0
  172. package/node_modules/object-keys/package.json +88 -0
  173. package/node_modules/object-keys/test/index.js +5 -0
  174. package/node_modules/simple-invariant/License +19 -0
  175. package/node_modules/simple-invariant/README.md +64 -0
  176. package/node_modules/simple-invariant/changelog.md +31 -0
  177. package/node_modules/simple-invariant/index.js +19 -0
  178. package/node_modules/simple-invariant/package.json +50 -0
  179. package/node_modules/yauzl-promise/License +19 -0
  180. package/node_modules/yauzl-promise/README.md +440 -0
  181. package/node_modules/yauzl-promise/index.js +10 -0
  182. package/node_modules/yauzl-promise/lib/entry.js +312 -0
  183. package/node_modules/yauzl-promise/lib/index.js +160 -0
  184. package/node_modules/yauzl-promise/lib/reader.js +289 -0
  185. package/node_modules/yauzl-promise/lib/shared.js +20 -0
  186. package/node_modules/yauzl-promise/lib/utils.js +105 -0
  187. package/node_modules/yauzl-promise/lib/zip.js +1224 -0
  188. package/node_modules/yauzl-promise/package.json +56 -0
  189. package/package.json +9 -11
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "has-property-descriptors",
3
+ "version": "1.0.2",
4
+ "description": "Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.",
5
+ "main": "index.js",
6
+ "exports": {
7
+ ".": "./index.js",
8
+ "./package.json": "./package.json"
9
+ },
10
+ "sideEffects": false,
11
+ "scripts": {
12
+ "prepack": "npmignore --auto --commentLines=autogenerated",
13
+ "prepublishOnly": "safe-publish-latest",
14
+ "prepublish": "not-in-publish || npm run prepublishOnly",
15
+ "pretest": "npm run lint",
16
+ "prelint": "evalmd README.md",
17
+ "lint": "eslint --ext=js,mjs .",
18
+ "tests-only": "nyc tape 'test/**/*.js'",
19
+ "test": "npm run tests-only",
20
+ "posttest": "aud --production",
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+https://github.com/inspect-js/has-property-descriptors.git"
27
+ },
28
+ "keywords": [
29
+ "property",
30
+ "descriptors",
31
+ "has",
32
+ "environment",
33
+ "env",
34
+ "defineProperty",
35
+ "getOwnPropertyDescriptor"
36
+ ],
37
+ "author": "Jordan Harband <ljharb@gmail.com>",
38
+ "funding": {
39
+ "url": "https://github.com/sponsors/ljharb"
40
+ },
41
+ "license": "MIT",
42
+ "bugs": {
43
+ "url": "https://github.com/inspect-js/has-property-descriptors/issues"
44
+ },
45
+ "homepage": "https://github.com/inspect-js/has-property-descriptors#readme",
46
+ "devDependencies": {
47
+ "@ljharb/eslint-config": "^21.1.0",
48
+ "aud": "^2.0.4",
49
+ "auto-changelog": "^2.4.0",
50
+ "eslint": "=8.8.0",
51
+ "evalmd": "^0.0.19",
52
+ "in-publish": "^2.0.1",
53
+ "npmignore": "^0.3.1",
54
+ "nyc": "^10.3.2",
55
+ "safe-publish-latest": "^2.0.0",
56
+ "tape": "^5.7.4"
57
+ },
58
+ "dependencies": {
59
+ "es-define-property": "^1.0.0"
60
+ },
61
+ "testling": {
62
+ "files": "test/index.js"
63
+ },
64
+ "auto-changelog": {
65
+ "output": "CHANGELOG.md",
66
+ "template": "keepachangelog",
67
+ "unreleased": false,
68
+ "commitLimit": false,
69
+ "backfillLimit": false,
70
+ "hideCredit": true
71
+ },
72
+ "publishConfig": {
73
+ "ignore": [
74
+ ".github/workflows"
75
+ ]
76
+ }
77
+ }
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ var test = require('tape');
4
+
5
+ var hasPropertyDescriptors = require('../');
6
+
7
+ var sentinel = {};
8
+
9
+ test('hasPropertyDescriptors', function (t) {
10
+ t.equal(typeof hasPropertyDescriptors, 'function', 'is a function');
11
+ t.equal(typeof hasPropertyDescriptors.hasArrayLengthDefineBug, 'function', '`hasArrayLengthDefineBug` property is a function');
12
+
13
+ var yes = hasPropertyDescriptors();
14
+ t.test('property descriptors', { skip: !yes }, function (st) {
15
+ var o = { a: sentinel };
16
+
17
+ st.deepEqual(
18
+ Object.getOwnPropertyDescriptor(o, 'a'),
19
+ {
20
+ configurable: true,
21
+ enumerable: true,
22
+ value: sentinel,
23
+ writable: true
24
+ },
25
+ 'has expected property descriptor'
26
+ );
27
+
28
+ Object.defineProperty(o, 'a', { enumerable: false, writable: false });
29
+
30
+ st.deepEqual(
31
+ Object.getOwnPropertyDescriptor(o, 'a'),
32
+ {
33
+ configurable: true,
34
+ enumerable: false,
35
+ value: sentinel,
36
+ writable: false
37
+ },
38
+ 'has expected property descriptor after [[Define]]'
39
+ );
40
+
41
+ st.end();
42
+ });
43
+
44
+ var arrayBug = hasPropertyDescriptors.hasArrayLengthDefineBug();
45
+ t.test('defining array lengths', { skip: !yes || arrayBug }, function (st) {
46
+ var arr = [1, , 3]; // eslint-disable-line no-sparse-arrays
47
+ st.equal(arr.length, 3, 'array starts with length 3');
48
+
49
+ Object.defineProperty(arr, 'length', { value: 5 });
50
+
51
+ st.equal(arr.length, 5, 'array ends with length 5');
52
+
53
+ st.end();
54
+ });
55
+
56
+ t.end();
57
+ });
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2022 Overlook Motel (theoverlookmotel@gmail.com)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -0,0 +1,102 @@
1
+ [![NPM version](https://img.shields.io/npm/v/is-it-type.svg)](https://www.npmjs.com/package/is-it-type)
2
+ [![Build Status](https://img.shields.io/github/workflow/status/overlookmotel/is-it-type/Test.svg)](https://github.com/overlookmotel/is-it-type/actions)
3
+ [![Dependency Status](https://img.shields.io/david/overlookmotel/is-it-type.svg)](https://david-dm.org/overlookmotel/is-it-type)
4
+ [![Dev dependency Status](https://img.shields.io/david/dev/overlookmotel/is-it-type.svg)](https://david-dm.org/overlookmotel/is-it-type)
5
+ [![Coverage Status](https://img.shields.io/coveralls/overlookmotel/is-it-type/master.svg)](https://coveralls.io/r/overlookmotel/is-it-type)
6
+
7
+ # Determine type of a variable
8
+
9
+ All the functions from [core-util-is](https://www.npmjs.com/package/core-util-is) plus a few extras, in both CJS and ESM formats for use in Node.js or browser.
10
+
11
+ ## Usage
12
+
13
+ ### Import
14
+
15
+ ```js
16
+ const { isString } = require('is-it-type');
17
+ ```
18
+
19
+ or:
20
+
21
+ ```js
22
+ import { isString } from 'is-it-type';
23
+ ```
24
+
25
+ ### Use a method
26
+
27
+ ```js
28
+ isString('abc'); // true
29
+ ```
30
+
31
+ All methods return `true` or `false`.
32
+
33
+ ## Methods
34
+
35
+ ### Same as [core-util-is](https://www.npmjs.com/package/core-util-is):
36
+
37
+ * `isArray`
38
+ * `isBoolean`
39
+ * `isNull`
40
+ * `isNullOrUndefined`
41
+ * `isNumber`
42
+ * `isString`
43
+ * `isSymbol`
44
+ * `isUndefined`
45
+ * `isRegExp`
46
+ * `isDate`
47
+ * `isError`
48
+ * `isFunction`
49
+ * `isPrimitive`
50
+
51
+ NB [core-util-is](https://www.npmjs.com/package/core-util-is)'s `isBuffer` is not included. `isObject` method differs from [core-util-is](https://www.npmjs.com/package/core-util-is)'s method of same name (see [below](#objects)).
52
+
53
+ ### Additional functions
54
+
55
+ #### Strings
56
+
57
+ * `isEmptyString` - `true` if `=== ''`
58
+ * `isFullString` - `true` if a string which `!== ''`
59
+
60
+ #### Numbers
61
+
62
+ * `isInteger` - `true` if is an integer number (positive, negative or zero)
63
+ * `isPositiveInteger` - `true` if is an integer number > 0
64
+ * `isPositiveIntegerOrZero` - `true` if is an integer number >= 0
65
+ * `isNegativeInteger` - `true` if is an integer number < 0
66
+ * `isNegativeIntegerOrZero` - `true` if is an integer number <= 0
67
+
68
+ #### Objects
69
+
70
+ * `isObject` - `true` if passed object (not including arrays, regexps and other built-ins)
71
+ * `isEmptyObject` - `true` if passed object with no properties
72
+
73
+ #### Other
74
+
75
+ * `isType( type, input )` - `true` if `typeof input === type`
76
+
77
+ ## Versioning
78
+
79
+ This module follows [semver](https://semver.org/). Breaking changes will only be made in major version updates.
80
+
81
+ All active NodeJS release lines are supported (v12+ at time of writing). After a release line of NodeJS reaches end of life according to [Node's LTS schedule](https://nodejs.org/en/about/releases/), support for that version of Node may be dropped at any time, and this will not be considered a breaking change. Dropping support for a Node version will be made in a minor version update (e.g. 1.2.0 to 1.3.0). If you are using a Node version which is approaching end of life, pin your dependency of this module to patch updates only using tilde (`~`) e.g. `~1.2.3` to avoid breakages.
82
+
83
+ ## Tests
84
+
85
+ Use `npm test` to run the tests. Use `npm run cover` to check coverage.
86
+
87
+ ## Changelog
88
+
89
+ See [changelog.md](https://github.com/overlookmotel/is-it-type/blob/master/changelog.md)
90
+
91
+ ## Issues
92
+
93
+ If you discover a bug, please raise an issue on Github. https://github.com/overlookmotel/is-it-type/issues
94
+
95
+ ## Contribution
96
+
97
+ Pull requests are very welcome. Please:
98
+
99
+ * ensure all tests pass before submitting PR
100
+ * add tests for new features
101
+ * document new functionality/API additions in README
102
+ * do not add an entry to Changelog (Changelog is created when cutting releases)
@@ -0,0 +1,239 @@
1
+ # Changelog
2
+
3
+ ## 5.1.3
4
+
5
+ Dependencies:
6
+
7
+ * Remove `@babel/runtime` dependency (#41)
8
+ * Update `package-lock.json` (#42)
9
+
10
+ ## 5.1.2
11
+
12
+ Bug fixes:
13
+
14
+ * Publish `package.json` file in ESM dirs to NPM
15
+
16
+ ## 5.1.1
17
+
18
+ Docs:
19
+
20
+ * Fix changelog
21
+
22
+ ## 5.1.0
23
+
24
+ Semver minor:
25
+
26
+ * Drop support for Node v10
27
+
28
+ Performance:
29
+
30
+ * Speed up `isObject`
31
+ * Export `Array.isArray` directly
32
+
33
+ Dependencies:
34
+
35
+ * Update dependencies
36
+
37
+ Dev:
38
+
39
+ * Use NPM v7 for development
40
+ * Use Github Actions for CI
41
+ * Clean up after `cover` NPM script even if fails
42
+ * Update dev dependencies
43
+
44
+ Docs:
45
+
46
+ * Remove Greenkeeper badge
47
+ * Update license year
48
+ * Remove license indentation
49
+
50
+ ## 5.0.0
51
+
52
+ Breaking changes:
53
+
54
+ * Remove `isArguments` method
55
+ * `isObject` return false for all built-ins
56
+
57
+ Bug fixes:
58
+
59
+ * Avoid relying on `Object.prototype.toString` to identify types
60
+
61
+ ## 4.1.1
62
+
63
+ Build:
64
+
65
+ * Fix Rollup config [fix]
66
+
67
+ Deps:
68
+
69
+ * Update `@babel/runtime` dependency
70
+
71
+ Dev:
72
+
73
+ * Update dev dependencies
74
+
75
+ ## 4.1.0
76
+
77
+ Features:
78
+
79
+ * `isArguments` method
80
+ * Drop support for Node v13
81
+
82
+ Dependencies:
83
+
84
+ * Update `@babel/runtime` dependency
85
+
86
+ Tests:
87
+
88
+ * Correct test [fix]
89
+
90
+ Dev:
91
+
92
+ * Update dev dependencies
93
+ * Simplify lint scripts
94
+
95
+ ## 4.0.0
96
+
97
+ Breaking changes:
98
+
99
+ * `isObject` returns false for arrays and other built-ins
100
+
101
+ Dependencies:
102
+
103
+ * Update `@babel/runtime` dependency
104
+
105
+ No code:
106
+
107
+ * Remove duplicate code comment
108
+
109
+ Tests:
110
+
111
+ * Run coverage in dev mode
112
+ * Move ESLint config into config file [nocode]
113
+
114
+ Dev:
115
+
116
+ * Run tests on CI on Node v14
117
+ * Update dev dependencies
118
+ * `.editorconfig` config
119
+ * Replace `.npmignore` with `files` list in `package.json`
120
+
121
+ ## 3.1.1
122
+
123
+ Bug fixes:
124
+
125
+ * ESM export fully tree-shakable
126
+
127
+ ## 3.1.0
128
+
129
+ Features:
130
+
131
+ * ESM import without `es` path
132
+
133
+ Refactor:
134
+
135
+ * Remove extraneous code
136
+
137
+ Dev:
138
+
139
+ * Improve config for running tests on ESM build
140
+
141
+ ## 3.0.2
142
+
143
+ Refactor:
144
+
145
+ * Shorten `isEmptyObject` function
146
+
147
+ ## 3.0.1
148
+
149
+ Docs:
150
+
151
+ * README update
152
+
153
+ ## 3.0.0
154
+
155
+ Breaking changes:
156
+
157
+ * Remove `isBuffer` function
158
+ * Re-implement core-util-is functions
159
+
160
+ Features:
161
+
162
+ * ESM exports
163
+
164
+ Refactor:
165
+
166
+ * Imports specify file extension
167
+
168
+ Dev:
169
+
170
+ * Update dev dependencies
171
+ * ESLint not ignore dot files
172
+ * Remove `npm-debug.log` from `.gitignore`
173
+
174
+ No code:
175
+
176
+ * Config files header comments
177
+ * Line spacing
178
+
179
+ Docs:
180
+
181
+ * README update
182
+
183
+ ## 2.0.0
184
+
185
+ Breaking changes:
186
+
187
+ * Drop support for Node v8
188
+
189
+ Dev:
190
+
191
+ * Update dev dependencies
192
+ * Remove `sudo` from Travis CI config
193
+ * ESLint ignore coverage dir
194
+
195
+ Docs:
196
+
197
+ * Versioning policy
198
+ * Update license year
199
+
200
+ ## 1.2.0
201
+
202
+ Features:
203
+
204
+ * Number methods
205
+
206
+ Tests:
207
+
208
+ * Split into multiple files
209
+
210
+ Dev:
211
+
212
+ * Update dev dependencies
213
+
214
+ ## 1.1.2
215
+
216
+ Docs:
217
+
218
+ * Add `isEmptyObject` to README
219
+
220
+ ## 1.1.1
221
+
222
+ Dev:
223
+
224
+ * CI run tests on Node 13
225
+
226
+ ## 1.1.0
227
+
228
+ Features:
229
+
230
+ * `isEmptyObject` method
231
+
232
+ Dev:
233
+
234
+ * Update dev dependencies
235
+
236
+ ## 1.0.0
237
+
238
+ Initial release
239
+
@@ -0,0 +1,173 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var getGlobalThis = require('globalthis');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var getGlobalThis__default = /*#__PURE__*/_interopDefaultLegacy(getGlobalThis);
10
+
11
+ /* --------------------
12
+ * is-it-type module
13
+ * Entry point
14
+ * ------------------*/
15
+
16
+ /*
17
+ * Replication of core-util-is methods.
18
+ * https://www.npmjs.com/package/core-util-is
19
+ * NB `isBuffer()` is omitted and `isObject()` is different from `core-util-is`'s implementation
20
+ */
21
+
22
+ var isArray = Array.isArray;
23
+ function isBoolean(arg) {
24
+ return isType('boolean', arg);
25
+ }
26
+ function isNull(arg) {
27
+ return arg === null;
28
+ }
29
+ function isUndefined(arg) {
30
+ return arg === void 0; // eslint-disable-line no-void
31
+ }
32
+ function isNullOrUndefined(arg) {
33
+ return arg == null;
34
+ }
35
+ function isNumber(arg) {
36
+ return isType('number', arg);
37
+ }
38
+ function isString(arg) {
39
+ return isType('string', arg);
40
+ }
41
+ function isSymbol(arg) {
42
+ return isType('symbol', arg);
43
+ }
44
+ function isRegExp(arg) {
45
+ return arg instanceof RegExp;
46
+ }
47
+ function isDate(arg) {
48
+ return arg instanceof Date;
49
+ }
50
+ function isError(arg) {
51
+ return arg instanceof Error;
52
+ }
53
+ function isFunction(arg) {
54
+ return isType('function', arg);
55
+ }
56
+ function isPrimitive(arg) {
57
+ var type = getType(arg);
58
+ return arg == null || type === 'boolean' || type === 'number' || type === 'string' || type === 'symbol';
59
+ }
60
+ /*
61
+ * Additional methods
62
+ */
63
+ // Strings
64
+
65
+ function isEmptyString(arg) {
66
+ return arg === '';
67
+ }
68
+ function isFullString(arg) {
69
+ return isString(arg) && !isEmptyString(arg);
70
+ } // Objects
71
+
72
+ var getPrototypeOf = Object.getPrototypeOf,
73
+ ObjectPrototype = Object.prototype,
74
+ globalThis = getGlobalThis__default["default"]();
75
+ function isObject(arg) {
76
+ if (!isType('object', arg) || isNull(arg)) return false;
77
+ var proto = getPrototypeOf(arg);
78
+ if (proto === null || proto === ObjectPrototype) return true;
79
+
80
+ while (true) {
81
+ // eslint-disable-line no-constant-condition
82
+ var nextProto = getPrototypeOf(proto);
83
+ if (nextProto === null) return true;
84
+ if (nextProto === ObjectPrototype) break;
85
+ proto = nextProto;
86
+ }
87
+
88
+ return isNotNativeProto(proto);
89
+ }
90
+
91
+ function isNotNativeProto(proto) {
92
+ var nativeProtos = [];
93
+
94
+ for (var _i = 0, _arr = ['Function', 'Array', 'Number', 'Boolean', 'String', 'Symbol', 'Date', 'Promise', 'RegExp', 'Error', 'ArrayBuffer', 'DataView', 'Map', 'BigInt', 'Set', 'WeakMap', 'WeakSet', 'SharedArrayBuffer', 'FinalizationRegistry', 'WeakRef', 'URL', 'URLSearchParams', 'TextEncoder', 'TextDecoder']; _i < _arr.length; _i++) {
95
+ var ctorName = _arr[_i];
96
+ var ctor = globalThis[ctorName];
97
+ if (ctor) nativeProtos.push(ctor.prototype);
98
+ }
99
+
100
+ if (typeof Uint8Array === 'function') nativeProtos.push(getPrototypeOf(Uint8Array.prototype));
101
+
102
+ if (typeof Set === 'function') {
103
+ nativeProtos = new Set(nativeProtos);
104
+
105
+ isNotNativeProto = function isNotNativeProto(p) {
106
+ return !nativeProtos.has(p);
107
+ }; // eslint-disable-line no-func-assign
108
+
109
+ } else {
110
+ isNotNativeProto = function isNotNativeProto(p) {
111
+ return !nativeProtos.includes(p);
112
+ }; // eslint-disable-line no-func-assign
113
+
114
+ }
115
+
116
+ return isNotNativeProto(proto);
117
+ }
118
+
119
+ function isEmptyObject(arg) {
120
+ return isObject(arg) && Object.keys(arg).length === 0;
121
+ } // Numbers
122
+
123
+ function isInteger(arg) {
124
+ return Number.isInteger(arg);
125
+ }
126
+ function isPositiveInteger(arg) {
127
+ return isInteger(arg) && arg > 0;
128
+ }
129
+ function isPositiveIntegerOrZero(arg) {
130
+ return isInteger(arg) && arg >= 0;
131
+ }
132
+ function isNegativeInteger(arg) {
133
+ return isInteger(arg) && arg < 0;
134
+ }
135
+ function isNegativeIntegerOrZero(arg) {
136
+ return isInteger(arg) && arg <= 0;
137
+ } // Other
138
+
139
+ function isType(type, arg) {
140
+ return getType(arg) === type;
141
+ }
142
+ /*
143
+ * Helpers
144
+ */
145
+
146
+ function getType(arg) {
147
+ return typeof arg;
148
+ }
149
+
150
+ exports.isArray = isArray;
151
+ exports.isBoolean = isBoolean;
152
+ exports.isDate = isDate;
153
+ exports.isEmptyObject = isEmptyObject;
154
+ exports.isEmptyString = isEmptyString;
155
+ exports.isError = isError;
156
+ exports.isFullString = isFullString;
157
+ exports.isFunction = isFunction;
158
+ exports.isInteger = isInteger;
159
+ exports.isNegativeInteger = isNegativeInteger;
160
+ exports.isNegativeIntegerOrZero = isNegativeIntegerOrZero;
161
+ exports.isNull = isNull;
162
+ exports.isNullOrUndefined = isNullOrUndefined;
163
+ exports.isNumber = isNumber;
164
+ exports.isObject = isObject;
165
+ exports.isPositiveInteger = isPositiveInteger;
166
+ exports.isPositiveIntegerOrZero = isPositiveIntegerOrZero;
167
+ exports.isPrimitive = isPrimitive;
168
+ exports.isRegExp = isRegExp;
169
+ exports.isString = isString;
170
+ exports.isSymbol = isSymbol;
171
+ exports.isType = isType;
172
+ exports.isUndefined = isUndefined;
173
+ //# sourceMappingURL=is-it-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-it-type.js","sources":["../../src/index.js"],"sourcesContent":["/* --------------------\n * is-it-type module\n * Entry point\n * ------------------*/\n\n// Modules\nimport getGlobalThis from 'globalthis';\n\n// Exports\n\n/*\n * Replication of core-util-is methods.\n * https://www.npmjs.com/package/core-util-is\n * NB `isBuffer()` is omitted and `isObject()` is different from `core-util-is`'s implementation\n */\n\nexport const {isArray} = Array;\n\nexport function isBoolean(arg) {\n\treturn isType('boolean', arg);\n}\n\nexport function isNull(arg) {\n\treturn arg === null;\n}\n\nexport function isUndefined(arg) {\n\treturn arg === void 0; // eslint-disable-line no-void\n}\n\nexport function isNullOrUndefined(arg) {\n\treturn arg == null;\n}\n\nexport function isNumber(arg) {\n\treturn isType('number', arg);\n}\n\nexport function isString(arg) {\n\treturn isType('string', arg);\n}\n\nexport function isSymbol(arg) {\n\treturn isType('symbol', arg);\n}\n\nexport function isRegExp(arg) {\n\treturn arg instanceof RegExp;\n}\n\nexport function isDate(arg) {\n\treturn arg instanceof Date;\n}\n\nexport function isError(arg) {\n\treturn arg instanceof Error;\n}\n\nexport function isFunction(arg) {\n\treturn isType('function', arg);\n}\n\nexport function isPrimitive(arg) {\n\tconst type = getType(arg);\n\treturn arg == null\n\t\t|| type === 'boolean'\n\t\t|| type === 'number'\n\t\t|| type === 'string'\n\t\t|| type === 'symbol';\n}\n\n/*\n * Additional methods\n */\n\n// Strings\n\nexport function isEmptyString(arg) {\n\treturn arg === '';\n}\n\nexport function isFullString(arg) {\n\treturn isString(arg) && !isEmptyString(arg);\n}\n\n// Objects\n\nconst {getPrototypeOf} = Object,\n\tObjectPrototype = Object.prototype,\n\tglobalThis = getGlobalThis();\n\nexport function isObject(arg) {\n\tif (!isType('object', arg) || isNull(arg)) return false;\n\n\tlet proto = getPrototypeOf(arg);\n\tif (proto === null || proto === ObjectPrototype) return true;\n\n\twhile (true) { // eslint-disable-line no-constant-condition\n\t\tconst nextProto = getPrototypeOf(proto);\n\t\tif (nextProto === null) return true;\n\t\tif (nextProto === ObjectPrototype) break;\n\t\tproto = nextProto;\n\t}\n\n\treturn isNotNativeProto(proto);\n}\n\nfunction isNotNativeProto(proto) {\n\tlet nativeProtos = [];\n\tfor (const ctorName of [\n\t\t'Function', 'Array', 'Number', 'Boolean', 'String', 'Symbol', 'Date', 'Promise', 'RegExp', 'Error',\n\t\t'ArrayBuffer', 'DataView', 'Map', 'BigInt', 'Set', 'WeakMap', 'WeakSet', 'SharedArrayBuffer',\n\t\t'FinalizationRegistry', 'WeakRef', 'URL', 'URLSearchParams', 'TextEncoder', 'TextDecoder'\n\t]) {\n\t\tconst ctor = globalThis[ctorName];\n\t\tif (ctor) nativeProtos.push(ctor.prototype);\n\t}\n\n\tif (typeof Uint8Array === 'function') nativeProtos.push(getPrototypeOf(Uint8Array.prototype));\n\n\tif (typeof Set === 'function') {\n\t\tnativeProtos = new Set(nativeProtos);\n\t\tisNotNativeProto = p => !nativeProtos.has(p); // eslint-disable-line no-func-assign\n\t} else {\n\t\tisNotNativeProto = p => !nativeProtos.includes(p); // eslint-disable-line no-func-assign\n\t}\n\n\treturn isNotNativeProto(proto);\n}\n\nexport function isEmptyObject(arg) {\n\treturn isObject(arg) && Object.keys(arg).length === 0;\n}\n\n// Numbers\n\nexport function isInteger(arg) {\n\treturn Number.isInteger(arg);\n}\n\nexport function isPositiveInteger(arg) {\n\treturn isInteger(arg) && arg > 0;\n}\n\nexport function isPositiveIntegerOrZero(arg) {\n\treturn isInteger(arg) && arg >= 0;\n}\n\nexport function isNegativeInteger(arg) {\n\treturn isInteger(arg) && arg < 0;\n}\n\nexport function isNegativeIntegerOrZero(arg) {\n\treturn isInteger(arg) && arg <= 0;\n}\n\n// Other\n\nexport function isType(type, arg) {\n\treturn getType(arg) === type;\n}\n\n/*\n * Helpers\n */\n\nfunction getType(arg) {\n\treturn typeof arg;\n}\n"],"names":["isArray","Array","isBoolean","arg","isType","isNull","isUndefined","isNullOrUndefined","isNumber","isString","isSymbol","isRegExp","RegExp","isDate","Date","isError","Error","isFunction","isPrimitive","type","getType","isEmptyString","isFullString","getPrototypeOf","Object","ObjectPrototype","prototype","globalThis","getGlobalThis","isObject","proto","nextProto","isNotNativeProto","nativeProtos","ctorName","ctor","push","Uint8Array","Set","p","has","includes","isEmptyObject","keys","length","isInteger","Number","isPositiveInteger","isPositiveIntegerOrZero","isNegativeInteger","isNegativeIntegerOrZero"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;;IAEcA,OAAP,GAAkBC,KAAlB,CAAOD;AAEP,SAASE,SAAT,CAAmBC,GAAnB,EAAwB;AAC9B,SAAOC,MAAM,CAAC,SAAD,EAAYD,GAAZ,CAAb;AACA;AAEM,SAASE,MAAT,CAAgBF,GAAhB,EAAqB;AAC3B,SAAOA,GAAG,KAAK,IAAf;AACA;AAEM,SAASG,WAAT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AC5C,SAAO0C,SAAS,CAAC1C,GAAD,CAAT,IAAkBA,GAAG,IAAI,CAAhC;AACA;;AAIM,SAASC,MAAT,CAAgBe,IAAhB,EAAsBhB,GAAtB,EAA2B;AACjC,SAAOiB,OAAO,CAACjB,GAAD,CAAP,KAAiBgB,IAAxB;AACA;AAED;AACA;AACA;;AAEA,SAASC,OAAT,CAAiBjB,GAAjB,EAAsB;AACrB,SAAO,OAAOA,GAAd;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ "use strict";function r(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}Object.defineProperty(exports,"__esModule",{value:!0});var e=r(require("globalthis")),t=Array.isArray;function n(r){return null===r}function o(r){return l("string",r)}function i(r){return""===r}var u=Object.getPrototypeOf,s=Object.prototype,f=e.default();function c(r){if(!l("object",r)||n(r))return!1;var e=u(r);if(null===e||e===s)return!0;for(;;){var t=u(e);if(null===t)return!0;if(t===s)break;e=t}return a(e)}function a(r){for(var e=[],t=0,n=["Function","Array","Number","Boolean","String","Symbol","Date","Promise","RegExp","Error","ArrayBuffer","DataView","Map","BigInt","Set","WeakMap","WeakSet","SharedArrayBuffer","FinalizationRegistry","WeakRef","URL","URLSearchParams","TextEncoder","TextDecoder"];t<n.length;t++){var o=f[n[t]];o&&e.push(o.prototype)}return"function"==typeof Uint8Array&&e.push(u(Uint8Array.prototype)),"function"==typeof Set?(e=new Set(e),a=function(r){return!e.has(r)}):a=function(r){return!e.includes(r)},a(r)}function p(r){return Number.isInteger(r)}function l(r,e){return x(e)===r}function x(r){return typeof r}exports.isArray=t,exports.isBoolean=function(r){return l("boolean",r)},exports.isDate=function(r){return r instanceof Date},exports.isEmptyObject=function(r){return c(r)&&0===Object.keys(r).length},exports.isEmptyString=i,exports.isError=function(r){return r instanceof Error},exports.isFullString=function(r){return o(r)&&!i(r)},exports.isFunction=function(r){return l("function",r)},exports.isInteger=p,exports.isNegativeInteger=function(r){return p(r)&&r<0},exports.isNegativeIntegerOrZero=function(r){return p(r)&&r<=0},exports.isNull=n,exports.isNullOrUndefined=function(r){return null==r},exports.isNumber=function(r){return l("number",r)},exports.isObject=c,exports.isPositiveInteger=function(r){return p(r)&&r>0},exports.isPositiveIntegerOrZero=function(r){return p(r)&&r>=0},exports.isPrimitive=function(r){var e=x(r);return null==r||"boolean"===e||"number"===e||"string"===e||"symbol"===e},exports.isRegExp=function(r){return r instanceof RegExp},exports.isString=o,exports.isSymbol=function(r){return l("symbol",r)},exports.isType=l,exports.isUndefined=function(r){return void 0===r};
2
+ //# sourceMappingURL=is-it-type.min.js.map