Skip to content

Commit

Permalink
[Breaking] update to es-shims API v3
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 20, 2024
1 parent c4c52eb commit 74dfc15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
14 changes: 1 addition & 13 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
'use strict';

var define = require('define-properties');

var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
var shim = require('./shim');

var polyfill = getPolyfill();

define(polyfill, {
getPolyfill: getPolyfill,
implementation: implementation,
shim: shim
});

module.exports = polyfill;
module.exports = getPolyfill();
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run lint",
"lint": "eslint --ext=js,mjs .",
"postlint": "es-shim-api --bound",
"postlint": "es-shim-api --type=constructor",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "npx npm@'>=10.2' audit --production",
Expand Down Expand Up @@ -48,7 +48,7 @@
},
"homepage": "https://github.com/es-shims/Set#readme",
"devDependencies": {
"@es-shims/api": "=2.5.0",
"@es-shims/api": "^3.0.1",
"@ljharb/eslint-config": "^21.1.1",
"array.from": "^1.1.6",
"auto-changelog": "^2.5.0",
Expand Down

0 comments on commit 74dfc15

Please sign in to comment.