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

rest-client-sdk

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rest-client-sdk - npm Package Compare versions

Comparing version 0.11.1 to 0.11.2

3

dist/decorator.js

@@ -26,3 +26,4 @@ 'use strict';

if (!value || !(value instanceof Promise)) {
var isPromise = !!value && typeof value.then === 'function';
if (!isPromise) {
throw new Error('Memoization Error, Async function returned non-promise value');

@@ -29,0 +30,0 @@ }

{
"name": "rest-client-sdk",
"version": "0.11.1",
"version": "0.11.2",
"description": "Rest Client SDK for API",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -16,3 +16,4 @@ // memoize promise returning function so that it returns

if (!value || !(value instanceof Promise)) {
const isPromise = !!value && typeof value.then === 'function';
if (!isPromise) {
throw new Error('Memoization Error, Async function returned non-promise value');

@@ -22,6 +23,6 @@ }

// Delete the value regardless of whether it resolves or rejects
return value.then(internalValue => {
return value.then((internalValue) => {
cache[cacheKey] = false;
return internalValue;
}, err => {
}, (err) => {
cache[cacheKey] = false;

@@ -28,0 +29,0 @@ throw err;

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