white-space-x
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -42,3 +42,3 @@ /** | ||
* | ||
* @version 1.0.6 | ||
* @version 1.0.7 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -63,3 +63,3 @@ * @copyright Xotic750 | ||
var defProp = require('define-properties-x').defineProperty; | ||
var define = require('define-properties-x'); | ||
var escapeRx = require('regexp-escape-x'); | ||
@@ -175,3 +175,3 @@ var whiteSpaces = [ | ||
*/ | ||
defProp(module.exports, 'whiteSpaces', whiteSpaces); | ||
define.property(module.exports, 'whiteSpaces', whiteSpaces); | ||
@@ -188,3 +188,3 @@ /** | ||
*/ | ||
defProp(module.exports, 'escape', escapeRx); | ||
define.property(module.exports, 'escape', escapeRx); | ||
}()); |
@@ -43,3 +43,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
* | ||
* @version 1.0.6 | ||
* @version 1.0.7 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -64,3 +64,3 @@ * @copyright Xotic750 | ||
var defProp = _dereq_('define-properties-x').defineProperty; | ||
var define = _dereq_('define-properties-x'); | ||
var escapeRx = _dereq_('regexp-escape-x'); | ||
@@ -176,3 +176,3 @@ var whiteSpaces = [ | ||
*/ | ||
defProp(module.exports, 'whiteSpaces', whiteSpaces); | ||
define.property(module.exports, 'whiteSpaces', whiteSpaces); | ||
@@ -189,3 +189,3 @@ /** | ||
*/ | ||
defProp(module.exports, 'escape', escapeRx); | ||
define.property(module.exports, 'escape', escapeRx); | ||
}()); | ||
@@ -238,3 +238,3 @@ | ||
* | ||
* @version 1.0.2 | ||
* @version 1.1.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -287,16 +287,16 @@ * @copyright Xotic750 | ||
/** | ||
* Method `defineProperty`. | ||
* Method `property`. | ||
* | ||
* @private | ||
* @param {Object} object The object on which to define the property. | ||
* @param {string|Symbol} property The property name. | ||
* @param {string|Symbol} prop The property name. | ||
* @param {*} value The value of the property. | ||
* @param {boolean} [force=false] If `true` then set property regardless. | ||
*/ | ||
function defineProperty(object, property, value, force) { | ||
if (property in object && !force) { | ||
function property(object, prop, value, force) { | ||
if (prop in object && !force) { | ||
return; | ||
} | ||
if (supportsDescriptors) { | ||
$defineProperty(object, property, { | ||
$defineProperty(object, prop, { | ||
configurable: true, | ||
@@ -308,3 +308,3 @@ enumerable: false, | ||
} else { | ||
object[property] = value; | ||
object[prop] = value; | ||
} | ||
@@ -314,3 +314,3 @@ } | ||
/** | ||
* Method `defineProperties`. | ||
* Method `properties`. | ||
* | ||
@@ -322,3 +322,3 @@ * @private | ||
*/ | ||
function defineProperties(object, map, predicates) { | ||
function properties(object, map, predicates) { | ||
var preds = isUndefined(predicates) ? {} : predicates; | ||
@@ -331,3 +331,3 @@ var props = $keys(map); | ||
var predicate = preds[name]; | ||
defineProperty( | ||
property( | ||
object, | ||
@@ -341,21 +341,21 @@ name, | ||
defineProperties(module.exports, { | ||
properties(module.exports, { | ||
/** | ||
* Just like `defineProperties` but for defining a single non-enumerable | ||
* Just like `properties` but for defining a single non-enumerable | ||
* property. Useful in environments that do not | ||
* support `Computed property names`. This can be done | ||
* with `defineProperties`, but this method can read a little cleaner. | ||
* with `properties`, but this method can read a little cleaner. | ||
* | ||
* @function | ||
* @param {Object} object The object on which to define the property. | ||
* @param {string|Symbol} property The property name. | ||
* @param {string|Symbol} prop The property name. | ||
* @param {*} value The value of the property. | ||
* @param {boolean} [force=false] If `true` then set property regardless. | ||
* @example | ||
* var lib = require('define-properties-x'); | ||
* var define = require('define-properties-x'); | ||
* var myString = 'something'; | ||
* lib.defineProperty(obj, Symbol.iterator, function () {}, true); | ||
* lib.defineProperty(obj, myString, function () {}, true); | ||
* define.property(obj, Symbol.iterator, function () {}, true); | ||
* define.property(obj, myString, function () {}, true); | ||
*/ | ||
defineProperty: defineProperty, | ||
property: property, | ||
/** | ||
@@ -373,4 +373,4 @@ * Define multiple non-enumerable properties at once. | ||
* @example | ||
* var lib = require('define-properties-x'); | ||
* lib.defineProperties({ | ||
* var define = require('define-properties-x'); | ||
* define.properties({ | ||
* a: 1, | ||
@@ -383,3 +383,3 @@ * b: 2 | ||
*/ | ||
defineProperties: defineProperties, | ||
properties: properties, | ||
/** | ||
@@ -391,4 +391,4 @@ * Boolean indicator as to whether the environments supports descriptors | ||
* @example | ||
* var lib = require('define-properties-x'); | ||
* lib.supportsDescriptors; // true or false | ||
* var define = require('define-properties-x'); | ||
* define.supportsDescriptors; // true or false | ||
*/ | ||
@@ -444,3 +444,3 @@ supportsDescriptors: supportsDescriptors | ||
* | ||
* @version 1.0.7 | ||
* @version 1.0.8 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -518,3 +518,3 @@ * @copyright Xotic750 | ||
* | ||
* @version 1.0.6 | ||
* @version 1.0.7 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -593,3 +593,3 @@ * @copyright Xotic750 | ||
* | ||
* @version 1.0.2 | ||
* @version 1.0.3 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -759,3 +759,3 @@ * @copyright Xotic750 | ||
* | ||
* @version 1.0.1 | ||
* @version 1.0.2 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -855,3 +855,3 @@ * @copyright Xotic750 | ||
* | ||
* @version 1.0.7 | ||
* @version 1.0.8 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -946,3 +946,3 @@ * @copyright Xotic750 | ||
* | ||
* @version 1.0.1 | ||
* @version 1.0.2 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -949,0 +949,0 @@ * @copyright Xotic750 |
@@ -1,2 +0,2 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.returnExports=e()}}(function(){return function e(t,n,r){function s(i,u){if(!n[i]){if(!t[i]){var f="function"==typeof require&&require;if(!u&&f)return f(i,!0);if(o)return o(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[i]={exports:{}};t[i][0].call(p.exports,function(e){var n=t[i][1][e];return s(n?n:e)},p,p.exports,e,t,n,r)}return n[i].exports}for(var o="function"==typeof require&&require,i=0;i<r.length;i++)s(r[i]);return s}({1:[function(e,t,n){!function(){"use strict";var n=e("define-properties-x").defineProperty,r=e("regexp-escape-x"),o=[9,10,11,12,13,32,160,5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279],i={s:o.reduce(function(e,t){return e+String.fromCharCode(t)},""),w:function(){var e=65536,t="";do e-=1,o.indexOf(e)<0&&(t=String.fromCharCode(e)+t);while(e);return t}()};i.se=(i.s+i.w).replace(/\s/g,"")!==i.w?r(i.s):"\\s",i.we=(i.s+i.w).replace(/\w/g,"")!==i.s?r(i.w):"\\w",t.exports=function generateString(e,t){return e===!0?t===!0?i.we:i.w:t===!0?i.se:i.s},n(t.exports,"whiteSpaces",o),n(t.exports,"escape",r)}()},{"define-properties-x":2,"regexp-escape-x":8}],2:[function(e,t,n){!function(){"use strict";function defineProperty(e,t,n,r){t in e&&!r||(p?c(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)}function defineProperties(e,t,c){var p=o(c)?{}:c,a=s(t);n&&f&&(a=i.call(a,f(t))),u.call(a,function(n){var o=p[n];defineProperty(e,n,t[n],r(o)&&o())})}var n=e("has-symbol-support-x"),r=e("is-function-x"),o=e("validate.io-undefined"),i=Array.prototype.concat,u=Array.prototype.forEach,s=Object.keys,f=r(Object.getOwnPropertySymbols)&&Object.getOwnPropertySymbols,c=r(Object.defineProperty)&&Object.defineProperty,p=Boolean(c)&&function(e){var t={};try{c(t,"x",{enumerable:!1,value:t});for(e in t)return!1;return t.x===t}catch(n){return!1}}();defineProperties(t.exports,{defineProperty:defineProperty,defineProperties:defineProperties,supportsDescriptors:p})}()},{"has-symbol-support-x":3,"is-function-x":5,"validate.io-undefined":11}],3:[function(e,t,n){!function(){"use strict";t.exports="function"==typeof Symbol&&"symbol"==typeof Symbol()}()},{}],4:[function(e,t,n){!function(){"use strict";t.exports=e("has-symbol-support-x")&&"symbol"==typeof Symbol.toStringTag}()},{"has-symbol-support-x":3}],5:[function(e,t,n){!function(){"use strict";function tryFunctionObject(e){try{return n.call(e),!0}catch(t){}return!1}var n=Function.prototype.toString,r=e("to-string-tag-x"),o=e("has-to-string-tag-x"),i=e("is-primitive"),u="[object Function]",s="[object GeneratorFunction]";t.exports=function isFunction(e){if(i(e))return!1;if(o)return tryFunctionObject(e);var t=r(e);return t===u||t===s}}()},{"has-to-string-tag-x":4,"is-primitive":6,"to-string-tag-x":9}],6:[function(e,t,n){"use strict";t.exports=function isPrimitive(e){return null==e||"function"!=typeof e&&"object"!=typeof e}},{}],7:[function(e,t,n){function isNull(e){return null===e}t.exports=isNull},{}],8:[function(e,t,n){!function(){"use strict";var n=e("to-string-x"),r=String.prototype.replace,o=/[\^\$\\\.\*\+\?\(\)\[\]\{\}\|]/g;t.exports=function regexpEscape(e){return r.call(n(e),o,"\\$&")}}()},{"to-string-x":10}],9:[function(e,t,n){!function(){"use strict";var n=Object.prototype.toString,r=e("lodash.isnull"),o=e("validate.io-undefined"),i="[object Null]",u="[object Undefined]";t.exports=function toStringTag(e){return r(e)?i:o(e)?u:n.call(e)}}()},{"lodash.isnull":7,"validate.io-undefined":11}],10:[function(e,t,n){!function(){"use strict";var e=String;t.exports=function ToString(t){if("symbol"==typeof t)throw new TypeError("Cannot convert a Symbol value to a string");return e(t)}}()},{}],11:[function(e,t,n){"use strict";function isUndefined(e){return void 0===e}t.exports=isUndefined},{}]},{},[1])(1)}); | ||
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.returnExports=t()}}(function(){return function e(t,r,n){function s(i,u){if(!r[i]){if(!t[i]){var c="function"==typeof require&&require;if(!u&&c)return c(i,!0);if(o)return o(i,!0);var f=new Error("Cannot find module '"+i+"'");throw f.code="MODULE_NOT_FOUND",f}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){var r=t[i][1][e];return s(r?r:e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var o="function"==typeof require&&require,i=0;i<n.length;i++)s(n[i]);return s}({1:[function(t,e,r){!function(){"use strict";var r=t("define-properties-x"),n=t("regexp-escape-x"),o=[9,10,11,12,13,32,160,5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279],i={s:o.reduce(function(t,e){return t+String.fromCharCode(e)},""),w:function(){var t=65536,e="";do t-=1,o.indexOf(t)<0&&(e=String.fromCharCode(t)+e);while(t);return e}()};i.se=(i.s+i.w).replace(/\s/g,"")!==i.w?n(i.s):"\\s",i.we=(i.s+i.w).replace(/\w/g,"")!==i.s?n(i.w):"\\w",e.exports=function generateString(t,e){return t===!0?e===!0?i.we:i.w:e===!0?i.se:i.s},r.property(e.exports,"whiteSpaces",o),r.property(e.exports,"escape",n)}()},{"define-properties-x":2,"regexp-escape-x":8}],2:[function(t,e,r){!function(){"use strict";function property(t,e,r,n){e in t&&!n||(p?f(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)}function properties(t,e,f){var p=o(f)?{}:f,a=s(e);r&&c&&(a=i.call(a,c(e))),u.call(a,function(r){var o=p[r];property(t,r,e[r],n(o)&&o())})}var r=t("has-symbol-support-x"),n=t("is-function-x"),o=t("validate.io-undefined"),i=Array.prototype.concat,u=Array.prototype.forEach,s=Object.keys,c=n(Object.getOwnPropertySymbols)&&Object.getOwnPropertySymbols,f=n(Object.defineProperty)&&Object.defineProperty,p=Boolean(f)&&function(t){var e={};try{f(e,"x",{enumerable:!1,value:e});for(t in e)return!1;return e.x===e}catch(r){return!1}}();properties(e.exports,{property:property,properties:properties,supportsDescriptors:p})}()},{"has-symbol-support-x":3,"is-function-x":5,"validate.io-undefined":11}],3:[function(t,e,r){!function(){"use strict";e.exports="function"==typeof Symbol&&"symbol"==typeof Symbol()}()},{}],4:[function(t,e,r){!function(){"use strict";e.exports=t("has-symbol-support-x")&&"symbol"==typeof Symbol.toStringTag}()},{"has-symbol-support-x":3}],5:[function(t,e,r){!function(){"use strict";function tryFunctionObject(t){try{return r.call(t),!0}catch(e){}return!1}var r=Function.prototype.toString,n=t("to-string-tag-x"),o=t("has-to-string-tag-x"),i=t("is-primitive"),u="[object Function]",s="[object GeneratorFunction]";e.exports=function isFunction(t){if(i(t))return!1;if(o)return tryFunctionObject(t);var e=n(t);return e===u||e===s}}()},{"has-to-string-tag-x":4,"is-primitive":6,"to-string-tag-x":9}],6:[function(t,e,r){"use strict";e.exports=function isPrimitive(t){return null==t||"function"!=typeof t&&"object"!=typeof t}},{}],7:[function(t,e,r){function isNull(t){return null===t}e.exports=isNull},{}],8:[function(t,e,r){!function(){"use strict";var r=t("to-string-x"),n=String.prototype.replace,o=/[\^\$\\\.\*\+\?\(\)\[\]\{\}\|]/g;e.exports=function regexpEscape(t){return n.call(r(t),o,"\\$&")}}()},{"to-string-x":10}],9:[function(t,e,r){!function(){"use strict";var r=Object.prototype.toString,n=t("lodash.isnull"),o=t("validate.io-undefined"),i="[object Null]",u="[object Undefined]";e.exports=function toStringTag(t){return n(t)?i:o(t)?u:r.call(t)}}()},{"lodash.isnull":7,"validate.io-undefined":11}],10:[function(t,e,r){!function(){"use strict";var t=String;e.exports=function ToString(e){if("symbol"==typeof e)throw new TypeError("Cannot convert a Symbol value to a string");return t(e)}}()},{}],11:[function(t,e,r){"use strict";function isUndefined(t){return void 0===t}e.exports=isUndefined},{}]},{},[1])(1)}); | ||
//# sourceMappingURL=lib/white-space-x.map |
{ | ||
"name": "white-space-x", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "whitespace module.", | ||
@@ -33,4 +33,4 @@ "homepage": "https://github.com/Xotic750/white-space-x", | ||
"dependencies": { | ||
"define-properties-x": "^1.0.2", | ||
"regexp-escape-x": "^1.0.1" | ||
"define-properties-x": "^1.1.1", | ||
"regexp-escape-x": "^1.0.2" | ||
}, | ||
@@ -41,3 +41,3 @@ "devDependencies": { | ||
"json3": "^3.3.2", | ||
"jscs": "^2.8.0", | ||
"jscs": "^2.9.0", | ||
"uglify-js": "^2.6.1", | ||
@@ -44,0 +44,0 @@ "browserify": "^13.0.0", |
@@ -42,3 +42,3 @@ <a name="module_white-space-x"></a> | ||
**Version**: 1.0.6 | ||
**Version**: 1.0.7 | ||
**Author:** Xotic750 <Xotic750@gmail.com> | ||
@@ -45,0 +45,0 @@ **License**: [MIT](<https://opensource.org/licenses/MIT>) |
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
69003
Updateddefine-properties-x@^1.1.1
Updatedregexp-escape-x@^1.0.2