Comparing version 3.1.0 to 3.1.1
@@ -11,3 +11,2 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } | ||
import bind from 'bind-x'; | ||
import isFunction from 'is-function-x'; | ||
@@ -33,3 +32,3 @@ import isGeneratorFunction from 'is-generator-function'; | ||
import isSymbol from 'is-symbol'; | ||
import isPrimitive from 'is-primitive'; | ||
import isPrimitive from 'is-primitive-x'; | ||
import isArray from 'is-array-x'; | ||
@@ -66,2 +65,4 @@ import isNumberNaN from 'is-nan'; | ||
import toObject from 'to-object-x'; | ||
import call from 'simple-call-x'; | ||
import methodize from 'simple-methodize-x'; | ||
var EMPTY_ARRAY = []; | ||
@@ -71,3 +72,2 @@ var RegExpCtr = /none/.constructor; | ||
var EMPTY_OBJECT = {}; | ||
var call = isFunction.call; | ||
/* eslint-disable-next-line compat/compat */ | ||
@@ -79,4 +79,4 @@ | ||
var testSet = hasSet && new Set(['SetSentinel']); | ||
var setForEach = hasSet && bind(call, testSet.forEach); | ||
var setValues = hasSet && bind(call, testSet.values); | ||
var setForEach = hasSet && methodize(testSet.forEach); | ||
var setValues = hasSet && methodize(testSet.values); | ||
/* eslint-disable-next-line compat/compat */ | ||
@@ -88,10 +88,10 @@ | ||
var testMap = hasMap && new Map([[1, 'MapSentinel']]); | ||
var mapForEach = hasMap && bind(call, testMap.forEach); | ||
var mapValues = hasMap && bind(call, testMap.values); | ||
var mapForEach = hasMap && methodize(testMap.forEach); | ||
var mapValues = hasMap && methodize(testMap.values); | ||
/* eslint-disable-next-line compat/compat */ | ||
var symbolToString = hasSymbolSupport && bind(call, Symbol.prototype.toString); | ||
var symbolToString = hasSymbolSupport && methodize(Symbol.prototype.toString); | ||
/* eslint-disable-next-line compat/compat */ | ||
var symbolValueOf = hasSymbolSupport && bind(call, Symbol.prototype.valueOf); | ||
var symbolValueOf = hasSymbolSupport && methodize(Symbol.prototype.valueOf); | ||
var oSeal = EMPTY_OBJECT.constructor.seal; | ||
@@ -101,14 +101,14 @@ var objectSeal = isFunction(oSeal) ? oSeal : function seal(value) { | ||
}; | ||
var regexpToString = bind(call, RegExpCtr.prototype.toString); | ||
var regexpTest = bind(call, RegExpCtr.prototype.test); | ||
var errorToString = bind(call, Error.prototype.toString); | ||
var numberToString = bind(call, 0 .toString); | ||
var booleanToString = bind(call, true.toString); | ||
var concat = bind(call, EMPTY_ARRAY.concat, EMPTY_ARRAY); | ||
var join = bind(call, EMPTY_ARRAY.join); | ||
var push = bind(call, EMPTY_ARRAY.push); | ||
var getTime = bind(call, Date.prototype.getTime); | ||
var replace = bind(call, EMPTY_STRING.replace); | ||
var strSlice = bind(call, EMPTY_STRING.slice); | ||
var propertyIsEnumerable = bind(call, EMPTY_OBJECT.propertyIsEnumerable); | ||
var regexpToString = methodize(RegExpCtr.prototype.toString); | ||
var regexpTest = methodize(RegExpCtr.prototype.test); | ||
var errorToString = methodize(Error.prototype.toString); | ||
var numberToString = methodize(0 .toString); | ||
var booleanToString = methodize(true.toString); | ||
var concat = methodize(EMPTY_ARRAY.concat, EMPTY_ARRAY); | ||
var join = methodize(EMPTY_ARRAY.join); | ||
var push = methodize(EMPTY_ARRAY.push); | ||
var getTime = methodize(Date.prototype.getTime); | ||
var replace = methodize(EMPTY_STRING.replace); | ||
var strSlice = methodize(EMPTY_STRING.slice); | ||
var propertyIsEnumerable = methodize(EMPTY_OBJECT.propertyIsEnumerable); | ||
/* eslint-disable-next-line compat/compat */ | ||
@@ -277,3 +277,3 @@ | ||
try { | ||
return value.next.call(mapValues(testMap)).value === 'MapSentinel'; | ||
return call(value.next, mapValues(testMap)).value === 'MapSentinel'; | ||
} catch (ignore) {// empty | ||
@@ -291,3 +291,3 @@ } | ||
try { | ||
return value.next.call(setValues(testSet)).value === 'SetSentinel'; | ||
return call(value.next, setValues(testSet)).value === 'SetSentinel'; | ||
} catch (ignore) {// empty | ||
@@ -711,3 +711,3 @@ } | ||
if (isCircular === false) { | ||
var ret = maybeCustomInspect.call(value, depth, ctx); // If the custom inspection method returned `this`, don't go into | ||
var ret = call(maybeCustomInspect, value, [depth, ctx]); // If the custom inspection method returned `this`, don't go into | ||
// infinite recursion. | ||
@@ -714,0 +714,0 @@ |
{ | ||
"name": "inspect-x", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "An implementation of node's ES6 inspect module.", | ||
@@ -53,36 +53,35 @@ "homepage": "https://github.com/Xotic750/inspect-x", | ||
"dependencies": { | ||
"array-difference-x": "^3.1.0", | ||
"array-every-x": "^3.1.0", | ||
"array-filter-x": "^3.1.0", | ||
"array-includes-x": "^3.1.0", | ||
"array-intersection-x": "^3.1.0", | ||
"array-map-x": "^3.1.0", | ||
"array-reduce-x": "^3.1.0", | ||
"array-slice-x": "^4.2.0", | ||
"array-some-x": "^3.1.0", | ||
"array-union-x": "^3.1.0", | ||
"bind-x": "^4.1.0", | ||
"collections-x": "^3.1.0", | ||
"get-function-name-x": "^3.1.0", | ||
"get-own-property-symbols-x": "^2.1.0", | ||
"get-prototype-of-x": "^2.1.0", | ||
"has-symbol-support-x": "^2.1.0", | ||
"is-array-buffer-x": "^2.1.0", | ||
"is-array-x": "^2.1.0", | ||
"is-async-function-x": "^2.1.0", | ||
"array-difference-x": "^3.1.1", | ||
"array-every-x": "^3.1.1", | ||
"array-filter-x": "^3.1.1", | ||
"array-includes-x": "^3.1.1", | ||
"array-intersection-x": "^3.1.1", | ||
"array-map-x": "^3.1.1", | ||
"array-reduce-x": "^3.1.1", | ||
"array-slice-x": "^4.2.1", | ||
"array-some-x": "^3.1.1", | ||
"array-union-x": "^3.1.1", | ||
"collections-x": "^3.1.1", | ||
"get-function-name-x": "^3.1.1", | ||
"get-own-property-symbols-x": "^2.1.1", | ||
"get-prototype-of-x": "^2.1.1", | ||
"has-symbol-support-x": "^2.1.1", | ||
"is-array-buffer-x": "^2.1.1", | ||
"is-array-x": "^2.1.1", | ||
"is-async-function-x": "^2.1.1", | ||
"is-boolean-object": "^1.0.0", | ||
"is-data-view-x": "^2.1.0", | ||
"is-data-view-x": "^2.1.1", | ||
"is-date-object": "^1.0.1", | ||
"is-error-x": "^2.1.0", | ||
"is-function-x": "^4.1.0", | ||
"is-error-x": "^2.1.1", | ||
"is-function-x": "^4.1.1", | ||
"is-generator-function": "^1.0.7", | ||
"is-map-x": "^2.1.0", | ||
"is-map-x": "^2.1.1", | ||
"is-nan": "^1.2.1", | ||
"is-nil-x": "^2.1.0", | ||
"is-number-object": "^1.0.3", | ||
"is-object-like-x": "^2.1.0", | ||
"is-primitive": "^3.0.1", | ||
"is-object-like-x": "^2.1.1", | ||
"is-primitive-x": "^1.0.0", | ||
"is-promise": "^2.1.0", | ||
"is-regex": "^1.0.4", | ||
"is-set-x": "^2.1.0", | ||
"is-set-x": "^2.1.1", | ||
"is-string": "^1.0.4", | ||
@@ -92,16 +91,18 @@ "is-symbol": "^1.0.2", | ||
"json3": "^3.3.3", | ||
"math-clamp-x": "^3.2.0", | ||
"object-assign-x": "^2.1.0", | ||
"object-define-properties-x": "^5.1.0", | ||
"object-define-property-x": "^5.1.0", | ||
"object-get-own-property-descriptor-x": "^4.1.0", | ||
"math-clamp-x": "^3.2.1", | ||
"object-assign-x": "^2.1.1", | ||
"object-define-properties-x": "^5.1.1", | ||
"object-define-property-x": "^5.1.1", | ||
"object-get-own-property-descriptor-x": "^4.1.1", | ||
"object-is": "^1.0.1", | ||
"object-keys-x": "^3.1.0", | ||
"reflect-own-keys-x": "^3.1.0", | ||
"object-keys-x": "^3.1.1", | ||
"reflect-own-keys-x": "^3.1.1", | ||
"require-object-coercible-x": "^2.1.0", | ||
"string-includes-x": "^2.1.0", | ||
"string-starts-with-x": "^2.1.0", | ||
"simple-call-x": "^1.0.2", | ||
"simple-methodize-x": "^1.0.3", | ||
"string-includes-x": "^2.1.1", | ||
"string-starts-with-x": "^2.1.1", | ||
"to-boolean-x": "^2.1.0", | ||
"to-integer-x": "^4.2.0", | ||
"to-iso-string-x": "^2.1.0", | ||
"to-integer-x": "^4.2.1", | ||
"to-iso-string-x": "^2.1.1", | ||
"to-object-x": "^2.2.0", | ||
@@ -119,6 +120,6 @@ "to-string-x": "^2.1.0", | ||
"@babel/runtime": "^7.5.5", | ||
"@types/jest": "^24.0.17", | ||
"@types/node": "^12.7.1", | ||
"@types/webpack": "^4.32.1", | ||
"@xotic750/eslint-config-recommended": "^1.1.2", | ||
"@types/jest": "^24.0.18", | ||
"@types/node": "^12.7.2", | ||
"@types/webpack": "^4.39.0", | ||
"@xotic750/eslint-config-recommended": "^1.1.5", | ||
"babel-core": "^7.0.0-0", | ||
@@ -131,3 +132,3 @@ "babel-eslint": "^10.0.2", | ||
"cross-env": "^5.2.0", | ||
"eslint": "^6.1.0", | ||
"eslint": "^6.2.1", | ||
"eslint-friendly-formatter": "^4.0.1", | ||
@@ -143,3 +144,3 @@ "eslint-import-resolver-webpack": "^0.11.1", | ||
"eslint-plugin-jest": "^22.15.1", | ||
"eslint-plugin-jsdoc": "^15.8.0", | ||
"eslint-plugin-jsdoc": "^15.8.3", | ||
"eslint-plugin-json": "^1.4.0", | ||
@@ -153,4 +154,4 @@ "eslint-plugin-lodash": "^6.0.0", | ||
"eslint-plugin-switch-case": "^1.1.2", | ||
"jest": "^24.8.0", | ||
"jest-cli": "^24.8.0", | ||
"jest": "^24.9.0", | ||
"jest-cli": "^24.9.0", | ||
"jest-file": "^1.0.0", | ||
@@ -162,3 +163,3 @@ "lodash": "^4.17.15", | ||
"prettier": "^1.18.2", | ||
"rimraf": "^2.6.3", | ||
"rimraf": "^3.0.0", | ||
"source-map-loader": "^0.2.4", | ||
@@ -168,5 +169,5 @@ "strip-ansi": "^5.2.0", | ||
"typescript": "^3.5.3", | ||
"webpack": "^4.39.1", | ||
"webpack": "^4.39.2", | ||
"webpack-bundle-analyzer": "^3.4.1", | ||
"webpack-cli": "^3.3.6", | ||
"webpack-cli": "^3.3.7", | ||
"webpack-global-object-x": "^1.0.0", | ||
@@ -173,0 +174,0 @@ "webpack-merge": "^4.2.1" |
@@ -1,2 +0,1 @@ | ||
import bind from 'bind-x'; | ||
import isFunction from 'is-function-x'; | ||
@@ -22,3 +21,3 @@ import isGeneratorFunction from 'is-generator-function'; | ||
import isSymbol from 'is-symbol'; | ||
import isPrimitive from 'is-primitive'; | ||
import isPrimitive from 'is-primitive-x'; | ||
import isArray from 'is-array-x'; | ||
@@ -55,2 +54,4 @@ import isNumberNaN from 'is-nan'; | ||
import toObject from 'to-object-x'; | ||
import call from 'simple-call-x'; | ||
import methodize from 'simple-methodize-x'; | ||
@@ -61,3 +62,2 @@ const EMPTY_ARRAY = []; | ||
const EMPTY_OBJECT = {}; | ||
const {call} = isFunction; | ||
@@ -68,4 +68,4 @@ /* eslint-disable-next-line compat/compat */ | ||
const testSet = hasSet && new Set(['SetSentinel']); | ||
const setForEach = hasSet && bind(call, testSet.forEach); | ||
const setValues = hasSet && bind(call, testSet.values); | ||
const setForEach = hasSet && methodize(testSet.forEach); | ||
const setValues = hasSet && methodize(testSet.values); | ||
/* eslint-disable-next-line compat/compat */ | ||
@@ -75,8 +75,8 @@ const hasMap = typeof Map === 'function' && isMap(new Map()); | ||
const testMap = hasMap && new Map([[1, 'MapSentinel']]); | ||
const mapForEach = hasMap && bind(call, testMap.forEach); | ||
const mapValues = hasMap && bind(call, testMap.values); | ||
const mapForEach = hasMap && methodize(testMap.forEach); | ||
const mapValues = hasMap && methodize(testMap.values); | ||
/* eslint-disable-next-line compat/compat */ | ||
const symbolToString = hasSymbolSupport && bind(call, Symbol.prototype.toString); | ||
const symbolToString = hasSymbolSupport && methodize(Symbol.prototype.toString); | ||
/* eslint-disable-next-line compat/compat */ | ||
const symbolValueOf = hasSymbolSupport && bind(call, Symbol.prototype.valueOf); | ||
const symbolValueOf = hasSymbolSupport && methodize(Symbol.prototype.valueOf); | ||
const oSeal = EMPTY_OBJECT.constructor.seal; | ||
@@ -89,14 +89,14 @@ const objectSeal = isFunction(oSeal) | ||
const regexpToString = bind(call, RegExpCtr.prototype.toString); | ||
const regexpTest = bind(call, RegExpCtr.prototype.test); | ||
const errorToString = bind(call, Error.prototype.toString); | ||
const numberToString = bind(call, (0).toString); | ||
const booleanToString = bind(call, true.toString); | ||
const concat = bind(call, EMPTY_ARRAY.concat, EMPTY_ARRAY); | ||
const join = bind(call, EMPTY_ARRAY.join); | ||
const push = bind(call, EMPTY_ARRAY.push); | ||
const getTime = bind(call, Date.prototype.getTime); | ||
const replace = bind(call, EMPTY_STRING.replace); | ||
const strSlice = bind(call, EMPTY_STRING.slice); | ||
const propertyIsEnumerable = bind(call, EMPTY_OBJECT.propertyIsEnumerable); | ||
const regexpToString = methodize(RegExpCtr.prototype.toString); | ||
const regexpTest = methodize(RegExpCtr.prototype.test); | ||
const errorToString = methodize(Error.prototype.toString); | ||
const numberToString = methodize((0).toString); | ||
const booleanToString = methodize(true.toString); | ||
const concat = methodize(EMPTY_ARRAY.concat, EMPTY_ARRAY); | ||
const join = methodize(EMPTY_ARRAY.join); | ||
const push = methodize(EMPTY_ARRAY.push); | ||
const getTime = methodize(Date.prototype.getTime); | ||
const replace = methodize(EMPTY_STRING.replace); | ||
const strSlice = methodize(EMPTY_STRING.slice); | ||
const propertyIsEnumerable = methodize(EMPTY_OBJECT.propertyIsEnumerable); | ||
/* eslint-disable-next-line compat/compat */ | ||
@@ -271,3 +271,3 @@ const customInspectSymbol = hasSymbolSupport ? Symbol('inspect.custom') : '_inspect.custom_'; | ||
try { | ||
return value.next.call(mapValues(testMap)).value === 'MapSentinel'; | ||
return call(value.next, mapValues(testMap)).value === 'MapSentinel'; | ||
} catch (ignore) { | ||
@@ -286,3 +286,3 @@ // empty | ||
try { | ||
return value.next.call(setValues(testSet)).value === 'SetSentinel'; | ||
return call(value.next, setValues(testSet)).value === 'SetSentinel'; | ||
} catch (ignore) { | ||
@@ -675,3 +675,3 @@ // empty | ||
if (isCircular === false) { | ||
const ret = maybeCustomInspect.call(value, depth, ctx); | ||
const ret = call(maybeCustomInspect, value, [depth, ctx]); | ||
@@ -678,0 +678,0 @@ // If the custom inspection method returned `this`, don't go into |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1599623
10683
56
+ Addedis-primitive-x@^1.0.0
+ Addedsimple-call-x@^1.0.2
+ Addedsimple-methodize-x@^1.0.3
- Removedbind-x@^4.1.0
- Removedis-primitive@^3.0.1
- Removedbind-x@4.1.2(transitive)
- Removedis-primitive@3.0.1(transitive)
Updatedarray-difference-x@^3.1.1
Updatedarray-every-x@^3.1.1
Updatedarray-filter-x@^3.1.1
Updatedarray-includes-x@^3.1.1
Updatedarray-intersection-x@^3.1.1
Updatedarray-map-x@^3.1.1
Updatedarray-reduce-x@^3.1.1
Updatedarray-slice-x@^4.2.1
Updatedarray-some-x@^3.1.1
Updatedarray-union-x@^3.1.1
Updatedcollections-x@^3.1.1
Updatedget-function-name-x@^3.1.1
Updatedget-prototype-of-x@^2.1.1
Updatedhas-symbol-support-x@^2.1.1
Updatedis-array-buffer-x@^2.1.1
Updatedis-array-x@^2.1.1
Updatedis-async-function-x@^2.1.1
Updatedis-data-view-x@^2.1.1
Updatedis-error-x@^2.1.1
Updatedis-function-x@^4.1.1
Updatedis-map-x@^2.1.1
Updatedis-object-like-x@^2.1.1
Updatedis-set-x@^2.1.1
Updatedmath-clamp-x@^3.2.1
Updatedobject-assign-x@^2.1.1
Updatedobject-keys-x@^3.1.1
Updatedreflect-own-keys-x@^3.1.1
Updatedstring-includes-x@^2.1.1
Updatedstring-starts-with-x@^2.1.1
Updatedto-integer-x@^4.2.1
Updatedto-iso-string-x@^2.1.1