@pinnacle0/web-ui 0.5.12 → 0.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinnacle0/web-ui",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "author": "Pinnacle",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
@@ -1,9 +0,0 @@
1
- type AnyFunctionDecorator = (target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => any>) => TypedPropertyDescriptor<(...args: any[]) => any>;
2
- /**
3
- * For pure functions:
4
- *
5
- * Memoize the last computed result, and return the same value if given the same input.
6
- * Input equality is based on JSON.stringify.
7
- */
8
- export declare function Memo(): AnyFunctionDecorator;
9
- export {};
package/internal/Memo.js DELETED
@@ -1,31 +0,0 @@
1
- /**
2
- * For pure functions:
3
- *
4
- * Memoize the last computed result, and return the same value if given the same input.
5
- * Input equality is based on JSON.stringify.
6
- */
7
- export function Memo() {
8
- return function (target, propertyKey, descriptor) {
9
- /**
10
- * For latest decorator spec, there is only one "target" parameter, which has "descriptor" property.
11
- * https://tc39.github.io/proposal-decorators/#sec-decorator-functions-element-descriptor
12
- * https://github.com/tc39/proposal-decorators/blob/master/METAPROGRAMMING.md
13
- */
14
- var realDescriptor = descriptor || target.descriptor;
15
- var fn = realDescriptor.value;
16
- var cache = {};
17
- realDescriptor.value = function () {
18
- var args = [];
19
- for (var _i = 0; _i < arguments.length; _i++) {
20
- args[_i] = arguments[_i];
21
- }
22
- var paramKey = args.length ? JSON.stringify(args) : "";
23
- if (!cache[paramKey]) {
24
- cache[paramKey] = fn.apply(this, args);
25
- }
26
- return cache[paramKey];
27
- };
28
- return descriptor || target;
29
- };
30
- }
31
- //# sourceMappingURL=Memo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Memo.js","sourceRoot":"","sources":["../../src/internal/Memo.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,IAAI;IAChB,OAAO,UAAC,MAAM,EAAE,WAAW,EAAE,UAAU;QACnC;;;;WAIG;QACH,IAAM,cAAc,GAAG,UAAU,IAAK,MAAc,CAAC,UAAU,CAAC;QAChE,IAAM,EAAE,GAAG,cAAc,CAAC,KAAM,CAAC;QACjC,IAAM,KAAK,GAAwB,EAAE,CAAC;QACtC,cAAc,CAAC,KAAK,GAAG;YAAU,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,yBAAc;;YAC3C,IAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACzD,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;gBAClB,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;aAC1C;YACD,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC3B,CAAC,CAAC;QACF,OAAO,UAAU,IAAI,MAAM,CAAC;IAChC,CAAC,CAAC;AACN,CAAC"}