Socket
Socket
Sign inDemoInstall

@es-shims/api

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@es-shims/api - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

5

api.js

@@ -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 @@

3

package.json
{
"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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc