New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@incanta/node-paddle-sdk

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@incanta/node-paddle-sdk - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

6

dist/cjs/billing/index.js

@@ -62,6 +62,6 @@ "use strict";

const res = yield (0, got_1.default)(url, options).json();
if (res.success === true) {
return res.response;
if ('error' in res) {
throw new PaddleHttpError(res.error.code, JSON.stringify(res.error));
}
throw new PaddleHttpError(res.error.code, res.error.message);
return res.data;
});

@@ -68,0 +68,0 @@ }

@@ -42,6 +42,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

const res = yield got(url, options).json();
if (res.success === true) {
return res.response;
if ('error' in res) {
throw new PaddleHttpError(res.error.code, JSON.stringify(res.error));
}
throw new PaddleHttpError(res.error.code, res.error.message);
return res.data;
});

@@ -48,0 +48,0 @@ }

{
"name": "@incanta/node-paddle-sdk",
"private": false,
"version": "1.0.4",
"version": "1.0.5",
"description": "A fully typed NodeJS library for integration with Paddle.",

@@ -6,0 +6,0 @@ "exports": {

@@ -9,11 +9,21 @@ import got, { OptionsOfTextResponseBody } from 'got';

| {
success: true;
response: T;
data: T;
meta: {
request_id: string;
};
}
| {
success: false;
error: {
type: string;
code: number;
message: string;
detail: string;
documentation_url: string;
errors: {
field: string;
message: string;
}[];
};
meta: {
request_id: string;
};
};

@@ -62,7 +72,7 @@

if (res.success === true) {
return res.response;
if ('error' in res) {
throw new PaddleHttpError(res.error.code, JSON.stringify(res.error));
}
throw new PaddleHttpError(res.error.code, res.error.message);
return res.data;
}

@@ -69,0 +79,0 @@

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