@janiscommerce/api
Advanced tools
Comparing version 6.2.1-typed.0 to 6.2.1
@@ -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 |
'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"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
37972
0
905