Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

replace-comments-x

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

replace-comments-x - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

6

dist/replace-comments-x.esm.js

@@ -16,6 +16,8 @@ import toStr from 'to-string-x';

export default function replaceComments(string, replacement) {
var replaceComments = function replaceComments(string, replacement) {
return replace.call(requireCoercibleToString(string), STRIP_COMMENTS, arguments.length > 1 ? toStr(replacement) : EMPTY_STRING);
}
};
export default replaceComments;
//# sourceMappingURL=replace-comments-x.esm.js.map

@@ -5,9 +5,9 @@ /*!

"copywrite": "Copyright (c) 2017",
"date": "2019-07-16T21:10:48.106Z",
"date": "2019-07-17T15:24:09.209Z",
"describe": "",
"description": "Replace the comments in a string.",
"file": "replace-comments-x.js",
"hash": "963f73872ab76d99f212",
"hash": "23020e5dfba4cf4d3444",
"license": "MIT",
"version": "3.0.8"
"version": "3.0.9"
}

@@ -288,3 +288,3 @@ */

function ToString(value) {
var to_string_x_esm_ToString = function ToString(value) {
if (is_symbol_default()(value)) {

@@ -295,5 +295,7 @@ throw new TypeError(ERROR_MESSAGE);

return castString(value);
}
};
/* harmony default export */ var to_string_x_esm = (to_string_x_esm_ToString);
// CONCATENATED MODULE: ./node_modules/is-nil-x/dist/is-nil-x.esm.js

@@ -306,8 +308,10 @@ /**

*/
function isNil(value) {
var isNil = function isNil(value) {
/* eslint-disable-next-line lodash/prefer-is-nil */
return value === null || typeof value === 'undefined';
}
};
/* harmony default export */ var is_nil_x_esm = (isNil);
// CONCATENATED MODULE: ./node_modules/require-object-coercible-x/dist/require-object-coercible-x.esm.js

@@ -324,4 +328,4 @@

function requireObjectCoercible(value) {
if (isNil(value)) {
var require_object_coercible_x_esm_requireObjectCoercible = function requireObjectCoercible(value) {
if (is_nil_x_esm(value)) {
throw new TypeError("Cannot call method on ".concat(value));

@@ -331,5 +335,7 @@ }

return value;
}
};
/* harmony default export */ var require_object_coercible_x_esm = (require_object_coercible_x_esm_requireObjectCoercible);
// CONCATENATED MODULE: ./node_modules/require-coercible-to-string-x/dist/require-coercible-to-string-x.esm.js

@@ -346,9 +352,10 @@

function requireCoercibleToString(value) {
return ToString(requireObjectCoercible(value));
}
var require_coercible_to_string_x_esm_requireCoercibleToString = function requireCoercibleToString(value) {
return to_string_x_esm(require_object_coercible_x_esm(value));
};
/* harmony default export */ var require_coercible_to_string_x_esm = (require_coercible_to_string_x_esm_requireCoercibleToString);
// CONCATENATED MODULE: ./dist/replace-comments-x.esm.js
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return replaceComments; });

@@ -369,8 +376,10 @@

function replaceComments(string, replacement) {
return replace.call(requireCoercibleToString(string), STRIP_COMMENTS, arguments.length > 1 ? ToString(replacement) : EMPTY_STRING);
}
var replace_comments_x_esm_replaceComments = function replaceComments(string, replacement) {
return replace.call(require_coercible_to_string_x_esm(string), STRIP_COMMENTS, arguments.length > 1 ? to_string_x_esm(replacement) : EMPTY_STRING);
};
/* harmony default export */ var replace_comments_x_esm = __webpack_exports__["default"] = (replace_comments_x_esm_replaceComments);
/***/ })

@@ -377,0 +386,0 @@ /******/ ]);

