@commercelayer/cli-core
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -28,3 +28,2 @@ export declare type AccessTokenInfo = { | ||
declare const decodeAccessToken: (accessToken: string) => AccessTokenInfo; | ||
export declare const defaultEncodingAlgorithm: string; | ||
export { decodeAccessToken }; |
@@ -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.decodeAccessToken=exports.defaultEncodingAlgorithm=void 0;const jsonwebtoken_1=__importDefault(require("jsonwebtoken")),config_1=__importDefault(require("./config")),decodeAccessToken=e=>{const o=jsonwebtoken_1.default.decode(e);if(o===null)throw new Error("Error deconding access token");return o};exports.decodeAccessToken=decodeAccessToken,exports.defaultEncodingAlgorithm=config_1.default.api.token_encoding_algorithm; | ||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.decodeAccessToken=void 0;const jsonwebtoken_1=__importDefault(require("jsonwebtoken")),decodeAccessToken=e=>{const o=jsonwebtoken_1.default.decode(e);if(o===null)throw new Error("Error deconding access token");return o};exports.decodeAccessToken=decodeAccessToken; |
@@ -28,3 +28,2 @@ export declare type AccessTokenInfo = { | ||
declare const decodeAccessToken: (accessToken: string) => AccessTokenInfo; | ||
export declare const defaultEncodingAlgorithm: string; | ||
export { decodeAccessToken }; |
@@ -1,1 +0,1 @@ | ||
import e from"jsonwebtoken";import r from"./config";const t=n=>{const o=e.decode(n);if(o===null)throw new Error("Error deconding access token");return o};export const defaultEncodingAlgorithm=r.api.token_encoding_algorithm;export{t as decodeAccessToken}; | ||
import n from"jsonwebtoken";const r=e=>{const o=n.decode(e);if(o===null)throw new Error("Error deconding access token");return o};export{r as decodeAccessToken}; |
{ | ||
"name": "@commercelayer/cli-core", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"main": "lib/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "types": "lib/cjs/index.d.ts", |
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
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
91379
327