Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,2 @@ | ||
export default function e(r,t){var n;t=t||{};for(var l=Object.prototype.toString.call(r).slice(8,-1),c=Math.abs(t.min||5),i=t.char&&t.char.length?t.char[0]:"*",a=t.includeType?" ["+l+"]":"",u="";u.length<7;)u+=i;for(var o="";o.length<c;)o+=i;if("Object"===l)return Object.keys(r).reduce(function(l,c){return Object.assign(l,((n={})[c]=e(r[c],t),n))},{});if("Array"===l)return r.map(function(r){return e(r,t)});if("String"===l)return r.length<c?o+a:r[0]+r.slice(1,-1).replace(/./g,i)+r.slice(-1)+a;if("Number"===l){var g=r<0,s=Math.abs(r).toString();return s.length<c?(g?"-"+o.slice(1):o)+a:(g?"-":"")+s[0]+s.slice(1,-1).replace(/[^\.]/g,i)+s.slice(-1)+a}return"Boolean"===l?(c<8?u:o)+a:"Null"===l?null:void 0}; | ||
export default function e(r,t){t=t||{};for(var n=Object.prototype.toString.call(r).slice(8,-1),l=Math.abs(t.min||5),c=t.char&&t.char.length?t.char[0]:"*",i=t.includeType?" ["+n+"]":"",a="";a.length<7;)a+=c;for(var u="";u.length<l;)u+=c;if("Object"===n)return Object.keys(r).reduce(function(n,l){var c;return Object.assign(n,((c={})[l]=e(r[l],t),c))},{});if("Array"===n)return r.map(function(r){return e(r,t)});if("String"===n)return r.length<l?u+i:r[0]+r.slice(1,-1).replace(/./g,c)+r.slice(-1)+i;if("Number"===n){var o=r<0,g=Math.abs(r).toString();return g.length<l?(o?"-"+u.slice(1):u)+i:(o?"-":"")+g[0]+g.slice(1,-1).replace(/[^\.]/g,c)+g.slice(-1)+i}return"Boolean"===n?(l<8?a:u)+i:"Null"===n?null:void 0} | ||
//# sourceMappingURL=rdct.es.js.map |
@@ -1,2 +0,2 @@ | ||
module.exports=function e(r,t){var n;t=t||{};for(var l=Object.prototype.toString.call(r).slice(8,-1),c=Math.abs(t.min||5),i=t.char&&t.char.length?t.char[0]:"*",a=t.includeType?" ["+l+"]":"",u="";u.length<7;)u+=i;for(var o="";o.length<c;)o+=i;if("Object"===l)return Object.keys(r).reduce(function(l,c){return Object.assign(l,((n={})[c]=e(r[c],t),n))},{});if("Array"===l)return r.map(function(r){return e(r,t)});if("String"===l)return r.length<c?o+a:r[0]+r.slice(1,-1).replace(/./g,i)+r.slice(-1)+a;if("Number"===l){var s=r<0,g=Math.abs(r).toString();return g.length<c?(s?"-"+o.slice(1):o)+a:(s?"-":"")+g[0]+g.slice(1,-1).replace(/[^\.]/g,i)+g.slice(-1)+a}return"Boolean"===l?(c<8?u:o)+a:"Null"===l?null:void 0}; | ||
module.exports=function e(r,t){t=t||{};for(var n=Object.prototype.toString.call(r).slice(8,-1),l=Math.abs(t.min||5),c=t.char&&t.char.length?t.char[0]:"*",i=t.includeType?" ["+n+"]":"",a="";a.length<7;)a+=c;for(var u="";u.length<l;)u+=c;if("Object"===n)return Object.keys(r).reduce(function(n,l){var c;return Object.assign(n,((c={})[l]=e(r[l],t),c))},{});if("Array"===n)return r.map(function(r){return e(r,t)});if("String"===n)return r.length<l?u+i:r[0]+r.slice(1,-1).replace(/./g,c)+r.slice(-1)+i;if("Number"===n){var o=r<0,s=Math.abs(r).toString();return s.length<l?(o?"-"+u.slice(1):u)+i:(o?"-":"")+s[0]+s.slice(1,-1).replace(/[^\.]/g,c)+s.slice(-1)+i}return"Boolean"===n?(l<8?a:u)+i:"Null"===n?null:void 0}; | ||
//# sourceMappingURL=rdct.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.rdct=t()}(this,function(){return function e(t,n){var r;n=n||{};for(var i=Object.prototype.toString.call(t).slice(8,-1),c=Math.abs(n.min||5),l=n.char&&n.char.length?n.char[0]:"*",o=n.includeType?" ["+i+"]":"",u="";u.length<7;)u+=l;for(var a="";a.length<c;)a+=l;if("Object"===i)return Object.keys(t).reduce(function(i,c){return Object.assign(i,((r={})[c]=e(t[c],n),r))},{});if("Array"===i)return t.map(function(t){return e(t,n)});if("String"===i)return t.length<c?a+o:t[0]+t.slice(1,-1).replace(/./g,l)+t.slice(-1)+o;if("Number"===i){var f=t<0,s=Math.abs(t).toString();return s.length<c?(f?"-"+a.slice(1):a)+o:(f?"-":"")+s[0]+s.slice(1,-1).replace(/[^\.]/g,l)+s.slice(-1)+o}return"Boolean"===i?(c<8?u:a)+o:"Null"===i?null:void 0}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.rdct=t()}(this,function(){return function e(t,n){n=n||{};for(var r=Object.prototype.toString.call(t).slice(8,-1),i=Math.abs(n.min||5),c=n.char&&n.char.length?n.char[0]:"*",l=n.includeType?" ["+r+"]":"",o="";o.length<7;)o+=c;for(var u="";u.length<i;)u+=c;if("Object"===r)return Object.keys(t).reduce(function(r,i){var c;return Object.assign(r,((c={})[i]=e(t[i],n),c))},{});if("Array"===r)return t.map(function(t){return e(t,n)});if("String"===r)return t.length<i?u+l:t[0]+t.slice(1,-1).replace(/./g,c)+t.slice(-1)+l;if("Number"===r){var a=t<0,f=Math.abs(t).toString();return f.length<i?(a?"-"+u.slice(1):u)+l:(a?"-":"")+f[0]+f.slice(1,-1).replace(/[^\.]/g,c)+f.slice(-1)+l}return"Boolean"===r?(i<8?o:u)+l:"Null"===r?null:void 0}}); | ||
//# sourceMappingURL=rdct.umd.js.map |
{ | ||
"name": "rdct", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Deeply redact all the things", | ||
@@ -9,2 +9,3 @@ "main": "dist/rdct.js", | ||
"scripts": { | ||
"preinstall": "npx npm-force-resolutions", | ||
"dev": "microbundle watch", | ||
@@ -19,5 +20,5 @@ "build": "microbundle", | ||
"files": ["index.js", "dist"], | ||
"author": "Brian Wendt <brianwendt@outlook.com> (https://bwendt.com)", | ||
"author": "Brian Wendt <brian@wendtcode.com> (https://bwendt.com)", | ||
"license": "MIT", | ||
"repository": "whiskeredwonder/rdct", | ||
"repository": "wendtcode/rdct", | ||
"devDependencies": { | ||
@@ -27,3 +28,3 @@ "chai": "4.1.2", | ||
"lint-staged": "6.1.0", | ||
"microbundle": "0.4.3", | ||
"microbundle": "0.11.0", | ||
"mocha": "5.0.0", | ||
@@ -53,3 +54,7 @@ "prettier": "1.10.2" | ||
"singleQuote": true | ||
}, | ||
"resolutions": { | ||
"rollup-plugin-typescript2": "0.24.3", | ||
"js-yaml": "3.13.1" | ||
} | ||
} |
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
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
16775
1
1