@qn-pandora/app-sdk
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -1,2 +0,1 @@ | ||
import { IKeyValues } from '../../models'; | ||
export declare const Max_Log_Length = 5000; | ||
@@ -3,0 +2,0 @@ export declare enum JobStatus { |
@@ -1,2 +0,2 @@ | ||
export * from './manager/SearchManager'; | ||
export * from './manager/LoginManager'; | ||
export { SearchManager, EEventName } from './managers/SearchManager'; | ||
export { LoginManager, ELoginType } from './managers/LoginManager'; |
@@ -1,4 +0,1 @@ | ||
export interface IKeyValues<T = any> { | ||
[key: string]: T; | ||
} | ||
export declare const enum OrderType { | ||
@@ -5,0 +2,0 @@ Ascend = "ascend", |
@@ -1,2 +0,6 @@ | ||
export default function bind(target: any, properykey: string, decscriptor: PropertyDescriptor): { | ||
/** | ||
* bind 装饰器,用于将装饰的函数绑定 this 指针 | ||
* WARNING:bind装饰过的函数在被重载时,不可在重载函数中调用父集的当前函数,会导致父集的当前函数this指针异常 | ||
*/ | ||
export default function bind(_: any, properykey: string, decscriptor: PropertyDescriptor): { | ||
configurable: boolean; | ||
@@ -3,0 +7,0 @@ get(): any; |
@@ -0,1 +1,6 @@ | ||
export declare class ResponseError extends Error { | ||
status: number; | ||
body: any; | ||
constructor(status: number, body: any); | ||
} | ||
export interface IExtraOptions { | ||
@@ -2,0 +7,0 @@ includeCredentials?: boolean; |
@@ -1,3 +0,2 @@ | ||
import { IKeyValues } from '../models'; | ||
export declare function formatURL(url: string, params?: IKeyValues | null): string; | ||
export declare function formatURL(url: string, params?: IKeyValues): string; | ||
export declare function parseSearch(search: string): any; |
{ | ||
"name": "@qn-pandora/app-sdk", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Pandora APP 核心渲染逻辑 SDK", | ||
@@ -61,4 +61,3 @@ "author": "pandora <pandora@qiniu.com>", | ||
"webpack-node-externals": "^1.7.2" | ||
}, | ||
"gitHead": "fd2924e631ab6bd511f1a678890166d5709ca8e1" | ||
} | ||
} |
@@ -148,5 +148,5 @@ # `@qn-pandora/app-sdk` | ||
```js | ||
import { LoginManager, LoginType } from '@qn-pandora/app-sdk' | ||
import { LoginManager, ELoginType } from '@qn-pandora/app-sdk' | ||
const loginManager = new LoginManager(LoginType.Pandora) | ||
const loginManager = new LoginManager(ELoginType.PANDORA) | ||
loginManager.login({ | ||
@@ -161,5 +161,5 @@ username: 'admin', | ||
```js | ||
import { LoginManager, LoginType } from '@qn-pandora/app-sdk' | ||
import { LoginManager, ELoginType } from '@qn-pandora/app-sdk' | ||
const loginManager = new LoginManager(LoginType.SSO) | ||
const loginManager = new LoginManager(ELoginType.SSO) | ||
loginManager.login({ | ||
@@ -166,0 +166,0 @@ token: |
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
195329
727
1