object-inspect
Advanced tools
Comparing version 1.12.2 to 1.12.3
@@ -8,2 +8,12 @@ # Changelog | ||
## [v1.12.3](https://github.com/inspect-js/object-inspect/compare/v1.12.2...v1.12.3) - 2023-01-12 | ||
### Commits | ||
- [Fix] in eg FF 24, collections lack forEach [`75fc226`](https://github.com/inspect-js/object-inspect/commit/75fc22673c82d45f28322b1946bb0eb41b672b7f) | ||
- [actions] update rebase action to use reusable workflow [`250a277`](https://github.com/inspect-js/object-inspect/commit/250a277a095e9dacc029ab8454dcfc15de549dcd) | ||
- [Dev Deps] update `aud`, `es-value-fixtures`, `tape` [`66a19b3`](https://github.com/inspect-js/object-inspect/commit/66a19b3209ccc3c5ef4b34c3cb0160e65d1ce9d5) | ||
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `error-cause` [`c43d332`](https://github.com/inspect-js/object-inspect/commit/c43d3324b48384a16fd3dc444e5fc589d785bef3) | ||
- [Tests] add `@pkgjs/support` to `postlint` [`e2618d2`](https://github.com/inspect-js/object-inspect/commit/e2618d22a7a3fa361b6629b53c1752fddc9c4d80) | ||
## [v1.12.2](https://github.com/inspect-js/object-inspect/compare/v1.12.1...v1.12.2) - 2022-05-26 | ||
@@ -10,0 +20,0 @@ |
16
index.js
@@ -205,5 +205,7 @@ var hasMap = typeof Map === 'function' && Map.prototype; | ||
var mapParts = []; | ||
mapForEach.call(obj, function (value, key) { | ||
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); | ||
}); | ||
if (mapForEach) { | ||
mapForEach.call(obj, function (value, key) { | ||
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); | ||
}); | ||
} | ||
return collectionOf('Map', mapSize.call(obj), mapParts, indent); | ||
@@ -213,5 +215,7 @@ } | ||
var setParts = []; | ||
setForEach.call(obj, function (value) { | ||
setParts.push(inspect(value, obj)); | ||
}); | ||
if (setForEach) { | ||
setForEach.call(obj, function (value) { | ||
setParts.push(inspect(value, obj)); | ||
}); | ||
} | ||
return collectionOf('Set', setSize.call(obj), setParts, indent); | ||
@@ -218,0 +222,0 @@ } |
{ | ||
"name": "object-inspect", | ||
"version": "1.12.2", | ||
"version": "1.12.3", | ||
"description": "string representations of objects in node and the browser", | ||
@@ -8,8 +8,9 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^21.0.0", | ||
"aud": "^2.0.0", | ||
"@ljharb/eslint-config": "^21.0.1", | ||
"@pkgjs/support": "^0.0.6", | ||
"aud": "^2.0.2", | ||
"auto-changelog": "^2.4.0", | ||
"core-js": "^2.6.12", | ||
"error-cause": "^1.0.4", | ||
"es-value-fixtures": "^1.4.1", | ||
"error-cause": "^1.0.5", | ||
"es-value-fixtures": "^1.4.2", | ||
"eslint": "=8.8.0", | ||
@@ -19,2 +20,3 @@ "for-each": "^0.3.3", | ||
"has-tostringtag": "^1.0.0", | ||
"in-publish": "^2.0.1", | ||
"make-arrow-function": "^1.2.0", | ||
@@ -26,3 +28,3 @@ "mock-property": "^1.0.0", | ||
"string.prototype.repeat": "^1.0.0", | ||
"tape": "^5.5.3" | ||
"tape": "^5.6.1" | ||
}, | ||
@@ -34,3 +36,4 @@ "scripts": { | ||
"pretest": "npm run lint", | ||
"lint": "eslint .", | ||
"lint": "eslint --ext=js,mjs .", | ||
"postlint": "npx @pkgjs/support validate", | ||
"test": "npm run tests-only && npm run test:corejs", | ||
@@ -37,0 +40,0 @@ "tests-only": "nyc tape 'test/*.js'", |
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
94776
1473
19