@@ -5,12 +5,12 @@ /*!

"copywrite": "Copyright (c) 2017",
"date": "2019-07-16T21:10:48.106Z",
"date": "2019-07-17T15:24:09.209Z",
"describe": "",
"description": "Replace the comments in a string.",
"file": "replace-comments-x.min.js",
"hash": "639c835771cc99085725",
"hash": "83a11c4127a7ec282fae",
"license": "MIT",
"version": "3.0.8"
"version": "3.0.9"
}
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.replaceCommentsX=e():t.replaceCommentsX=e()}(function(){"use strict";return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:Function("return this")()}(),function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=4)}([function(t,e,n){"use strict";var r=Object.prototype.toString;if(n(1)()){var o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==r.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&u.test(o.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,e,n){"use strict";(function(e){var r=e.Symbol,o=n(3);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(2))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,n){"use strict";n.r(e);var r=n(0),o=n.n(r),u="Cannot convert a Symbol value to a string",f=u.constructor;function i(t){if(o()(t))throw new TypeError(u);return f(t)}function c(t){return i(function(t){if(function(t){return null==t}(t))throw new TypeError("Cannot call method on ".concat(t));return t}(t))}n.d(e,"default",function(){return a});var l="",p=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,y=l.replace;function a(t,e){return y.call(c(t),p,arguments.length>1?i(e):l)}}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.replaceCommentsX=e():t.replaceCommentsX=e()}(function(){"use strict";return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:Function("return this")()}(),function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=4)}([function(t,e,n){"use strict";var r=Object.prototype.toString;if(n(1)()){var o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==r.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&u.test(o.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,e,n){"use strict";(function(e){var r=e.Symbol,o=n(3);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(2))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,n){"use strict";n.r(e);var r=n(0),o=n.n(r),u="Cannot convert a Symbol value to a string",f=u.constructor,i=function(t){if(o()(t))throw new TypeError(u);return f(t)},c=function(t){return null==t},l=function(t){if(c(t))throw new TypeError("Cannot call method on ".concat(t));return t},p=function(t){return i(l(t))},y=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,s="".replace;e.default=function(t,e){return s.call(p(t),y,arguments.length>1?i(e):"")}}])});
//# sourceMappingURL=replace-comments-x.min.js.map
{
"name": "replace-comments-x",
"version": "3.0.8",
"version": "3.0.9",
"description": "Replace the comments in a string.",

@@ -53,4 +53,4 @@ "homepage": "https://github.com/Xotic750/replace-comments-x",

"dependencies": {
"require-coercible-to-string-x": "^2.0.8",
"to-string-x": "^2.0.18"
"require-coercible-to-string-x": "^2.0.9",
"to-string-x": "^2.0.19"
},

@@ -71,3 +71,3 @@ "devDependencies": {

"@types/jest": "^24.0.15",
"@types/node": "^12.6.3",
"@types/node": "^12.6.6",
"babel-core": "^7.0.0-0",

@@ -88,3 +88,3 @@ "babel-eslint": "^10.0.2",

"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-compat": "^3.2.0",
"eslint-plugin-compat": "^3.3.0",
"eslint-plugin-css-modules": "^2.11.0",

@@ -94,4 +94,4 @@ "eslint-plugin-eslint-comments": "^3.1.2",

"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jest": "^22.7.2",
"eslint-plugin-jsdoc": "^15.3.5",
"eslint-plugin-jest": "^22.9.0",
"eslint-plugin-jsdoc": "^15.5.2",
"eslint-plugin-json": "^1.4.0",

@@ -123,3 +123,3 @@ "eslint-plugin-lodash": "^5.1.0",

"typescript": "^3.5.3",
"webpack": "^4.35.3",
"webpack": "^4.36.0",
"webpack-bundle-analyzer": "^3.3.2",

@@ -126,0 +126,0 @@ "webpack-cli": "^3.3.6",

@@ -17,4 +17,6 @@ import toStr from 'to-string-x';

*/
export default function replaceComments(string, replacement) {
const replaceComments = function replaceComments(string, replacement) {
return replace.call(requireCoercibleToString(string), STRIP_COMMENTS, arguments.length > 1 ? toStr(replacement) : EMPTY_STRING);
}
};
export default replaceComments;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc