@giteeteam/apps-api
Advanced tools
Comparing version 0.2.0 to 0.3.0
/* eslint-disable no-var */ | ||
import type { AxiosConfig } from './axios'; | ||
import type { LocalCacheSetOptions } from './localCache'; | ||
import type { CacheSetOptions, CacheValueType } from './cache'; | ||
@@ -36,2 +37,7 @@ export interface PgQueryResult { | ||
}; | ||
var cache: { | ||
set: (key: string, value: CacheValueType, options?: CacheSetOptions) => Promise<void>; | ||
get: (key: string) => Promise<CacheValueType>; | ||
del: (key: string) => Promise<void>; | ||
}; | ||
var i18n: { | ||
@@ -38,0 +44,0 @@ t: (keys: string | string[], options?: Record<string, any>) => string; |
export * from './axios'; | ||
export * from './localCache'; | ||
export * from './cache'; | ||
export * from './logger'; | ||
@@ -4,0 +5,0 @@ export * from './i18n'; |
export * from './axios'; | ||
export * from './localCache'; | ||
export * from './cache'; | ||
export * from './logger'; | ||
@@ -4,0 +5,0 @@ export * from './i18n'; |
@@ -9,3 +9,3 @@ export type ResolverPayload = Record<string, any>; | ||
constructor(); | ||
define(functionKey: string, cb: ResolverCallback): this; | ||
define(functionKey: string, callback: ResolverCallback): this; | ||
getFunction(functionKey: string): ResolverCallback; | ||
@@ -12,0 +12,0 @@ sanitizeObject(object: Record<string, any>): any; |
@@ -5,5 +5,5 @@ export class Resolver { | ||
} | ||
define(functionKey, cb) { | ||
if (!cb || typeof cb !== 'function') { | ||
throw new Error(`Resolver definition '${functionKey}' callback must be a 'function'. Received '${typeof cb}'.`); | ||
define(functionKey, callback) { | ||
if (!callback || typeof callback !== 'function') { | ||
throw new Error(`Resolver definition '${functionKey}' callback must be a 'function'. Received '${typeof callback}'.`); | ||
} | ||
@@ -13,3 +13,3 @@ if (functionKey in this.functions) { | ||
} | ||
this.functions[functionKey] = cb; | ||
this.functions[functionKey] = callback; | ||
return this; | ||
@@ -16,0 +16,0 @@ } |
{ | ||
"name": "@giteeteam/apps-api", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Giteeteam Apps API", | ||
@@ -16,10 +16,2 @@ "keywords": [ | ||
], | ||
"bugs": { | ||
"url": "https://github.com/moriahq/proxima/issues" | ||
}, | ||
"homepage": "https://github.com/moriahq/proxima/tree/develop/giteeteam/packages/giteeteam/packages/apps-api", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/moriahq/proxima.git" | ||
}, | ||
"scripts": { | ||
@@ -26,0 +18,0 @@ "copy-dts": "copyfiles -u 1 \"src/**/*.d.ts\" dist", |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
22095
23
587
1