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.2.0 to 2.2.1

1

api.js

@@ -166,2 +166,3 @@ #!/usr/bin/env node

&& d !== 'node_modules'
&& d !== 'coverage'
&& d !== 'helpers'

@@ -168,0 +169,0 @@ && d !== 'test'

@@ -0,1 +1,6 @@

2.2.1 / 2021-09-02
==================
* [Fix] `--multi`: test subpackages’ `auto` endpoint
* [Fix] `--multi`: skip `coverage` directory
2.2.0 / 2021-09-02

@@ -2,0 +7,0 @@ ==================

8

multiAutoTest.js

@@ -26,10 +26,14 @@ #!/usr/bin/env node

subPackages.forEach(function (subPackage) {
require(path.join(process.cwd(), subPackage, 'auto'));
});
console.log('## shims were called ' + fakeShim.calls.length + ' times');
assert.equal(fakeShim.calls.length, subPackages.length, 'shim was called once per sub-package');
assert.equal(fakeShim.calls.length, subPackages.length * 2, 'shim was called twice per sub-package');
var expectedCalls = subPackages.map(function () {
return [undefined, []];
});
assert.deepEqual(fakeShim.calls, expectedCalls, 'all shims were invoked with no receiver or arguments');
assert.deepEqual(fakeShim.calls, expectedCalls.concat(expectedCalls), 'all shims were invoked with no receiver or arguments');
console.log('## all shims were invoked with no receiver or arguments');
{
"name": "@es-shims/api",
"version": "2.2.0",
"version": "2.2.1",
"author": "Jordan Harband",

@@ -5,0 +5,0 @@ "funding": {

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