mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-04 15:12:20 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
32
web/node_modules/immer/dist/utils/common.d.ts
generated
vendored
Normal file
32
web/node_modules/immer/dist/utils/common.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
import { Objectish, AnyObject, AnyMap, AnySet, ImmerState, Archtype } from "../internal";
|
||||
/** Returns true if the given value is an Immer draft */
|
||||
export declare function isDraft(value: any): boolean;
|
||||
/** Returns true if the given value can be drafted by Immer */
|
||||
export declare function isDraftable(value: any): boolean;
|
||||
export declare function isPlainObject(value: any): boolean;
|
||||
/** Get the underlying object that is represented by the given draft */
|
||||
export declare function original<T>(value: T): T | undefined;
|
||||
export declare const ownKeys: (target: AnyObject) => PropertyKey[];
|
||||
export declare const getOwnPropertyDescriptors: <T>(o: T) => { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & {
|
||||
[x: string]: PropertyDescriptor;
|
||||
};
|
||||
export declare function each<T extends Objectish>(obj: T, iter: (key: string | number, value: any, source: T) => void, enumerableOnly?: boolean): void;
|
||||
export declare function getArchtype(thing: any): Archtype;
|
||||
export declare function has(thing: any, prop: PropertyKey): boolean;
|
||||
export declare function get(thing: AnyMap | AnyObject, prop: PropertyKey): any;
|
||||
export declare function set(thing: any, propOrOldValue: PropertyKey, value: any): void;
|
||||
export declare function is(x: any, y: any): boolean;
|
||||
export declare function isMap(target: any): target is AnyMap;
|
||||
export declare function isSet(target: any): target is AnySet;
|
||||
export declare function latest(state: ImmerState): any;
|
||||
export declare function shallowCopy(base: any): any;
|
||||
/**
|
||||
* Freezes draftable objects. Returns the original object.
|
||||
* By default freezes shallowly, but if the second argument is `true` it will freeze recursively.
|
||||
*
|
||||
* @param obj
|
||||
* @param deep
|
||||
*/
|
||||
export declare function freeze<T>(obj: T, deep?: boolean): T;
|
||||
export declare function isFrozen(obj: any): boolean;
|
||||
//# sourceMappingURL=common.d.ts.map
|
1
web/node_modules/immer/dist/utils/common.d.ts.map
generated
vendored
Normal file
1
web/node_modules/immer/dist/utils/common.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/utils/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,SAAS,EAET,SAAS,EACT,MAAM,EACN,MAAM,EACN,UAAU,EAEV,QAAQ,EAER,MAAM,aAAa,CAAA;AAEpB,wDAAwD;AAExD,wBAAgB,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAE3C;AAED,8DAA8D;AAE9D,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAU/C;AAID,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAejD;AAED,uEAAuE;AAEvE,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAAA;AAOpD,eAAO,MAAM,OAAO,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,WAAW,EAQC,CAAA;AAEzD,eAAO,MAAM,yBAAyB;;CASpC,CAAA;AAEF,wBAAgB,IAAI,CAAC,CAAC,SAAS,SAAS,EACvC,GAAG,EAAE,CAAC,EACN,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,KAAK,IAAI,EAC3D,cAAc,CAAC,EAAE,OAAO,GACtB,IAAI,CAAA;AAYP,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,QAAQ,CAchD;AAGD,wBAAgB,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAI1D;AAGD,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,GAAG,CAGrE;AAGD,wBAAgB,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,QAOtE;AAGD,wBAAgB,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,GAAG,OAAO,CAO1C;AAGD,wBAAgB,KAAK,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,MAAM,CAEnD;AAGD,wBAAgB,KAAK,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,MAAM,CAEnD;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,GAAG,CAE7C;AAGD,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,OAwBpC;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,CAAC,CAAA;AAepD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAI1C"}
|
23
web/node_modules/immer/dist/utils/env.d.ts
generated
vendored
Normal file
23
web/node_modules/immer/dist/utils/env.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
export declare const hasMap: boolean;
|
||||
export declare const hasSet: boolean;
|
||||
export declare const hasProxies: boolean;
|
||||
/**
|
||||
* The sentinel value returned by producers to replace the draft with undefined.
|
||||
*/
|
||||
export declare const NOTHING: Nothing;
|
||||
/**
|
||||
* To let Immer treat your class instances as plain immutable objects
|
||||
* (albeit with a custom prototype), you must define either an instance property
|
||||
* or a static property on each of your custom classes.
|
||||
*
|
||||
* Otherwise, your class instance will never be drafted, which means it won't be
|
||||
* safe to mutate in a produce callback.
|
||||
*/
|
||||
export declare const DRAFTABLE: unique symbol;
|
||||
export declare const DRAFT_STATE: unique symbol;
|
||||
export declare const iteratorSymbol: typeof Symbol.iterator;
|
||||
/** Use a class type for `nothing` so its type is unique */
|
||||
export declare class Nothing {
|
||||
private _;
|
||||
}
|
||||
//# sourceMappingURL=env.d.ts.map
|
1
web/node_modules/immer/dist/utils/env.d.ts.map
generated
vendored
Normal file
1
web/node_modules/immer/dist/utils/env.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/utils/env.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,MAAM,SAA6B,CAAA;AAChD,eAAO,MAAM,MAAM,SAA6B,CAAA;AAChD,eAAO,MAAM,UAAU,SAGQ,CAAA;AAE/B;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,OAEe,CAAA;AAErC;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,EAAE,OAAO,MAEC,CAAA;AAEhC,eAAO,MAAM,WAAW,EAAE,OAAO,MAEL,CAAA;AAG5B,eAAO,MAAM,cAAc,EAAE,OAAO,MAAM,CAAC,QACgC,CAAA;AAE3E,2DAA2D;AAC3D,qBAAa,OAAO;IAGnB,OAAO,CAAC,CAAC,CAAgB;CACzB"}
|
29
web/node_modules/immer/dist/utils/errors.d.ts
generated
vendored
Normal file
29
web/node_modules/immer/dist/utils/errors.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
declare const errors: {
|
||||
readonly 0: "Illegal state";
|
||||
readonly 1: "Immer drafts cannot have computed properties";
|
||||
readonly 2: "This object has been frozen and should not be mutated";
|
||||
readonly 3: (data: any) => string;
|
||||
readonly 4: "An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.";
|
||||
readonly 5: "Immer forbids circular references";
|
||||
readonly 6: "The first or second argument to `produce` must be a function";
|
||||
readonly 7: "The third argument to `produce` must be a function or undefined";
|
||||
readonly 8: "First argument to `createDraft` must be a plain object, an array, or an immerable object";
|
||||
readonly 9: "First argument to `finishDraft` must be a draft returned by `createDraft`";
|
||||
readonly 10: "The given draft is already finalized";
|
||||
readonly 11: "Object.defineProperty() cannot be used on an Immer draft";
|
||||
readonly 12: "Object.setPrototypeOf() cannot be used on an Immer draft";
|
||||
readonly 13: "Immer only supports deleting array indices";
|
||||
readonly 14: "Immer only supports setting array indices and the 'length' property";
|
||||
readonly 15: (path: string) => string;
|
||||
readonly 16: "Sets cannot have \"replace\" patches.";
|
||||
readonly 17: (op: string) => string;
|
||||
readonly 18: (plugin: string) => string;
|
||||
readonly 20: "Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available";
|
||||
readonly 21: (thing: string) => string;
|
||||
readonly 22: (thing: string) => string;
|
||||
readonly 23: (thing: string) => string;
|
||||
readonly 24: "Patching reserved attributes like __proto__, prototype and constructor is not allowed";
|
||||
};
|
||||
export declare function die(error: keyof typeof errors, ...args: any[]): never;
|
||||
export {};
|
||||
//# sourceMappingURL=errors.d.ts.map
|
1
web/node_modules/immer/dist/utils/errors.d.ts.map
generated
vendored
Normal file
1
web/node_modules/immer/dist/utils/errors.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/utils/errors.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CA0CF,CAAA;AAEV,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,OAAO,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,KAAK,CAerE"}
|
62
web/node_modules/immer/dist/utils/plugins.d.ts
generated
vendored
Normal file
62
web/node_modules/immer/dist/utils/plugins.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,62 @@
|
|||
import { ImmerState, Patch, ImmerScope, Drafted, AnyObject, ImmerBaseState, AnyMap, AnySet, ProxyType } from "../internal";
|
||||
/** Plugin utilities */
|
||||
declare const plugins: {
|
||||
Patches?: {
|
||||
generatePatches_(state: ImmerState, basePath: PatchPath, patches: Patch[], inversePatches: Patch[]): void;
|
||||
generateReplacementPatches_(rootState: ImmerState, replacement: any, patches: Patch[], inversePatches: Patch[]): void;
|
||||
applyPatches_<T>(draft: T, patches: Patch[]): T;
|
||||
};
|
||||
ES5?: {
|
||||
willFinalizeES5_(scope: ImmerScope, result: any, isReplaced: boolean): void;
|
||||
createES5Proxy_<T>(base: T, parent?: ImmerState): Drafted<T, ES5ObjectState | ES5ArrayState>;
|
||||
hasChanges_(state: ES5ArrayState | ES5ObjectState): boolean;
|
||||
};
|
||||
MapSet?: {
|
||||
proxyMap_<T extends AnyMap>(target: T, parent?: ImmerState): T;
|
||||
proxySet_<T extends AnySet>(target: T, parent?: ImmerState): T;
|
||||
};
|
||||
};
|
||||
declare type Plugins = typeof plugins;
|
||||
export declare function getPlugin<K extends keyof Plugins>(pluginKey: K): Exclude<Plugins[K], undefined>;
|
||||
export declare function loadPlugin<K extends keyof Plugins>(pluginKey: K, implementation: Plugins[K]): void;
|
||||
/** ES5 Plugin */
|
||||
interface ES5BaseState extends ImmerBaseState {
|
||||
assigned_: {
|
||||
[key: string]: any;
|
||||
};
|
||||
parent_?: ImmerState;
|
||||
revoked_: boolean;
|
||||
}
|
||||
export interface ES5ObjectState extends ES5BaseState {
|
||||
type_: ProxyType.ES5Object;
|
||||
draft_: Drafted<AnyObject, ES5ObjectState>;
|
||||
base_: AnyObject;
|
||||
copy_: AnyObject | null;
|
||||
}
|
||||
export interface ES5ArrayState extends ES5BaseState {
|
||||
type_: ProxyType.ES5Array;
|
||||
draft_: Drafted<AnyObject, ES5ArrayState>;
|
||||
base_: any;
|
||||
copy_: any;
|
||||
}
|
||||
/** Map / Set plugin */
|
||||
export interface MapState extends ImmerBaseState {
|
||||
type_: ProxyType.Map;
|
||||
copy_: AnyMap | undefined;
|
||||
assigned_: Map<any, boolean> | undefined;
|
||||
base_: AnyMap;
|
||||
revoked_: boolean;
|
||||
draft_: Drafted<AnyMap, MapState>;
|
||||
}
|
||||
export interface SetState extends ImmerBaseState {
|
||||
type_: ProxyType.Set;
|
||||
copy_: AnySet | undefined;
|
||||
base_: AnySet;
|
||||
drafts_: Map<any, Drafted>;
|
||||
revoked_: boolean;
|
||||
draft_: Drafted<AnySet, SetState>;
|
||||
}
|
||||
/** Patches plugin */
|
||||
export declare type PatchPath = (string | number)[];
|
||||
export {};
|
||||
//# sourceMappingURL=plugins.d.ts.map
|
1
web/node_modules/immer/dist/utils/plugins.d.ts.map
generated
vendored
Normal file
1
web/node_modules/immer/dist/utils/plugins.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/utils/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,KAAK,EACL,UAAU,EACV,OAAO,EACP,SAAS,EACT,cAAc,EACd,MAAM,EACN,MAAM,EACN,SAAS,EAET,MAAM,aAAa,CAAA;AAEpB,uBAAuB;AACvB,QAAA,MAAM,OAAO,EAAE;IACd,OAAO,CAAC,EAAE;QACT,gBAAgB,CACf,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,SAAS,EACnB,OAAO,EAAE,KAAK,EAAE,EAChB,cAAc,EAAE,KAAK,EAAE,GACrB,IAAI,CAAA;QACP,2BAA2B,CAC1B,SAAS,EAAE,UAAU,EACrB,WAAW,EAAE,GAAG,EAChB,OAAO,EAAE,KAAK,EAAE,EAChB,cAAc,EAAE,KAAK,EAAE,GACrB,IAAI,CAAA;QACP,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,CAAA;KAC/C,CAAA;IACD,GAAG,CAAC,EAAE;QACL,gBAAgB,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI,CAAA;QAC3E,eAAe,CAAC,CAAC,EAChB,IAAI,EAAE,CAAC,EACP,MAAM,CAAC,EAAE,UAAU,GACjB,OAAO,CAAC,CAAC,EAAE,cAAc,GAAG,aAAa,CAAC,CAAA;QAC7C,WAAW,CAAC,KAAK,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