🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

nestjs-stripe

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestjs-stripe - npm Package Compare versions

Comparing version

to
0.1.3

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ProxyAgent = require("https-proxy-agent");
const Stripe = require("stripe");

@@ -14,3 +13,3 @@ const packageJson = require('./../../package.json');

if (typeof options.httpProxy === 'string') {
stripeClient.setHttpAgent(new ProxyAgent(options.httpProxy));
stripeClient.setHttpAgent(options.httpProxy);
}

@@ -17,0 +16,0 @@ if (typeof options.maxNetworkRetries === 'number') {

{
"name": "nestjs-stripe",
"version": "0.1.2",
"version": "0.1.3",
"description": "Provides an injectable Stripe client to nestjs modules",

@@ -25,12 +25,11 @@ "repository": "https://github.com/dhaspden/nestjs-stripe",

"dependencies": {
"https-proxy-agent": "2.2.1",
"stripe": "7.4.0"
},
"devDependencies": {
"@nestjs/common": "6.4.0",
"@nestjs/core": "6.4.0",
"@nestjs/testing": "6.4.0",
"@nestjs/common": "6.5.2",
"@nestjs/core": "6.5.2",
"@nestjs/testing": "6.5.2",
"@types/jest": "24.0.15",
"@types/node": "12.0.10",
"@types/stripe": "6.30.6",
"@types/node": "12.6.2",
"@types/stripe": "6.31.3",
"codecov": "3.5.0",

@@ -43,3 +42,3 @@ "jest": "24.8.0",

"ts-jest": "24.0.2",
"typescript": "3.5.2"
"typescript": "3.5.3"
},

@@ -46,0 +45,0 @@ "peerDependencies": {

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

import * as ProxyAgent from 'https-proxy-agent';
import * as Stripe from 'stripe';

@@ -11,4 +10,3 @@

// TODO: update this when @types/stripe adds `setAppInfo`
(stripeClient as any).setAppInfo({
stripeClient.setAppInfo({
name: packageJson.name,

@@ -20,4 +18,3 @@ url: packageJson.repository,

if (typeof options.httpProxy === 'string') {
// TODO: update this when @types/stripe adds `setHttpAgent`
(stripeClient as any).setHttpAgent(new ProxyAgent(options.httpProxy));
stripeClient.setHttpAgent(options.httpProxy);
}

@@ -30,4 +27,3 @@

if (typeof options.requestTelemetry === 'boolean') {
// TODO: update this when @types/stripe adds `setTelemetryEnabled`
(stripeClient as any).setTelemetryEnabled(options.requestTelemetry);
stripeClient.setTelemetryEnabled(options.requestTelemetry);
}

@@ -34,0 +30,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet