@es-shims/api
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -14,2 +14,3 @@ #!/usr/bin/env node | ||
var includes = require('array-includes'); | ||
var inspect = require('object-inspect'); | ||
@@ -179,3 +180,5 @@ var args = process.argv.slice(2); // remove node, and script name | ||
keysToCheck.forEach(function (key) { | ||
st.ok(fs.existsSync(pkg.exports[key]), 'entrypoint "' + key + '" points to "' + pkg.exports[key] + '" which exists'); | ||
var rhs = pkg.exports[key]; | ||
var exists = [].concat(rhs).some(fs.existsSync); | ||
st.ok(exists, 'entrypoint "' + key + '" points to "' + inspect(rhs) + '" which exists (or is an array with one item that exists)'); | ||
}); | ||
@@ -182,0 +185,0 @@ |
@@ -8,2 +8,8 @@ # Changelog | ||
## [v2.4.2](https://github.com/es-shims/es-shim-api/compare/v2.4.1...v2.4.2) - 2023-05-15 | ||
### Commits | ||
- [Fix] handle `exports` with an array RHS [`32d8fa3`](https://github.com/es-shims/es-shim-api/commit/32d8fa35f96bd724c3866e7eb7bc237af8536213) | ||
## [v2.4.1](https://github.com/es-shims/es-shim-api/compare/v2.4.0...v2.4.1) - 2023-05-03 | ||
@@ -10,0 +16,0 @@ |
{ | ||
"name": "@es-shims/api", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"author": "Jordan Harband", | ||
@@ -45,2 +45,3 @@ "funding": { | ||
"array.prototype.flatmap": "^1.3.1", | ||
"object-inspect": "^1.12.3", | ||
"object-keys": "^1.1.1", | ||
@@ -47,0 +48,0 @@ "tape": "^5.6.3" |
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
37140
254
5
+ Addedobject-inspect@^1.12.3