Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@janiscommerce/api

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@janiscommerce/api - npm Package Compare versions

Comparing version 6.2.1-typed.0 to 6.2.1

4

CHANGELOG.md

@@ -9,2 +9,6 @@ # Changelog

## [6.2.1] - 2021-01-27
### Added
- Typings build from JSDoc
## [6.2.0] - 2020-12-01

@@ -11,0 +15,0 @@ ### Added

4

lib/api.js
'use strict';
// Require para poder tipar el getter/setter de session
// eslint-disable-next-line no-unused-vars
const { ApiSession } = require('@janiscommerce/api-session');
/** @typedef {import('@janiscommerce/api-session').ApiSession} ApiSession */

@@ -7,0 +5,0 @@ /**

@@ -5,11 +5,6 @@ 'use strict';

// Require para poder tipar el getter/setter de session
// eslint-disable-next-line no-unused-vars
const { ApiSession } = require('@janiscommerce/api-session');
const APIError = require('./error');
// Require para poder tipar el getter/setter de session
// eslint-disable-next-line no-unused-vars
const API = require('./api');
/** @typedef {import('@janiscommerce/api-session').ApiSession} ApiSession */
/** @typedef {import('./api')} API */

@@ -16,0 +11,0 @@ const controllersCache = {};

{
"name": "@janiscommerce/api",
"version": "6.2.1-typed.0",
"version": "6.2.1",
"description": "A package for managing API from any origin",

@@ -41,3 +41,3 @@ "main": "lib/index.js",

"dependencies": {
"@janiscommerce/api-session": "^3.1.1-typed.0",
"@janiscommerce/api-session": "^3.1.1",
"@janiscommerce/log": "^3.3.0",

@@ -44,0 +44,0 @@ "@janiscommerce/superstruct": "^1.1.1",

@@ -59,4 +59,4 @@ export = API;

get logId(): string;
set session(arg: ApiSession);
get session(): ApiSession;
set session(arg: import("@janiscommerce/api-session/types/api-session"));
get session(): import("@janiscommerce/api-session/types/api-session");
get response(): Response;

@@ -107,5 +107,4 @@ /**

declare namespace API {
export { Request, Response };
export { ApiSession, Request, Response };
}
import { ApiSession } from "@janiscommerce/api-session";
type Response = {

@@ -121,2 +120,3 @@ body: any;

};
type ApiSession = import("@janiscommerce/api-session/types/api-session");
type Request = {

@@ -123,0 +123,0 @@ data: any;

@@ -32,4 +32,8 @@ export = Fetcher;

*/
get apiController(): API;
get apiController(): import("./api");
}
import API = require("./api");
declare namespace Fetcher {
export { ApiSession, API };
}
type ApiSession = import("@janiscommerce/api-session/types/api-session");
type API = import("./api");
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