@commercelayer/cli-core
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -1,1 +0,1 @@ | ||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.execMode=exports.extractDomain=exports.baseURL=void 0;const config_1=__importDefault(require("./config")),baseURL=(e,t)=>`https://${e.toLowerCase()}.${t||config_1.default.api.default_domain}`;exports.baseURL=baseURL;const extractDomain=e=>{if(!!e)return e.substring(e.indexOf(".")+1)};exports.extractDomain=extractDomain;const execMode=e=>e===!0||e==="live"?"live":"test";exports.execMode=execMode; | ||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.execMode=exports.extractDomain=exports.baseURL=void 0;const config_1=__importDefault(require("./config")),baseURL=(e,t)=>`https://${e.toLowerCase()}.${t||config_1.default.api.default_domain}`;exports.baseURL=baseURL;const extractDomain=e=>{if(e)return e.substring(e.indexOf(".")+1)};exports.extractDomain=extractDomain;const execMode=e=>e===!0||e==="live"?"live":"test";exports.execMode=execMode; |
@@ -13,2 +13,3 @@ export * as clApi from './api'; | ||
export * as clText from './text'; | ||
export * as clSymbol from './symbol'; | ||
/** Types **/ | ||
@@ -15,0 +16,0 @@ export type { ApiMode } from './api'; |
@@ -1,1 +0,1 @@ | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r);var u=Object.getOwnPropertyDescriptor(t,r);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,u)}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding(t,e,r);return __setModuleDefault(t,e),t},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.clText=exports.clSchema=exports.clHelp=exports.clUtil=exports.clUpdate=exports.clToken=exports.clColor=exports.clOutput=exports.clCommand=exports.clConfig=exports.clApplication=exports.clApi=void 0,exports.clApi=__importStar(require("./api")),exports.clApplication=__importStar(require("./application"));var config_1=require("./config");Object.defineProperty(exports,"clConfig",{enumerable:!0,get:function(){return __importDefault(config_1).default}}),exports.clCommand=__importStar(require("./command")),exports.clOutput=__importStar(require("./output")),exports.clColor=__importStar(require("./color")),exports.clToken=__importStar(require("./token")),exports.clUpdate=__importStar(require("./update")),exports.clUtil=__importStar(require("./util"));var help_1=require("./help");Object.defineProperty(exports,"clHelp",{enumerable:!0,get:function(){return __importDefault(help_1).default}}),exports.clSchema=__importStar(require("./schema")),exports.clText=__importStar(require("./text")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,o)}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding(t,e,r);return __setModuleDefault(t,e),t},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.clSymbol=exports.clText=exports.clSchema=exports.clHelp=exports.clUtil=exports.clUpdate=exports.clToken=exports.clColor=exports.clOutput=exports.clCommand=exports.clConfig=exports.clApplication=exports.clApi=void 0,exports.clApi=__importStar(require("./api")),exports.clApplication=__importStar(require("./application"));var config_1=require("./config");Object.defineProperty(exports,"clConfig",{enumerable:!0,get:function(){return __importDefault(config_1).default}}),exports.clCommand=__importStar(require("./command")),exports.clOutput=__importStar(require("./output")),exports.clColor=__importStar(require("./color")),exports.clToken=__importStar(require("./token")),exports.clUpdate=__importStar(require("./update")),exports.clUtil=__importStar(require("./util"));var help_1=require("./help");Object.defineProperty(exports,"clHelp",{enumerable:!0,get:function(){return __importDefault(help_1).default}}),exports.clSchema=__importStar(require("./schema")),exports.clText=__importStar(require("./text")),exports.clSymbol=__importStar(require("./symbol")); |
@@ -1,1 +0,1 @@ | ||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.download=void 0;const axios_1=__importDefault(require("axios")),downloadSchema=async e=>{const a="https://data.commercelayer.app/schemas/",t=`openapi${e?"_"+e.replace(/\./g,"-"):""}.json`,s=a+t;return(await axios_1.default.get(s)).data};exports.download=downloadSchema; | ||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.download=void 0;const axios_1=__importDefault(require("axios")),config_1=__importDefault(require("./config")),downloadSchema=async e=>{const a=`https://data.${config_1.default.api.default_app_domain}/schemas/`,t=`openapi${e?"_"+e.replace(/\./g,"-"):""}.json`,s=a+t;return(await axios_1.default.get(s)).data};exports.download=downloadSchema; |
@@ -14,2 +14,2 @@ export declare const red: (txt: unknown) => string; | ||
export declare const warning: (txt: unknown) => string; | ||
export declare const hilight: (txt: unknown) => string; | ||
export declare const highlight: (txt: unknown) => string; |
@@ -1,1 +0,1 @@ | ||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.hilight=exports.warning=exports.success=exports.error=exports.flag=exports.command=exports.id=exports.slug=exports.magenta=exports.cyan=exports.blue=exports.yellow=exports.green=exports.red=void 0;const chalk_1=__importDefault(require("chalk")),red=e=>chalk_1.default.red(e);exports.red=red;const green=e=>chalk_1.default.green(e);exports.green=green;const yellow=e=>chalk_1.default.yellow(e);exports.yellow=yellow;const blue=e=>chalk_1.default.blue(e);exports.blue=blue;const cyan=e=>chalk_1.default.cyan(e);exports.cyan=cyan;const magenta=e=>chalk_1.default.magenta(e);exports.magenta=magenta;const slug=e=>chalk_1.default.yellow(e);exports.slug=slug;const id=e=>chalk_1.default.magenta(e);exports.id=id;const command=e=>chalk_1.default.cyan(e);exports.command=command;const flag=e=>chalk_1.default.magenta(e);exports.flag=flag;const error=e=>chalk_1.default.red(e);exports.error=error;const success=e=>chalk_1.default.green(e);exports.success=success;const warning=e=>chalk_1.default.yellow(e);exports.warning=warning;const hilight=e=>chalk_1.default.yellowBright(e);exports.hilight=hilight; | ||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.highlight=exports.warning=exports.success=exports.error=exports.flag=exports.command=exports.id=exports.slug=exports.magenta=exports.cyan=exports.blue=exports.yellow=exports.green=exports.red=void 0;const chalk_1=__importDefault(require("chalk")),red=e=>chalk_1.default.red(e);exports.red=red;const green=e=>chalk_1.default.green(e);exports.green=green;const yellow=e=>chalk_1.default.yellow(e);exports.yellow=yellow;const blue=e=>chalk_1.default.blue(e);exports.blue=blue;const cyan=e=>chalk_1.default.cyan(e);exports.cyan=cyan;const magenta=e=>chalk_1.default.magenta(e);exports.magenta=magenta;const slug=e=>chalk_1.default.yellowBright(e);exports.slug=slug;const id=e=>chalk_1.default.magenta.bold(e);exports.id=id;const command=e=>chalk_1.default.cyan.italic(e);exports.command=command;const flag=e=>chalk_1.default.magenta.italic(e);exports.flag=flag;const error=e=>chalk_1.default.red(e);exports.error=error;const success=e=>chalk_1.default.green(e);exports.success=success;const warning=e=>chalk_1.default.yellow(e);exports.warning=warning;const highlight=e=>chalk_1.default.yellowBright(e);exports.highlight=highlight; |
declare const capitalize: (str: string | undefined) => string | undefined; | ||
export { capitalize }; | ||
declare const pluralize: (str: string, plural?: string | undefined) => string; | ||
declare const singularize: (str: string, singular?: string | undefined) => string; | ||
export { capitalize, pluralize, singularize }; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.capitalize=void 0;const capitalize=t=>{if(!t)return t;let e=t.toLowerCase();return e=e.substring(0,1).toUpperCase()+e.substring(1),e};exports.capitalize=capitalize; | ||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.singularize=exports.pluralize=exports.capitalize=void 0;const inflector_1=__importDefault(require("./inflector")),capitalize=e=>{if(!e)return e;let t=e.toLowerCase();return t=t.substring(0,1).toUpperCase()+t.substring(1),t};exports.capitalize=capitalize;const pluralize=inflector_1.default.pluralize;exports.pluralize=pluralize;const singularize=inflector_1.default.singularize;exports.singularize=singularize; |
@@ -1,1 +0,1 @@ | ||
import n from"./config";const r=(t,e)=>`https://${t.toLowerCase()}.${e||n.api.default_domain}`,o=t=>{if(!!t)return t.substring(t.indexOf(".")+1)},i=t=>t===!0||t==="live"?"live":"test";export{r as baseURL,o as extractDomain,i as execMode}; | ||
import n from"./config";const r=(t,e)=>`https://${t.toLowerCase()}.${e||n.api.default_domain}`,o=t=>{if(t)return t.substring(t.indexOf(".")+1)},i=t=>t===!0||t==="live"?"live":"test";export{r as baseURL,o as extractDomain,i as execMode}; |
@@ -13,2 +13,3 @@ export * as clApi from './api'; | ||
export * as clText from './text'; | ||
export * as clSymbol from './symbol'; | ||
/** Types **/ | ||
@@ -15,0 +16,0 @@ export type { ApiMode } from './api'; |
@@ -1,1 +0,1 @@ | ||
import*as o from"./api";export{o as clApi};import*as r from"./application";export{r as clApplication};export{default as clConfig}from"./config";import*as t from"./command";export{t as clCommand};import*as p from"./output";export{p as clOutput};import*as a from"./color";export{a as clColor};import*as l from"./token";export{l as clToken};import*as m from"./update";export{m as clUpdate};import*as c from"./util";export{c as clUtil};export{default as clHelp}from"./help";import*as e from"./schema";export{e as clSchema};import*as s from"./text";export{s as clText}; | ||
import*as o from"./api";export{o as clApi};import*as r from"./application";export{r as clApplication};export{default as clConfig}from"./config";import*as t from"./command";export{t as clCommand};import*as l from"./output";export{l as clOutput};import*as p from"./color";export{p as clColor};import*as a from"./token";export{a as clToken};import*as m from"./update";export{m as clUpdate};import*as c from"./util";export{c as clUtil};export{default as clHelp}from"./help";import*as e from"./schema";export{e as clSchema};import*as s from"./text";export{s as clText};import*as i from"./symbol";export{i as clSymbol}; |
@@ -1,1 +0,1 @@ | ||
import o from"axios";const t=async a=>{const e="https://data.commercelayer.app/schemas/",s=`openapi${a?"_"+a.replace(/\./g,"-"):""}.json`,c=e+s;return(await o.get(c)).data};export{t as download}; | ||
import t from"axios";import c from"./config";const n=async a=>{const o=`https://data.${c.api.default_app_domain}/schemas/`,s=`openapi${a?"_"+a.replace(/\./g,"-"):""}.json`,e=o+s;return(await t.get(e)).data};export{n as download}; |
@@ -14,2 +14,2 @@ export declare const red: (txt: unknown) => string; | ||
export declare const warning: (txt: unknown) => string; | ||
export declare const hilight: (txt: unknown) => string; | ||
export declare const highlight: (txt: unknown) => string; |
@@ -1,1 +0,1 @@ | ||
import e from"chalk";export const red=r=>e.red(r),green=r=>e.green(r),yellow=r=>e.yellow(r),blue=r=>e.blue(r),cyan=r=>e.cyan(r),magenta=r=>e.magenta(r),slug=r=>e.yellow(r),id=r=>e.magenta(r),command=r=>e.cyan(r),flag=r=>e.magenta(r),error=r=>e.red(r),success=r=>e.green(r),warning=r=>e.yellow(r),hilight=r=>e.yellowBright(r); | ||
import t from"chalk";export const red=r=>t.red(r),green=r=>t.green(r),yellow=r=>t.yellow(r),blue=r=>t.blue(r),cyan=r=>t.cyan(r),magenta=r=>t.magenta(r),slug=r=>t.yellowBright(r),id=r=>t.magenta.bold(r),command=r=>t.cyan.italic(r),flag=r=>t.magenta.italic(r),error=r=>t.red(r),success=r=>t.green(r),warning=r=>t.yellow(r),highlight=r=>t.yellowBright(r); |
declare const capitalize: (str: string | undefined) => string | undefined; | ||
export { capitalize }; | ||
declare const pluralize: (str: string, plural?: string | undefined) => string; | ||
declare const singularize: (str: string, singular?: string | undefined) => string; | ||
export { capitalize, pluralize, singularize }; |
@@ -1,1 +0,1 @@ | ||
const r=t=>{if(!t)return t;let e=t.toLowerCase();return e=e.substring(0,1).toUpperCase()+e.substring(1),e};export{r as capitalize}; | ||
import i from"./inflector";const t=r=>{if(!r)return r;let e=r.toLowerCase();return e=e.substring(0,1).toUpperCase()+e.substring(1),e},n=i.pluralize,o=i.singularize;export{t as capitalize,n as pluralize,o as singularize}; |
{ | ||
"name": "@commercelayer/cli-core", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"main": "lib/cjs/index.js", | ||
@@ -29,18 +29,18 @@ "types": "lib/cjs/index.d.ts", | ||
"@types/jsonwebtoken": "^8.5.9", | ||
"@types/node": "^18.11.9", | ||
"@types/node": "^18.13.0", | ||
"@types/update-notifier": "^5.1.0", | ||
"@typescript-eslint/eslint-plugin": "^5.45.0", | ||
"eslint": "^8.28.0", | ||
"@typescript-eslint/eslint-plugin": "^5.52.0", | ||
"eslint": "^8.34.0", | ||
"jest": "^27.5.1", | ||
"minimize-js": "^1.3.0", | ||
"minimize-js": "^1.3.1", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.3" | ||
"typescript": "^4.9.5" | ||
}, | ||
"dependencies": { | ||
"@commercelayer/js-auth": "^2.3.0", | ||
"@oclif/core": "^1.20.4", | ||
"@oclif/core": "^1.26.1", | ||
"axios": "1.1.3", | ||
"chalk": "^4.1.2", | ||
"jsonwebtoken": "^8.5.1", | ||
"update-notifier": "^5.1.0" | ||
"update-notifier-cjs": "^5.1.6" | ||
}, | ||
@@ -47,0 +47,0 @@ "repository": "github:commercelayer/commercelayer-cli-core", |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
152315
146
69
751
4
12
+ Addedupdate-notifier-cjs@^5.1.6
+ Added@pnpm/config.env-replace@1.1.0(transitive)
+ Added@pnpm/network.ca-file@1.0.2(transitive)
+ Added@pnpm/npm-conf@2.3.1(transitive)
+ Addedconfig-chain@1.1.13(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedgraceful-fs@4.2.10(transitive)
+ Addedisomorphic-fetch@3.0.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedproto-list@1.2.4(transitive)
+ Addedregistry-auth-token@5.0.3(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedupdate-notifier-cjs@5.1.6(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removedupdate-notifier@^5.1.0
- Removed@sindresorhus/is@0.14.0(transitive)
- Removed@szmarczak/http-timer@1.1.2(transitive)
- Removedcacheable-request@6.1.0(transitive)
- Removedclone-response@1.0.3(transitive)
- Removeddecompress-response@3.3.0(transitive)
- Removeddefer-to-connect@1.1.3(transitive)
- Removedduplexer3@0.1.5(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedfastq@1.18.0(transitive)
- Removedget-stream@4.1.05.2.0(transitive)
- Removedgot@9.6.0(transitive)
- Removedhttp-cache-semantics@4.1.1(transitive)
- Removedjson-buffer@3.0.0(transitive)
- Removedkeyv@3.1.0(transitive)
- Removedlatest-version@5.1.0(transitive)
- Removedlowercase-keys@1.0.12.0.0(transitive)
- Removedmimic-response@1.0.1(transitive)
- Removednormalize-url@4.5.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedp-cancelable@1.1.0(transitive)
- Removedpackage-json@6.5.0(transitive)
- Removedprepend-http@2.0.0(transitive)
- Removedpump@3.0.2(transitive)
- Removedregistry-auth-token@4.2.2(transitive)
- Removedresponselike@1.0.2(transitive)
- Removedto-readable-stream@1.0.0(transitive)
- Removedupdate-notifier@5.1.0(transitive)
- Removedurl-parse-lax@3.0.0(transitive)
- Removedwrappy@1.0.2(transitive)
Updated@oclif/core@^1.26.1