diff --git a/index.js b/index.js index b8ba091..76c4066 100644 --- a/index.js +++ b/index.js @@ -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(); diff --git a/package.json b/package.json index 28b031b..9dd5cbc 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,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", @@ -47,7 +47,7 @@ }, "homepage": "https://github.com/es-shims/es-map#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",