Socket
Socket
Sign inDemoInstall

@es-shims/api

Package Overview
Dependencies
Maintainers
2
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 1.3.0 to 2.0.0

8

.jscs.json

@@ -161,10 +161,10 @@ {

"requireSpaceBeforeObjectValues": true,
"requireSpaceBeforeDestructuredValues": true,
"requireSpaceBeforeObjectValues": true,
"requireSpaceBeforeDestructuredValues": true,
"disallowSpacesInsideTemplateStringPlaceholders": true,
"disallowArrayDestructuringReturn": false,
"disallowArrayDestructuringReturn": false,
"requireNewlineBeforeSingleStatementsInIf": false,
"requireNewlineBeforeSingleStatementsInIf": false,

@@ -171,0 +171,0 @@ "disallowUnusedVariables": true,

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

var skipShimPolyfill = args.some(argEquals('--skip-shim-returns-polyfill'));
var skipAutoShim = args.some(argEquals('--skip-auto-shim'));
var makeEntries = function (name) {

@@ -81,3 +82,3 @@ return [name, name];

t.test('implementation', function (st) {
st.equal(implementation, module.implementation, 'module.exports.implementaton === implementation.js');
st.equal(implementation, module.implementation, 'module.exports.implementation === implementation.js');
if (isProperty) {

@@ -111,2 +112,13 @@ st.comment('# SKIP implementation that is a data property need not be a function');

t.test('auto', function (st) {
var msg = 'auto is present';
if (skipAutoShim) {
st.comment('# SKIP ' + msg);
} else {
require(packageDir + '/auto');
st.comment(msg + ' (pass `--skip-auto-shim` to skip this test)');
}
st.end();
});
return void 0;

@@ -113,0 +125,0 @@ };

@@ -0,1 +1,7 @@

2.0.0 / 2017-12-20
==================
* [Breaking] add `auto` requirement (#16)
* [Deps] update `tape`
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `nsp`
1.3.0 / 2017-07-26

@@ -2,0 +8,0 @@ ==================

{
"name": "@es-shims/api",
"version": "1.3.0",
"version": "2.0.0",
"author": "Jordan Harband",

@@ -38,11 +38,11 @@ "description": "Loosely test a package's compliance with the es-shim API",

"dependencies": {
"tape": "^4.6.0"
"tape": "^4.8.0"
},
"devDependencies": {
"@ljharb/eslint-config": "^12.2.0",
"eslint": "^4.3.0",
"@ljharb/eslint-config": "^12.2.1",
"eslint": "^4.13.1",
"jscs": "^3.0.7",
"make-arrow-function": "^1.1.0",
"make-generator-function": "^1.1.0",
"nsp": "^2.6.3",
"nsp": "^3.1.0",
"replace": "^0.3.0",

@@ -49,0 +49,0 @@ "semver": "^5.4.1"

@@ -19,2 +19,3 @@ # es-shim API <sup>[![Version Badge][2]][1]</sup>

- `require('foo').shim` or `require('foo/shim')` is a function that when invoked, will call `getPolyfill`, and if the polyfill doesn’t match the built-in value, will install it into the global environment.
- `require('foo/auto')` will automatically invoke the `shim` method.
- The only place the package may modify the environment is within its `shim` method.

@@ -21,0 +22,0 @@ - Naturally, `npm test` must run the package’s tests.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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