Comparing version 1.0.2 to 1.0.4
@@ -1,11 +0,7 @@ | ||
/*eslint no-console: 0*/ | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _arginfo = require('arginfo'); | ||
@@ -15,2 +11,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
// these properties may resist being overriden | ||
@@ -20,2 +18,4 @@ var A_TROUBLE_PROPERTIES = ['prototype']; | ||
// symbol for accessing real class instance | ||
/*eslint no-console: 0, dot-notation:0, no-proto:0*/ | ||
var $_REAL = Symbol('real'); | ||
@@ -28,9 +28,7 @@ | ||
// | ||
var h_undefine = (_h_undefine = { | ||
['__proto__']: { | ||
configurable: true, | ||
enumerable: false, | ||
writable: true, | ||
value: undefined | ||
} | ||
var h_undefine = (_h_undefine = {}, _h_undefine['__proto__'] = { | ||
configurable: true, | ||
enumerable: false, | ||
writable: true, | ||
value: undefined | ||
}, _h_undefine); | ||
@@ -152,4 +150,4 @@ | ||
// was not exepecting this property to give us trouble | ||
if (!A_TROUBLE_PROPERTIES.includes(s_property)) { | ||
console.warn('was not expecting "' + s_property + '" to prohibit redefinition on ' + (0, _arginfo2['default'])(w_copy)); | ||
if (!(A_TROUBLE_PROPERTIES.indexOf(s_property) !== -1)) { | ||
console.warn('was not expecting "' + s_property + '" to prohibit redefinition on ' + (0, _arginfo2.default)(w_copy)); | ||
} | ||
@@ -169,4 +167,4 @@ } | ||
// was not exepecting this property to give us trouble | ||
if (!A_TROUBLE_PROPERTIES.includes(s_property)) { | ||
console.warn('was not expecting "' + s_property + '" to prohibit redefinition on ' + (0, _arginfo2['default'])(w_copy)); | ||
if (!(A_TROUBLE_PROPERTIES.indexOf(s_property) !== -1)) { | ||
console.warn('was not expecting "' + s_property + '" to prohibit redefinition on ' + (0, _arginfo2.default)(w_copy)); | ||
} | ||
@@ -176,3 +174,3 @@ } | ||
catch (d_value_err) { | ||
throw 'cannot override property "' + s_property + '" on ' + (0, _arginfo2['default'])(w_copy); | ||
throw 'cannot override property "' + s_property + '" on ' + (0, _arginfo2.default)(w_copy); | ||
} | ||
@@ -238,2 +236,5 @@ } | ||
// special __proto__ rename | ||
Object.defineProperty(w_copy, '__proto__', h_undefine['__proto__']); | ||
// | ||
@@ -258,4 +259,4 @@ return w_copy; | ||
// create virtual copy of thing using a transparent function | ||
w_copy = function () { | ||
// create virtual copy of 'thing' using a transparent function | ||
w_copy = function w_copy() { | ||
return z_thing.apply(this, arguments); | ||
@@ -284,3 +285,2 @@ }; | ||
// | ||
exports['default'] = local; | ||
module.exports = exports['default']; | ||
exports.default = local; |
{ | ||
"name": "rmprop", | ||
"version": "1.0.2", | ||
"version": "1.0.4", | ||
"description": "Override all properties inhereted by an object's prototype chain", | ||
@@ -22,18 +22,19 @@ "author": { | ||
"arginfo": "^1.1.2", | ||
"babel-core": "^5.5.0", | ||
"del": "^2.0.2", | ||
"babel-core": "^6.4.5", | ||
"babel-plugin-array-includes": "^2.0.2", | ||
"babel-preset-es2015": "^6.3.13", | ||
"del": "^2.2.0", | ||
"gulp": "^3.9.0", | ||
"gulp-babel": "^5.3.0", | ||
"gulp-coveralls": "^0.1.0", | ||
"gulp-eslint": "^1.0.0", | ||
"gulp-babel": "^6.1.1", | ||
"gulp-coveralls": "^0.1.4", | ||
"gulp-eslint": "^1.1.1", | ||
"gulp-exclude-gitignore": "^1.0.0", | ||
"gulp-istanbul": "^0.9.0", | ||
"gulp-mocha": "^2.1.3", | ||
"gulp-nsp": "^0.4.5", | ||
"gulp-istanbul": "^0.10.3", | ||
"gulp-mocha": "^2.2.0", | ||
"gulp-nsp": "^2.3.0", | ||
"gulp-plumber": "^1.0.1", | ||
"isparta": "^3.5.0", | ||
"should": "^7.1.1" | ||
"isparta": "^4.0.0", | ||
"should": "^8.1.1" | ||
}, | ||
"scripts": { | ||
"prepublish": "gulp prepublish", | ||
"test": "gulp" | ||
@@ -40,0 +41,0 @@ }, |
13902
16
210