@hazae41/glacier
Advanced tools
Comparing version 2.1.0 to 2.1.1
import * as index from './mods/index.js'; | ||
export { index as Glacier }; | ||
export { AsyncBicoder, AsyncEncoder, AsyncJson, AsyncPipeBicoder, AsyncPipeEncoder, Bicoder, Encoder, SyncBicoder, SyncEncoder, SyncIdentity, SyncJson, SyncPipeBicoder, SyncPipeEncoder } from './mods/coders/coder.js'; | ||
export { AesGcmCoder } from './mods/coders/crypto/aes/gcm.js'; | ||
export { AsyncBicoder, AsyncEncoder, AsyncPipeBicoder, AsyncPipeEncoder, Bicoder, Encoder, Identity, Jsoned, SyncBicoder, SyncEncoder, SyncPipeBicoder, SyncPipeEncoder } from './mods/coders/coder.js'; | ||
export { AesGcmBicoder } from './mods/coders/crypto/aes/gcm.js'; | ||
export { HmacEncoder } from './mods/coders/crypto/hmac/hmac.js'; | ||
export { AsyncStorageError, CooldownError, Core, MissingFetcherError, MissingKeyError, TimeoutError, core } from './mods/core/core.js'; | ||
export { DEFAULT_EQUALS, DEFAULT_SERIALIZER } from './mods/defaults.js'; | ||
export { Equals, Equalser } from './mods/equals/equals.js'; | ||
export { Equalsable } from './mods/equals/equals.js'; | ||
export { Data, DataInit } from './mods/fetched/data.js'; | ||
@@ -10,0 +9,0 @@ export { Fail, FailInit } from './mods/fetched/fail.js'; |
@@ -17,14 +17,10 @@ type Encoder<I, O> = SyncEncoder<I, O> | AsyncEncoder<I, O>; | ||
} | ||
declare namespace SyncIdentity { | ||
declare namespace Identity { | ||
function encodeOrThrow<T>(value: T): T; | ||
function decodeOrThrow<T>(value: T): T; | ||
} | ||
declare namespace SyncJson { | ||
declare namespace Jsoned { | ||
function encodeOrThrow<T>(value: T): string; | ||
function decodeOrThrow<T>(value: string): T; | ||
} | ||
declare namespace AsyncJson { | ||
function encodeOrThrow<T>(value: T): Promise<string>; | ||
function decodeOrThrow<T>(value: string): Promise<T>; | ||
} | ||
declare class AsyncPipeBicoder<I, X, O> implements AsyncBicoder<I, O> { | ||
@@ -57,2 +53,2 @@ readonly outer: AsyncBicoder<I, X>; | ||
export { type AsyncBicoder, type AsyncEncoder, AsyncJson, AsyncPipeBicoder, AsyncPipeEncoder, type Bicoder, type Encoder, type SyncBicoder, type SyncEncoder, SyncIdentity, SyncJson, SyncPipeBicoder, SyncPipeEncoder }; | ||
export { type AsyncBicoder, type AsyncEncoder, AsyncPipeBicoder, AsyncPipeEncoder, type Bicoder, type Encoder, Identity, Jsoned, type SyncBicoder, type SyncEncoder, SyncPipeBicoder, SyncPipeEncoder }; |
import { AsyncBicoder } from '../../coder.js'; | ||
declare class AesGcmCoder implements AsyncBicoder<string, string> { | ||
declare class AesGcmBicoder implements AsyncBicoder<string, string> { | ||
readonly key: CryptoKey; | ||
@@ -12,2 +12,2 @@ constructor(key: CryptoKey); | ||
export { AesGcmCoder }; | ||
export { AesGcmBicoder }; |
@@ -1,10 +0,8 @@ | ||
import { Nullable } from '@hazae41/option'; | ||
type Equalser<T> = (a: T, b: T) => Nullable<boolean>; | ||
declare namespace Equals { | ||
function ref(a: unknown, b: unknown): boolean; | ||
function json(a: unknown, b: unknown): boolean | undefined; | ||
function shallow(a?: unknown, b?: unknown): boolean; | ||
interface Equalsable { | ||
equals(other: unknown): boolean; | ||
} | ||
declare namespace Equalsable { | ||
function equals(a: unknown, b: unknown): boolean; | ||
} | ||
export { Equals, type Equalser }; | ||
export { Equalsable }; |
@@ -1,7 +0,6 @@ | ||
export { AsyncBicoder, AsyncEncoder, AsyncJson, AsyncPipeBicoder, AsyncPipeEncoder, Bicoder, Encoder, SyncBicoder, SyncEncoder, SyncIdentity, SyncJson, SyncPipeBicoder, SyncPipeEncoder } from './coders/coder.js'; | ||
export { AesGcmCoder } from './coders/crypto/aes/gcm.js'; | ||
export { AsyncBicoder, AsyncEncoder, AsyncPipeBicoder, AsyncPipeEncoder, Bicoder, Encoder, Identity, Jsoned, SyncBicoder, SyncEncoder, SyncPipeBicoder, SyncPipeEncoder } from './coders/coder.js'; | ||
export { AesGcmBicoder } from './coders/crypto/aes/gcm.js'; | ||
export { HmacEncoder } from './coders/crypto/hmac/hmac.js'; | ||
export { AsyncStorageError, CooldownError, Core, MissingFetcherError, MissingKeyError, TimeoutError, core } from './core/core.js'; | ||
export { DEFAULT_EQUALS, DEFAULT_SERIALIZER } from './defaults.js'; | ||
export { Equals, Equalser } from './equals/equals.js'; | ||
export { Equalsable } from './equals/equals.js'; | ||
export { Data, DataInit } from './fetched/data.js'; | ||
@@ -8,0 +7,0 @@ export { Fail, FailInit } from './fetched/fail.js'; |
import { Nullable } from '@hazae41/option'; | ||
import { Fallback } from '@hazae41/result'; | ||
import { SyncEncoder, Bicoder } from '../../coders/coder.js'; | ||
import { Equalser } from '../../equals/equals.js'; | ||
import { Data } from '../../fetched/data.js'; | ||
@@ -24,7 +22,2 @@ import { Fail } from '../../fetched/fail.js'; | ||
readonly indexer?: Indexer<D, F>; | ||
readonly keySerializer?: SyncEncoder<K, string>; | ||
readonly dataSerializer?: Bicoder<D, unknown>; | ||
readonly errorSerializer?: Bicoder<F, unknown>; | ||
readonly dataEqualser?: Equalser<D>; | ||
readonly errorEqualser?: Equalser<F>; | ||
readonly storage?: QueryStorage; | ||
@@ -31,0 +24,0 @@ readonly cacheKey?: string; |
@@ -1,3 +0,1 @@ | ||
import { Bicoder, SyncEncoder } from '../coders/coder.js'; | ||
import { Equalser } from '../equals/equals.js'; | ||
import { QueryStorage } from '../storages/storage.js'; | ||
@@ -22,6 +20,2 @@ import { Normalizer } from './normalizer.js'; | ||
readonly indexer?: Indexer<D, F>; | ||
readonly dataSerializer?: Bicoder<D, unknown>; | ||
readonly errorSerializer?: Bicoder<F, unknown>; | ||
readonly dataEqualser?: Equalser<D>; | ||
readonly errorEqualser?: Equalser<F>; | ||
readonly storage?: QueryStorage; | ||
@@ -40,7 +34,2 @@ } | ||
readonly indexer?: Indexer<D, F>; | ||
readonly keySerializer?: SyncEncoder<K, string>; | ||
readonly dataSerializer?: Bicoder<D, unknown>; | ||
readonly errorSerializer?: Bicoder<F, unknown>; | ||
readonly dataEqualser?: Equalser<D>; | ||
readonly errorEqualser?: Equalser<F>; | ||
readonly storage?: QueryStorage; | ||
@@ -59,7 +48,2 @@ } | ||
readonly indexer?: Indexer<D, F>; | ||
readonly keySerializer?: SyncEncoder<K, string>; | ||
readonly dataSerializer?: Bicoder<D, unknown>; | ||
readonly errorSerializer?: Bicoder<F, unknown>; | ||
readonly dataEqualser?: Equalser<D>; | ||
readonly errorEqualser?: Equalser<F>; | ||
readonly storage?: QueryStorage; | ||
@@ -66,0 +50,0 @@ } |
{ | ||
"type": "module", | ||
"name": "@hazae41/glacier", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": "hazae41", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
630242
186
6190