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

@commercelayer/cli-core

Package Overview
Dependencies
Maintainers
3
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercelayer/cli-core - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

1

lib/cjs/token.d.ts

@@ -28,2 +28,3 @@ export declare type AccessTokenInfo = {

declare const decodeAccessToken: (accessToken: string) => AccessTokenInfo;
export declare const defaultEncodingAlgorithm: string;
export { decodeAccessToken };

2

lib/cjs/token.js

@@ -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=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;
"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;

@@ -28,2 +28,3 @@ export declare type AccessTokenInfo = {

declare const decodeAccessToken: (accessToken: string) => AccessTokenInfo;
export declare const defaultEncodingAlgorithm: string;
export { decodeAccessToken };

@@ -1,1 +0,1 @@

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};
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};
{
"name": "@commercelayer/cli-core",
"version": "0.1.3",
"version": "0.1.4",
"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

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