Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 59b4c16

Browse files
committedSep 20, 2024··
[Breaking] update to es-shims API v3
1 parent edf067a commit 59b4c16

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed
 

‎index.js

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
'use strict';
22

3-
var define = require('define-properties');
4-
5-
var implementation = require('./implementation');
63
var getPolyfill = require('./polyfill');
7-
var shim = require('./shim');
8-
9-
var polyfill = getPolyfill();
10-
11-
define(polyfill, {
12-
getPolyfill: getPolyfill,
13-
implementation: implementation,
14-
shim: shim
15-
});
164

17-
module.exports = polyfill;
5+
module.exports = getPolyfill();

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"prepublish": "not-in-publish || npm run prepublishOnly",
1919
"pretest": "npm run lint",
2020
"lint": "eslint --ext=js,mjs .",
21-
"postlint": "es-shim-api --bound",
21+
"postlint": "es-shim-api --type=constructor",
2222
"tests-only": "nyc tape 'test/**/*.js'",
2323
"test": "npm run tests-only",
2424
"posttest": "npx npm@'>=10.2' audit --production",
@@ -48,7 +48,7 @@
4848
},
4949
"homepage": "https://github.com/es-shims/Set#readme",
5050
"devDependencies": {
51-
"@es-shims/api": "=2.5.0",
51+
"@es-shims/api": "^3.0.1",
5252
"@ljharb/eslint-config": "^21.1.1",
5353
"array.from": "^1.1.6",
5454
"auto-changelog": "^2.5.0",

0 commit comments

Comments
 (0)
Please sign in to comment.