Huge News!Announcing our $40M Series B led by Abstract Ventures.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.15 to 0.7.0

.vscode/settings.json

2

es/apicase.js

@@ -7,3 +7,3 @@ import _default4 from 'nanoutils/lib/mapObjIndexed';

import EventBus from 'nanoevents';
import { normalizeOptions } from './normalize';
import normalizeOptions from './normalize';

@@ -10,0 +10,0 @@ const compose = (hooks, createData) => (payload, changePayload) => new Promise(resolve => {

@@ -1,5 +0,3 @@

export { apiAll } from './all';
export { apiCall } from './call';
export { ApiQueue } from './queue';
export { ApiService } from './service';
export { apicase } from './apicase';

@@ -8,3 +8,3 @@ import _default5 from 'nanoutils/lib/map';

import { normalizeOptions } from './normalize';
import normalizeOptions from './normalize';

@@ -35,2 +35,2 @@ const mergers = {

export { mergeOptions };
export default mergeOptions;

@@ -58,2 +58,2 @@ import _default5 from 'nanoutils/lib/omit';

export { normalizeOptions };
export default normalizeOptions;
import NanoEvents from 'nanoevents';
import { mergeOptions } from './merge';
import mergeOptions from './merge';

@@ -4,0 +4,0 @@ /**

import _default2 from 'nanoutils/lib/equals';
import _default from 'nanoutils/lib/clone';
import { apicase } from './apicase';
import { mergeOptions } from './merge';
import { normalizeOptions } from './normalize';
import mergeOptions from './merge';
import normalizeOptions from './normalize';

@@ -8,0 +8,0 @@ /**

{
"name": "@apicase/core",
"version": "0.7.0-beta.15",
"version": "0.7.0",
"description": "Core library to make API calls with any adapter",
"main": "es/index.js",
"main": "cjs/index.js",
"module": "es/index.js",

@@ -21,3 +21,3 @@ "private": false,

"check": "npm run lint && npm run test && npm run size",
"build": "node build.js && npm run check",
"build": "babel lib --out-dir cjs --ignore test.js && babel lib --out-dir es --ignore test.js --no-babelrc --plugins=nanoutils",
"prepublish": "npm run build"

@@ -31,6 +31,2 @@ },

{
"path": "es/all.js",
"limit": "2 KB"
},
{
"path": "es/queue.js",

@@ -61,2 +57,3 @@ "limit": "2 KB"

"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",

@@ -77,7 +74,8 @@ "babel-jest": "^22.4.0",

"rimraf": "^2.6.2",
"rollup": "^0.55.1",
"rollup-plugin-commonjs": "^8.3.0",
"rollup-plugin-node-resolve": "^3.0.2",
"rollup": "^0.56.5",
"rollup-plugin-babel": "^3.0.3",
"rollup-plugin-commonjs": "8.3.0",
"rollup-plugin-node-resolve": "^3.2.0",
"size-limit": "^0.14.0"
}
}

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

import { mergeOptions } from '../lib/merge'
import mergeOptions from '../lib/merge'

@@ -25,3 +25,3 @@ it('normalizes obj before merge', () => {

hooks: {
done: [() => {}]
done: [() => { }]
}

@@ -31,3 +31,3 @@ }

hooks: {
done: [() => {}]
done: [() => { }]
}

@@ -44,4 +44,4 @@ }

hooks: {
before: () => {},
done: [() => {}]
before: () => { },
done: [() => { }]
}

@@ -51,4 +51,4 @@ }

hooks: {
done: [() => {}],
fail: () => {}
done: [() => { }],
fail: () => { }
}

@@ -55,0 +55,0 @@ }

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

import { normalizeOptions } from '../lib/normalize'
import normalizeOptions from '../lib/normalize'

@@ -7,4 +7,4 @@ describe('Hooks', () => {

hooks: {
before() {},
done: [() => {}, () => {}]
before() { },
done: [() => { }, () => { }]
}

@@ -57,3 +57,3 @@ }

hooks: {
before: () => {}
before: () => { }
}

@@ -60,0 +60,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