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

@apicase/core

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apicase/core - npm Package Compare versions

Comparing version 0.7.0-beta.3 to 0.7.0-beta.4

3

es/apicase.js

@@ -80,2 +80,5 @@ import _default3 from 'nanoutils/lib/mapObjIndexed';

req = req._isNormalized ? req : normalizeOptions(adapter, req);
if (adapter.convert) {
req.payload = adapter.convert(req.payload);
}

@@ -82,0 +85,0 @@ // All data

2

es/normalize.js

@@ -29,3 +29,3 @@ import _default5 from 'nanoutils/lib/omit';

}
return !payload ? null : !res.adapter || !res.adapter.convert ? payload : res.adapter.convert(payload);
return !payload ? {} : payload;
},

@@ -32,0 +32,0 @@

@@ -5,2 +5,3 @@ import _default from 'nanoutils/lib/equals';

import { normalizeOptions } from './normalize';

@@ -16,5 +17,4 @@ /**

this._isApiService = true;
this._opts = Array.isArray(opts) ? opts : [opts];
this._opts = (Array.isArray(opts) ? opts : [opts]).map(opt => normalizeOptions(adapter, opt));
this._listeners = {};
this.adapter = adapter;
this.queue = [];

@@ -21,0 +21,0 @@

{
"name": "@apicase/core",
"version": "0.7.0-beta.3",
"version": "0.7.0-beta.4",
"description": "Core library to make API calls with any adapter",

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

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