@liff/util
Advanced tools
Comparing version 2.21.4 to 2.22.0
import { UNAUTHORIZED, INVALID_ARGUMENT, INIT_FAILED, FORBIDDEN, INVALID_CONFIG, INVALID_ID_TOKEN, CREATE_SUBWINDOW_FAILED, EXCEPTION_IN_SUBWINDOW } from '@liff/consts'; | ||
declare const HTTPStatusCodeArray: string[]; | ||
export declare const HTTPStatusCodes: Set<string>; | ||
declare type PublicErrorCode = typeof HTTPStatusCodeArray[number] | typeof FORBIDDEN | typeof INVALID_CONFIG | typeof INVALID_ID_TOKEN | typeof UNAUTHORIZED | typeof INVALID_ARGUMENT | typeof INIT_FAILED | 'THINGS_NO_LINKED_DEVICES' | 'BLUETOOTH_SETTING_OFF' | 'THINGS_TERMS_NOT_AGREED' | 'BLUETOOTH_NO_LOCATION_PERMISSION' | 'BLUETOOTH_LOCATION_DISABLED' | 'BLUETOOTH_LE_API_UNAVAILABLE' | 'BLUETOOTH_CONNECT_FAILED' | 'BLUETOOTH_ALREADY_CONNECTED' | 'BLUETOOTH_CONNECTION_LOST' | 'BLUETOOTH_UNSUPPORTED_OPERATION' | 'BLUETOOTH_SERVICE_NOT_FOUND' | 'BLUETOOTH_CHARACTERISTIC_NOT_FOUND' | 'UNKNOWN'; | ||
declare type InternalErrorCode = typeof CREATE_SUBWINDOW_FAILED | typeof EXCEPTION_IN_SUBWINDOW; | ||
declare type AdErrorValue = 'ADS_APP_ID_NOT_SET' | 'ADS_FREQUENT_LOAD' | 'ADS_ALREADY_LOADED' | 'ADS_NO_FILL' | 'ADS_NOT_LOADED' | 'ADS_ADNETWORK_NOT_SUPPORTED' | 'CLIENT_UNSUPPORTED_OPERATION' | 'NETWORK_FAILURE' | 'INVALID_MESSAGE' | 'INVALID_ARGUMENTS' | 'INTERNAL_ERROR'; | ||
declare type UnpublishedErrorCode = 'LIFF.STATE_INVALID' | AdErrorValue; | ||
export declare type ErrorCode = PublicErrorCode | InternalErrorCode | UnpublishedErrorCode; | ||
type PublicErrorCode = typeof HTTPStatusCodeArray[number] | typeof FORBIDDEN | typeof INVALID_CONFIG | typeof INVALID_ID_TOKEN | typeof UNAUTHORIZED | typeof INVALID_ARGUMENT | typeof INIT_FAILED | 'THINGS_NO_LINKED_DEVICES' | 'BLUETOOTH_SETTING_OFF' | 'THINGS_TERMS_NOT_AGREED' | 'BLUETOOTH_NO_LOCATION_PERMISSION' | 'BLUETOOTH_LOCATION_DISABLED' | 'BLUETOOTH_LE_API_UNAVAILABLE' | 'BLUETOOTH_CONNECT_FAILED' | 'BLUETOOTH_ALREADY_CONNECTED' | 'BLUETOOTH_CONNECTION_LOST' | 'BLUETOOTH_UNSUPPORTED_OPERATION' | 'BLUETOOTH_SERVICE_NOT_FOUND' | 'BLUETOOTH_CHARACTERISTIC_NOT_FOUND' | 'UNKNOWN'; | ||
type InternalErrorCode = typeof CREATE_SUBWINDOW_FAILED | typeof EXCEPTION_IN_SUBWINDOW; | ||
type AdErrorValue = 'ADS_APP_ID_NOT_SET' | 'ADS_FREQUENT_LOAD' | 'ADS_ALREADY_LOADED' | 'ADS_NO_FILL' | 'ADS_NOT_LOADED' | 'ADS_ADNETWORK_NOT_SUPPORTED' | 'CLIENT_UNSUPPORTED_OPERATION' | 'NETWORK_FAILURE' | 'INVALID_MESSAGE' | 'INVALID_ARGUMENTS' | 'INTERNAL_ERROR'; | ||
type UnpublishedErrorCode = 'LIFF.STATE_INVALID' | AdErrorValue; | ||
export type ErrorCode = PublicErrorCode | InternalErrorCode | UnpublishedErrorCode; | ||
export declare class LiffError extends Error { | ||
@@ -10,0 +10,0 @@ code: string | number; |
@@ -1,7 +0,7 @@ | ||
declare type Value = undefined | string; | ||
export declare type Query = Record<string, Value | Value[]>; | ||
type Value = undefined | string; | ||
export type Query = Record<string, Value | Value[]>; | ||
declare function parse(search: string): Query; | ||
declare type CanBeEncoded = Parameters<typeof encodeURIComponent>[0] | undefined; | ||
declare type StringifiableValue = CanBeEncoded | CanBeEncoded[]; | ||
declare type ParsedUrlQuery = Record<string, StringifiableValue>; | ||
type CanBeEncoded = Parameters<typeof encodeURIComponent>[0] | undefined; | ||
type StringifiableValue = CanBeEncoded | CanBeEncoded[]; | ||
type ParsedUrlQuery = Record<string, StringifiableValue>; | ||
declare function stringify(query: ParsedUrlQuery): string; | ||
@@ -8,0 +8,0 @@ export declare const qs: { |
@@ -1,4 +0,4 @@ | ||
export declare type ElementType<T extends ReadonlyArray<unknown>> = T extends ReadonlyArray<infer ElementType> ? ElementType : never; | ||
export declare type DeepPartial<T> = { | ||
export type ElementType<T extends ReadonlyArray<unknown>> = T extends ReadonlyArray<infer ElementType> ? ElementType : never; | ||
export type DeepPartial<T> = { | ||
[P in keyof T]?: DeepPartial<T[P]>; | ||
}; |
{ | ||
"name": "@liff/util", | ||
"version": "2.21.4", | ||
"version": "2.22.0", | ||
"description": "@liff/util", | ||
@@ -31,9 +31,8 @@ "license": "SEE LICENSE IN README.md", | ||
"dependencies": { | ||
"@liff/consts": "2.21.4", | ||
"@liff/logger": "2.21.4" | ||
"@liff/consts": "2.22.0", | ||
"@liff/logger": "2.22.0" | ||
}, | ||
"peerDependencies": { | ||
"tslib": "^2.3.0" | ||
}, | ||
"gitHead": "af2b35a241fa715f3aa1ce484f011c9da9524e12" | ||
} | ||
} |
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
18462
+ Added@liff/consts@2.22.0(transitive)
+ Added@liff/logger@2.22.0(transitive)
- Removed@liff/consts@2.21.4(transitive)
- Removed@liff/logger@2.21.4(transitive)
Updated@liff/consts@2.22.0
Updated@liff/logger@2.22.0