@commercelayer/cli-core
Advanced tools
Comparing version 4.0.8 to 4.0.9
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const _Inflector={uncountableWords:["equipment","information","rice","money","species","series","fish","sheep","moose","deer","news"],pluralRules:[[/(m)an$/gi,"$1en"],[/(pe)rson$/gi,"$1ople"],[/(child)$/gi,"$1ren"],[/^(ox)$/gi,"$1en"],[/(ax|test)is$/gi,"$1es"],[/(octop|vir)us$/gi,"$1i"],[/(alias|status)$/gi,"$1es"],[/(bu)s$/gi,"$1ses"],[/(buffal|tomat|potat)o$/gi,"$1oes"],[/([ti])um$/gi,"$1a"],[/sis$/gi,"ses"],[/(?:([^f])fe|([lr])f)$/gi,"$1$2ves"],[/(hive)$/gi,"$1s"],[/([^aeiouy]|qu)y$/gi,"$1ies"],[/(x|ch|ss|sh)$/gi,"$1es"],[/(matr|vert|ind)ix|ex$/gi,"$1ices"],[/([m|l])ouse$/gi,"$1ice"],[/(quiz)$/gi,"$1zes"],[/s$/gi,"s"],[/$/gi,"s"]],singularRules:[[/(m)en$/gi,"$1an"],[/(pe)ople$/gi,"$1rson"],[/(child)ren$/gi,"$1"],[/([ti])a$/gi,"$1um"],[/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/gi,"$1$2sis"],[/(hive)s$/gi,"$1"],[/(tive)s$/gi,"$1"],[/(curve)s$/gi,"$1"],[/([lr])ves$/gi,"$1f"],[/([^fo])ves$/gi,"$1fe"],[/([^aeiouy]|qu)ies$/gi,"$1y"],[/(s)eries$/gi,"$1eries"],[/(m)ovies$/gi,"$1ovie"],[/(x|ch|ss|sh)es$/gi,"$1"],[/([m|l])ice$/gi,"$1ouse"],[/(bus)es$/gi,"$1"],[/(o)es$/gi,"$1"],[/(shoe)s$/gi,"$1"],[/(cris|ax|test)es$/gi,"$1is"],[/(octop|vir)i$/gi,"$1us"],[/(alias|status)es$/gi,"$1"],[/^(ox)en/gi,"$1"],[/(vert|ind)ices$/gi,"$1ex"],[/(matr)ices$/gi,"$1ix"],[/(quiz)zes$/gi,"$1"],[/s$/gi,""]],nonTitlecasedWords:["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],idSuffix:/(_ids|_id)$/g,underbar:/_/g,spaceOrUnderbar:/[ _]/g,uppercase:/([A-Z])/g,underbarPrefix:/^_/,applyRules:function(e,i,s,o){if(o)e=o;else if(!s.includes(e.toLowerCase())){for(let t=0;t<i.length;t++)if(e.match(i[t][0])){e=e.replace(i[t][0],i[t][1]);break}}return e},pluralize:function(e,i){return this.applyRules(e,this.pluralRules,this.uncountableWords,i)},singularize:function(e,i){return this.applyRules(e,this.singularRules,this.uncountableWords,i)},camelize:function(e,i){const s=e.split("/");for(let o=0;o<s.length;o++){const n=s[o].split("_"),t=i&&o+1===s.length?1:0;for(let r=t;r<n.length;r++)n[r]=n[r].charAt(0).toUpperCase()+n[r].substring(1);s[o]=n.join("")}if(e=s.join("::"),i){const o=e.charAt(0).toLowerCase(),n=e.slice(1);e=o+n}return e},underscore:function(e){const i=e.split("::");for(let s=0;s<i.length;s++)i[s]=i[s].replace(this.uppercase,"_$1"),i[s]=i[s].replace(this.underbarPrefix,"");return e=i.join("/").toLowerCase(),e},humanize:function(e,i){return e=e.toLowerCase(),e=e.replace(this.idSuffix,""),e=e.replace(this.underbar," "),i||(e=this.capitalize(e)),e},capitalize:function(e){return e=e.toLowerCase(),e=e.substring(0,1).toUpperCase()+e.substring(1),e},dasherize:function(e){return e=e.replace(this.spaceOrUnderbar,"-"),e},camel2words:function(e,i){i?(e=this.camelize(e),e=this.underscore(e)):e=e.toLowerCase(),e=e.replace(this.underbar," ");const s=e.split(" ");for(let o=0;o<s.length;o++){const n=s[o].split("-");for(let t=0;t<n.length;t++)this.nonTitlecasedWords.includes(n[t].toLowerCase())||(n[t]=this.capitalize(n[t]));s[o]=n.join("-")}return e=s.join(" "),e=e.substring(0,1).toUpperCase()+e.substring(1),e},demodulize:function(e){const i=e.split("::");return e=i[i.length-1],e},tableize:function(e){return e=this.pluralize(this.underscore(e)),e},classify:function(e){return e=this.singularize(this.camelize(e)),e},foreignKey:function(e,i){return e=this.underscore(this.demodulize(e))+(i?"":"_")+"id",e},ordinalize:function(e){const i=e.split(" ");for(let s=0;s<i.length;s++){const o=parseInt(i[s]);if(Number.isNaN(o)){const n=i[s].substring(i[s].length-2),t=i[s].substring(i[s].length-1);let r="th";n!=="11"&&n!=="12"&&n!=="13"&&(t==="1"?r="st":t==="2"?r="nd":t==="3"&&(r="rd")),i[s]+=r}}return e=i.join(" "),e}};exports.default=_Inflector; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const _Inflector={uncountableWords:["equipment","information","rice","money","species","series","fish","sheep","moose","deer","news"],pluralRules:[[/(m)an$/gi,"$1en"],[/(pe)rson$/gi,"$1ople"],[/(child)$/gi,"$1ren"],[/^(ox)$/gi,"$1en"],[/(ax|test)is$/gi,"$1es"],[/(octop|vir)us$/gi,"$1i"],[/(alias|status)$/gi,"$1es"],[/(bu)s$/gi,"$1ses"],[/(buffal|tomat|potat)o$/gi,"$1oes"],[/([ti])um$/gi,"$1a"],[/sis$/gi,"ses"],[/(?:([^f])fe|([lr])f)$/gi,"$1$2ves"],[/(hive)$/gi,"$1s"],[/([^aeiouy]|qu)y$/gi,"$1ies"],[/(x|ch|ss|sh)$/gi,"$1es"],[/(matr|vert|ind)ix|ex$/gi,"$1ices"],[/([m|l])ouse$/gi,"$1ice"],[/(quiz)$/gi,"$1zes"],[/s$/gi,"s"],[/$/gi,"s"]],singularRules:[[/(m)en$/gi,"$1an"],[/(pe)ople$/gi,"$1rson"],[/(child)ren$/gi,"$1"],[/([ti])a$/gi,"$1um"],[/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/gi,"$1$2sis"],[/(hive)s$/gi,"$1"],[/(tive)s$/gi,"$1"],[/(curve)s$/gi,"$1"],[/([lr])ves$/gi,"$1f"],[/([^fo])ves$/gi,"$1fe"],[/([^aeiouy]|qu)ies$/gi,"$1y"],[/(s)eries$/gi,"$1eries"],[/(m)ovies$/gi,"$1ovie"],[/(x|ch|ss|sh)es$/gi,"$1"],[/([m|l])ice$/gi,"$1ouse"],[/(bus)es$/gi,"$1"],[/(o)es$/gi,"$1"],[/(shoe)s$/gi,"$1"],[/(cris|ax|test)es$/gi,"$1is"],[/(octop|vir)i$/gi,"$1us"],[/(alias|status)es$/gi,"$1"],[/^(ox)en/gi,"$1"],[/(vert|ind)ices$/gi,"$1ex"],[/(matr)ices$/gi,"$1ix"],[/(quiz)zes$/gi,"$1"],[/s$/gi,""]],nonTitlecasedWords:["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],idSuffix:/(_ids|_id)$/g,underbar:/_/g,spaceOrUnderbar:/[ _]/g,uppercase:/([A-Z])/g,underbarPrefix:/^_/,applyRules:function(e,i,n,s){if(s)e=s;else if(!n.includes(e.toLowerCase())){for(let r=0;r<i.length;r++)if(e.match(i[r][0])){e=e.replace(i[r][0],i[r][1]);break}}return e},pluralize:function(e,i){return _Inflector.applyRules(e,_Inflector.pluralRules,_Inflector.uncountableWords,i)},singularize:function(e,i){return _Inflector.applyRules(e,_Inflector.singularRules,_Inflector.uncountableWords,i)},camelize:function(e,i){const n=e.split("/");for(let s=0;s<n.length;s++){const o=n[s].split("_"),r=i&&s+1===n.length?1:0;for(let t=r;t<o.length;t++)o[t]=o[t].charAt(0).toUpperCase()+o[t].substring(1);n[s]=o.join("")}if(e=n.join("::"),i){const s=e.charAt(0).toLowerCase(),o=e.slice(1);e=s+o}return e},underscore:function(e){const i=e.split("::");for(let n=0;n<i.length;n++)i[n]=i[n].replace(_Inflector.uppercase,"_$1"),i[n]=i[n].replace(_Inflector.underbarPrefix,"");return e=i.join("/").toLowerCase(),e},humanize:function(e,i){return e=e.toLowerCase(),e=e.replace(_Inflector.idSuffix,""),e=e.replace(_Inflector.underbar," "),i||(e=_Inflector.capitalize(e)),e},capitalize:function(e){return e=e.toLowerCase(),e=e.substring(0,1).toUpperCase()+e.substring(1),e},dasherize:function(e){return e=e.replace(_Inflector.spaceOrUnderbar,"-"),e},camel2words:function(e,i){i?(e=_Inflector.camelize(e),e=_Inflector.underscore(e)):e=e.toLowerCase(),e=e.replace(_Inflector.underbar," ");const n=e.split(" ");for(let s=0;s<n.length;s++){const o=n[s].split("-");for(let r=0;r<o.length;r++)_Inflector.nonTitlecasedWords.includes(o[r].toLowerCase())||(o[r]=_Inflector.capitalize(o[r]));n[s]=o.join("-")}return e=n.join(" "),e=e.substring(0,1).toUpperCase()+e.substring(1),e},demodulize:function(e){const i=e.split("::");return e=i[i.length-1],e},tableize:function(e){return e=_Inflector.pluralize(_Inflector.underscore(e)),e},classify:function(e){return e=_Inflector.singularize(_Inflector.camelize(e)),e},foreignKey:function(e,i){return e=_Inflector.underscore(_Inflector.demodulize(e))+(i?"":"_")+"id",e},ordinalize:function(e){const i=e.split(" ");for(let n=0;n<i.length;n++){const s=parseInt(i[n]);if(Number.isNaN(s)){const o=i[n].substring(i[n].length-2),r=i[n].substring(i[n].length-1);let t="th";o!=="11"&&o!=="12"&&o!=="13"&&(r==="1"?t="st":r==="2"?t="nd":r==="3"&&(t="rd")),i[n]+=t}}return e=i.join(" "),e}};exports.default=_Inflector; |
@@ -1,1 +0,1 @@ | ||
const a={uncountableWords:["equipment","information","rice","money","species","series","fish","sheep","moose","deer","news"],pluralRules:[[/(m)an$/gi,"$1en"],[/(pe)rson$/gi,"$1ople"],[/(child)$/gi,"$1ren"],[/^(ox)$/gi,"$1en"],[/(ax|test)is$/gi,"$1es"],[/(octop|vir)us$/gi,"$1i"],[/(alias|status)$/gi,"$1es"],[/(bu)s$/gi,"$1ses"],[/(buffal|tomat|potat)o$/gi,"$1oes"],[/([ti])um$/gi,"$1a"],[/sis$/gi,"ses"],[/(?:([^f])fe|([lr])f)$/gi,"$1$2ves"],[/(hive)$/gi,"$1s"],[/([^aeiouy]|qu)y$/gi,"$1ies"],[/(x|ch|ss|sh)$/gi,"$1es"],[/(matr|vert|ind)ix|ex$/gi,"$1ices"],[/([m|l])ouse$/gi,"$1ice"],[/(quiz)$/gi,"$1zes"],[/s$/gi,"s"],[/$/gi,"s"]],singularRules:[[/(m)en$/gi,"$1an"],[/(pe)ople$/gi,"$1rson"],[/(child)ren$/gi,"$1"],[/([ti])a$/gi,"$1um"],[/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/gi,"$1$2sis"],[/(hive)s$/gi,"$1"],[/(tive)s$/gi,"$1"],[/(curve)s$/gi,"$1"],[/([lr])ves$/gi,"$1f"],[/([^fo])ves$/gi,"$1fe"],[/([^aeiouy]|qu)ies$/gi,"$1y"],[/(s)eries$/gi,"$1eries"],[/(m)ovies$/gi,"$1ovie"],[/(x|ch|ss|sh)es$/gi,"$1"],[/([m|l])ice$/gi,"$1ouse"],[/(bus)es$/gi,"$1"],[/(o)es$/gi,"$1"],[/(shoe)s$/gi,"$1"],[/(cris|ax|test)es$/gi,"$1is"],[/(octop|vir)i$/gi,"$1us"],[/(alias|status)es$/gi,"$1"],[/^(ox)en/gi,"$1"],[/(vert|ind)ices$/gi,"$1ex"],[/(matr)ices$/gi,"$1ix"],[/(quiz)zes$/gi,"$1"],[/s$/gi,""]],nonTitlecasedWords:["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],idSuffix:/(_ids|_id)$/g,underbar:/_/g,spaceOrUnderbar:/[ _]/g,uppercase:/([A-Z])/g,underbarPrefix:/^_/,applyRules:function(e,i,n,o){if(o)e=o;else if(!n.includes(e.toLowerCase())){for(let t=0;t<i.length;t++)if(e.match(i[t][0])){e=e.replace(i[t][0],i[t][1]);break}}return e},pluralize:function(e,i){return this.applyRules(e,this.pluralRules,this.uncountableWords,i)},singularize:function(e,i){return this.applyRules(e,this.singularRules,this.uncountableWords,i)},camelize:function(e,i){const n=e.split("/");for(let o=0;o<n.length;o++){const s=n[o].split("_"),t=i&&o+1===n.length?1:0;for(let r=t;r<s.length;r++)s[r]=s[r].charAt(0).toUpperCase()+s[r].substring(1);n[o]=s.join("")}if(e=n.join("::"),i){const o=e.charAt(0).toLowerCase(),s=e.slice(1);e=o+s}return e},underscore:function(e){const i=e.split("::");for(let n=0;n<i.length;n++)i[n]=i[n].replace(this.uppercase,"_$1"),i[n]=i[n].replace(this.underbarPrefix,"");return e=i.join("/").toLowerCase(),e},humanize:function(e,i){return e=e.toLowerCase(),e=e.replace(this.idSuffix,""),e=e.replace(this.underbar," "),i||(e=this.capitalize(e)),e},capitalize:function(e){return e=e.toLowerCase(),e=e.substring(0,1).toUpperCase()+e.substring(1),e},dasherize:function(e){return e=e.replace(this.spaceOrUnderbar,"-"),e},camel2words:function(e,i){i?(e=this.camelize(e),e=this.underscore(e)):e=e.toLowerCase(),e=e.replace(this.underbar," ");const n=e.split(" ");for(let o=0;o<n.length;o++){const s=n[o].split("-");for(let t=0;t<s.length;t++)this.nonTitlecasedWords.includes(s[t].toLowerCase())||(s[t]=this.capitalize(s[t]));n[o]=s.join("-")}return e=n.join(" "),e=e.substring(0,1).toUpperCase()+e.substring(1),e},demodulize:function(e){const i=e.split("::");return e=i[i.length-1],e},tableize:function(e){return e=this.pluralize(this.underscore(e)),e},classify:function(e){return e=this.singularize(this.camelize(e)),e},foreignKey:function(e,i){return e=this.underscore(this.demodulize(e))+(i?"":"_")+"id",e},ordinalize:function(e){const i=e.split(" ");for(let n=0;n<i.length;n++){const o=parseInt(i[n]);if(Number.isNaN(o)){const s=i[n].substring(i[n].length-2),t=i[n].substring(i[n].length-1);let r="th";s!=="11"&&s!=="12"&&s!=="13"&&(t==="1"?r="st":t==="2"?r="nd":t==="3"&&(r="rd")),i[n]+=r}}return e=i.join(" "),e}};export default a; | ||
const o={uncountableWords:["equipment","information","rice","money","species","series","fish","sheep","moose","deer","news"],pluralRules:[[/(m)an$/gi,"$1en"],[/(pe)rson$/gi,"$1ople"],[/(child)$/gi,"$1ren"],[/^(ox)$/gi,"$1en"],[/(ax|test)is$/gi,"$1es"],[/(octop|vir)us$/gi,"$1i"],[/(alias|status)$/gi,"$1es"],[/(bu)s$/gi,"$1ses"],[/(buffal|tomat|potat)o$/gi,"$1oes"],[/([ti])um$/gi,"$1a"],[/sis$/gi,"ses"],[/(?:([^f])fe|([lr])f)$/gi,"$1$2ves"],[/(hive)$/gi,"$1s"],[/([^aeiouy]|qu)y$/gi,"$1ies"],[/(x|ch|ss|sh)$/gi,"$1es"],[/(matr|vert|ind)ix|ex$/gi,"$1ices"],[/([m|l])ouse$/gi,"$1ice"],[/(quiz)$/gi,"$1zes"],[/s$/gi,"s"],[/$/gi,"s"]],singularRules:[[/(m)en$/gi,"$1an"],[/(pe)ople$/gi,"$1rson"],[/(child)ren$/gi,"$1"],[/([ti])a$/gi,"$1um"],[/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/gi,"$1$2sis"],[/(hive)s$/gi,"$1"],[/(tive)s$/gi,"$1"],[/(curve)s$/gi,"$1"],[/([lr])ves$/gi,"$1f"],[/([^fo])ves$/gi,"$1fe"],[/([^aeiouy]|qu)ies$/gi,"$1y"],[/(s)eries$/gi,"$1eries"],[/(m)ovies$/gi,"$1ovie"],[/(x|ch|ss|sh)es$/gi,"$1"],[/([m|l])ice$/gi,"$1ouse"],[/(bus)es$/gi,"$1"],[/(o)es$/gi,"$1"],[/(shoe)s$/gi,"$1"],[/(cris|ax|test)es$/gi,"$1is"],[/(octop|vir)i$/gi,"$1us"],[/(alias|status)es$/gi,"$1"],[/^(ox)en/gi,"$1"],[/(vert|ind)ices$/gi,"$1ex"],[/(matr)ices$/gi,"$1ix"],[/(quiz)zes$/gi,"$1"],[/s$/gi,""]],nonTitlecasedWords:["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],idSuffix:/(_ids|_id)$/g,underbar:/_/g,spaceOrUnderbar:/[ _]/g,uppercase:/([A-Z])/g,underbarPrefix:/^_/,applyRules:function(e,i,n,r){if(r)e=r;else if(!n.includes(e.toLowerCase())){for(let a=0;a<i.length;a++)if(e.match(i[a][0])){e=e.replace(i[a][0],i[a][1]);break}}return e},pluralize:function(e,i){return o.applyRules(e,o.pluralRules,o.uncountableWords,i)},singularize:function(e,i){return o.applyRules(e,o.singularRules,o.uncountableWords,i)},camelize:function(e,i){const n=e.split("/");for(let r=0;r<n.length;r++){const s=n[r].split("_"),a=i&&r+1===n.length?1:0;for(let t=a;t<s.length;t++)s[t]=s[t].charAt(0).toUpperCase()+s[t].substring(1);n[r]=s.join("")}if(e=n.join("::"),i){const r=e.charAt(0).toLowerCase(),s=e.slice(1);e=r+s}return e},underscore:function(e){const i=e.split("::");for(let n=0;n<i.length;n++)i[n]=i[n].replace(o.uppercase,"_$1"),i[n]=i[n].replace(o.underbarPrefix,"");return e=i.join("/").toLowerCase(),e},humanize:function(e,i){return e=e.toLowerCase(),e=e.replace(o.idSuffix,""),e=e.replace(o.underbar," "),i||(e=o.capitalize(e)),e},capitalize:function(e){return e=e.toLowerCase(),e=e.substring(0,1).toUpperCase()+e.substring(1),e},dasherize:function(e){return e=e.replace(o.spaceOrUnderbar,"-"),e},camel2words:function(e,i){i?(e=o.camelize(e),e=o.underscore(e)):e=e.toLowerCase(),e=e.replace(o.underbar," ");const n=e.split(" ");for(let r=0;r<n.length;r++){const s=n[r].split("-");for(let a=0;a<s.length;a++)o.nonTitlecasedWords.includes(s[a].toLowerCase())||(s[a]=o.capitalize(s[a]));n[r]=s.join("-")}return e=n.join(" "),e=e.substring(0,1).toUpperCase()+e.substring(1),e},demodulize:function(e){const i=e.split("::");return e=i[i.length-1],e},tableize:function(e){return e=o.pluralize(o.underscore(e)),e},classify:function(e){return e=o.singularize(o.camelize(e)),e},foreignKey:function(e,i){return e=o.underscore(o.demodulize(e))+(i?"":"_")+"id",e},ordinalize:function(e){const i=e.split(" ");for(let n=0;n<i.length;n++){const r=parseInt(i[n]);if(Number.isNaN(r)){const s=i[n].substring(i[n].length-2),a=i[n].substring(i[n].length-1);let t="th";s!=="11"&&s!=="12"&&s!=="13"&&(a==="1"?t="st":a==="2"?t="nd":a==="3"&&(t="rd")),i[n]+=t}}return e=i.join(" "),e}};export default o; |
{ | ||
"name": "@commercelayer/cli-core", | ||
"version": "4.0.8", | ||
"version": "4.0.9", | ||
"main": "lib/cjs/index.js", | ||
@@ -22,3 +22,3 @@ "types": "lib/cjs/index.d.ts", | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.22.9", | ||
"@babel/preset-env": "^7.22.10", | ||
"@babel/preset-typescript": "^7.22.5", | ||
@@ -29,7 +29,7 @@ "@commercelayer/eslint-config-ts": "^1.0.1", | ||
"@types/jsonwebtoken": "^8.5.9", | ||
"@types/node": "^20.4.5", | ||
"@types/node": "^20.5.1", | ||
"@typescript-eslint/eslint-plugin": "^5.62.0", | ||
"eslint": "^8.45.0", | ||
"eslint": "^8.47.0", | ||
"jest": "^29.6.2", | ||
"minimize-js": "^1.3.1", | ||
"minimize-js": "^1.4.0", | ||
"ts-node": "^10.9.1", | ||
@@ -40,3 +40,3 @@ "typescript": "^5.1.6" | ||
"@commercelayer/js-auth": "^4.1.1", | ||
"@oclif/core": "^2.10.0", | ||
"@oclif/core": "^2.11.8", | ||
"axios": "1.4.0", | ||
@@ -43,0 +43,0 @@ "chalk": "^4.1.2", |
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
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
173277
Updated@oclif/core@^2.11.8