is-boolean-object
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -8,2 +8,21 @@ # Changelog | ||
## [v1.2.0](https://github.com/inspect-js/is-boolean-object/compare/v1.1.2...v1.2.0) - 2024-12-01 | ||
### Commits | ||
- [actions] reuse common workflows [`380fa25`](https://github.com/inspect-js/is-boolean-object/commit/380fa254d963699ba7e1b7bfaee3cd4c50142f1a) | ||
- [meta] use `npmignore` to autogenerate an npmignore file [`befa203`](https://github.com/inspect-js/is-boolean-object/commit/befa203ffa0e94c70d5b35aae407ea93e0bbc117) | ||
- [actions] split out node 10-20, and 20+ [`ca31663`](https://github.com/inspect-js/is-boolean-object/commit/ca31663ef1e4195ffeef125fb337c5e58bf878ca) | ||
- [New] add types [`6d58609`](https://github.com/inspect-js/is-boolean-object/commit/6d58609867b97b832ff5e73941b4164f0a9a78ec) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `core-js`, `safe-publish-latest`, `tape` [`06cc67e`](https://github.com/inspect-js/is-boolean-object/commit/06cc67eed7647dc9094611f03bd2802fb3695e37) | ||
- [actions] update codecov uploader [`0722346`](https://github.com/inspect-js/is-boolean-object/commit/0722346b425c46e50864d76507c3d3a97678273b) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`100acdf`](https://github.com/inspect-js/is-boolean-object/commit/100acdf9405f8496bdc71b7c383ab9e2119560af) | ||
- [actions] update rebase action to use reusable workflow [`26333ff`](https://github.com/inspect-js/is-boolean-object/commit/26333ffc7bf92b7d751a68721cd7b27f8c59a250) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `core-js`, `tape` [`fde97ee`](https://github.com/inspect-js/is-boolean-object/commit/fde97eed23a8caa95beaa6fc710adf9526b99155) | ||
- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `core-js`, `npmignore`, `tape` [`f5ed3c8`](https://github.com/inspect-js/is-boolean-object/commit/f5ed3c8b871451b5dac2f11e16ba3e35e5fdf82e) | ||
- [Deps] update `call-bind`, `has-tostringtag` [`61912e2`](https://github.com/inspect-js/is-boolean-object/commit/61912e211369447287c5cbba952303e1897440bf) | ||
- [Tests] replace `aud` with `npm audit` [`c6a0db5`](https://github.com/inspect-js/is-boolean-object/commit/c6a0db56cb39bd99255589c13c2dc3dde922c755) | ||
- [meta] better `eccheck` command [`3a59ec6`](https://github.com/inspect-js/is-boolean-object/commit/3a59ec6a40479dd4d742531042797e2b79acb898) | ||
- [Dev Deps] add missing peer dep [`c0e10db`](https://github.com/inspect-js/is-boolean-object/commit/c0e10db845b7e7329e6347d9de5fe0190276433c) | ||
## [v1.1.2](https://github.com/inspect-js/is-boolean-object/compare/v1.1.1...v1.1.2) - 2021-08-05 | ||
@@ -10,0 +29,0 @@ |
@@ -7,2 +7,3 @@ 'use strict'; | ||
/** @type {import('.')} */ | ||
var tryBooleanObject = function booleanBrandCheck(value) { | ||
@@ -19,2 +20,3 @@ try { | ||
/** @type {import('.')} */ | ||
module.exports = function isBoolean(value) { | ||
@@ -21,0 +23,0 @@ if (typeof value === 'boolean') { |
{ | ||
"name": "is-boolean-object", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"author": "Jordan Harband <ljharb@gmail.com>", | ||
@@ -12,2 +12,3 @@ "funding": { | ||
"scripts": { | ||
"prepack": "npmignore --auto --commentLines=autogenerated", | ||
"prepublishOnly": "safe-publish-latest", | ||
@@ -20,6 +21,6 @@ "prepublish": "not-in-publish || npm run prepublishOnly", | ||
"test:corejs": "nyc tape test-corejs.js", | ||
"posttest": "aud --production", | ||
"prelint": "npm run eccheck", | ||
"posttest": "npx npm@'>=10.2' audit --production", | ||
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')", | ||
"lint": "eslint --ext=js,mjs .", | ||
"eccheck": "eclint check $(git ls-files)", | ||
"postlint": "tsc -p . && attw -P", | ||
"version": "auto-changelog && git add CHANGELOG.md", | ||
@@ -43,18 +44,25 @@ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" | ||
"dependencies": { | ||
"call-bind": "^1.0.2", | ||
"has-tostringtag": "^1.0.0" | ||
"call-bind": "^1.0.7", | ||
"has-tostringtag": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^17.6.0", | ||
"aud": "^1.1.5", | ||
"auto-changelog": "^2.3.0", | ||
"core-js": "^3.16.0", | ||
"@arethetypeswrong/cli": "^0.17.0", | ||
"@ljharb/eslint-config": "^21.1.1", | ||
"@ljharb/tsconfig": "^0.2.0", | ||
"@types/call-bind": "^1.0.5", | ||
"@types/core-js": "^2.5.8", | ||
"@types/tape": "^5.6.5", | ||
"auto-changelog": "^2.5.0", | ||
"core-js": "^3.39.0", | ||
"eclint": "^2.8.1", | ||
"eslint": "^7.32.0", | ||
"foreach": "^2.0.5", | ||
"encoding": "^0.1.13", | ||
"eslint": "=8.8.0", | ||
"in-publish": "^2.0.1", | ||
"indexof": "^0.0.1", | ||
"is": "^3.3.0", | ||
"npmignore": "^0.3.1", | ||
"nyc": "^10.3.2", | ||
"safe-publish-latest": "^1.1.4", | ||
"tape": "^5.3.0" | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.9.0", | ||
"typescript": "next" | ||
}, | ||
@@ -89,3 +97,9 @@ "testling": { | ||
"hideCredit": true | ||
}, | ||
"publishConfig": { | ||
"ignore": [ | ||
".github/workflows", | ||
"test-corejs.js" | ||
] | ||
} | ||
} |
@@ -9,2 +9,3 @@ 'use strict'; | ||
t.test('primitives', function (st) { | ||
// @ts-expect-error | ||
st.notOk(isBoolean(), 'undefined is not Boolean'); | ||
@@ -34,2 +35,3 @@ st.notOk(isBoolean(null), 'null is not Boolean'); | ||
test('@@toStringTag', { skip: !hasToStringTag }, function (t) { | ||
/** @type {{ toString(): unknown; valueOf(): unknown; [Symbol.toStringTag]?: string; }} */ | ||
var fakeBoolean = { | ||
@@ -36,0 +38,0 @@ toString: function () { return 'true'; }, |
Sorry, the diff of this file is not supported yet
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
25210
12
80
19
+ Addedhas-proto@1.1.0(transitive)
- Removedhas-proto@1.0.3(transitive)
Updatedcall-bind@^1.0.7
Updatedhas-tostringtag@^1.0.2