Skip to content

Commit

Permalink
refactor: Switch from es5-ext to ext
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Oct 29, 2019
1 parent d929468 commit c3bc97f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion implement.js
@@ -1,7 +1,7 @@
"use strict";

if (!require("./is-implemented")()) {
Object.defineProperty(require("es5-ext/global"), "Symbol", {
Object.defineProperty(require("ext/global-this"), "Symbol", {
value: require("./polyfill"),
configurable: true,
enumerable: false,
Expand Down
2 changes: 1 addition & 1 deletion index.js
@@ -1,5 +1,5 @@
"use strict";

module.exports = require("./is-implemented")()
? require("es5-ext/global").Symbol
? require("ext/global-this").Symbol
: require("./polyfill");
2 changes: 1 addition & 1 deletion is-implemented.js
@@ -1,6 +1,6 @@
"use strict";

var global = require("es5-ext/global")
var global = require("ext/global-this")
, validTypes = { object: true, symbol: true };

module.exports = function () {
Expand Down
2 changes: 1 addition & 1 deletion is-native-implemented.js
Expand Up @@ -2,6 +2,6 @@

"use strict";

var Symbol = require("es5-ext/global").Symbol;
var Symbol = require("ext/global-this").Symbol;

module.exports = typeof Symbol === "function" && typeof Symbol() === "symbol";
2 changes: 1 addition & 1 deletion lib/private/setup/standard-symbols.js
@@ -1,7 +1,7 @@
"use strict";

var d = require("d")
, NativeSymbol = require("es5-ext/global").Symbol;
, NativeSymbol = require("ext/global-this").Symbol;

module.exports = function (SymbolPolyfill) {
return Object.defineProperties(SymbolPolyfill, {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"d": "^1.0.1",
"es5-ext": "^0.10.51"
"ext": "^1.1.2"
},
"devDependencies": {
"eslint": "^6.3.0",
Expand Down
2 changes: 1 addition & 1 deletion polyfill.js
Expand Up @@ -4,7 +4,7 @@

var d = require("d")
, validateSymbol = require("./validate-symbol")
, NativeSymbol = require("es5-ext/global").Symbol
, NativeSymbol = require("ext/global-this").Symbol
, generateName = require("./lib/private/generate-name")
, setupStandardSymbols = require("./lib/private/setup/standard-symbols")
, setupSymbolRegistry = require("./lib/private/setup/symbol-registry");
Expand Down
2 changes: 1 addition & 1 deletion test/is-implemented.js
@@ -1,6 +1,6 @@
"use strict";

var global = require("es5-ext/global")
var global = require("ext/global-this")
, polyfill = require("../polyfill");

module.exports = function (t, a) {
Expand Down

0 comments on commit c3bc97f

Please sign in to comment.