@balena/open-balena-api 29.1.5-build-renovate-major-5-chai-17e75b4d23115ddc30f336a2dcbd91e3284504c5-1 → 30.0.0-build-multi-level-store-de079c541a7f68655f7d501ff625cb57cddce510-1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/features/api-keys/lib.js +1 -1
- package/dist/features/api-keys/lib.js.map +1 -1
- package/dist/features/device-logs/lib/store.js +1 -1
- package/dist/features/device-logs/lib/store.js.map +1 -1
- package/dist/features/device-provisioning/gracefully-deny-conflicting-registrations.js +2 -1
- package/dist/features/device-provisioning/gracefully-deny-conflicting-registrations.js.map +1 -1
- package/dist/features/device-state/middleware.js +1 -1
- package/dist/features/device-state/middleware.js.map +1 -1
- package/dist/features/device-state/state-get-utils.js +5 -2
- package/dist/features/device-state/state-get-utils.js.map +1 -1
- package/dist/features/device-state/state-patch-utils.js +7 -3
- package/dist/features/device-state/state-patch-utils.js.map +1 -1
- package/dist/features/device-types/build-info-facade.js +3 -3
- package/dist/features/device-types/build-info-facade.js.map +1 -1
- package/dist/features/device-types/device-types-list.js +5 -2
- package/dist/features/device-types/device-types-list.js.map +1 -1
- package/dist/features/registry/registry.js +4 -4
- package/dist/features/registry/registry.js.map +1 -1
- package/dist/features/vpn/services.js +1 -1
- package/dist/features/vpn/services.js.map +1 -1
- package/dist/infra/cache/multi-level-memoizee.d.ts +7 -26
- package/dist/infra/cache/multi-level-memoizee.js +5 -8
- package/dist/infra/cache/multi-level-memoizee.js.map +1 -1
- package/dist/infra/cache/multi-level-store.d.ts +8 -8
- package/dist/infra/cache/multi-level-store.js +2 -11
- package/dist/infra/cache/multi-level-store.js.map +1 -1
- package/package.json +3 -3
@@ -200,7 +200,7 @@ export const isApiKeyWithRole = (() => {
|
|
200
200
|
primitive: true,
|
201
201
|
maxAge: API_KEY_ROLE_CACHE_TIMEOUT,
|
202
202
|
normalizer: ([key, roleName]) => `${roleName}$${key}`,
|
203
|
-
});
|
203
|
+
}, { useVersion: false });
|
204
204
|
})();
|
205
205
|
/**
|
206
206
|
* Temporarily augments the request's api key with the specified permissions.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../../src/features/api-keys/lib.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,CAAC,MAAM,QAAQ,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAC1B,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;AAiBnC,MAAM,aAAa,GAAG,KAAK,EAC1B,SAAsB,EACtB,QAAgB,EAChB,GAAY,EACZ,WAAmB,EACnB,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAyB,EAClD,EAAE;IACpB,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;QACrC,QAAQ,EAAE,SAAS;QACnB,EAAE,EAAE,WAAW;QACf,WAAW,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;QACxB,OAAO,EAAE;YACR,OAAO,EAAE,OAAO;SAChB;KACD,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC;IACtC,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,MAAM,SAAS,sCAAsC,CAAC,CAAC;IACxE,CAAC;IAED,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC;QACnC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AC7C,2DAA2D;QAC3D,0DAA0D;QAC1D,4DAA4D;QAC5D,YAAY,CAAC,MAAM,CAAC,WAAW,GAAG,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACxE,CAAC;IAED,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAC;IAC5D,OAAO,YAAY,CAAC;AACrB,CAAC,CAAC"}
|
@@ -42,7 +42,7 @@ const getWriteContext = (() => {
|
|
42
42
|
normalizer: ([uuid, req]) => {
|
43
43
|
return `${uuid}$${reqPermissionNormalizer(req)}`;
|
44
44
|
},
|
45
|
-
});
|
45
|
+
}, { useVersion: false });
|
46
46
|
return async (req) => {
|
47
47
|
const { uuid } = req.params;
|
48
48
|
const maybeLogContext = await $getWriteContext(uuid, req);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/store.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,YAAY,EACZ,mBAAmB,GACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EACN,oCAAoC,EACpC,uCAAuC,EACvC,0BAA0B,EAC1B,uBAAuB,EACvB,YAAY,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GACvB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,EACL,iBAA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EAAE,CAAC;QAClD,CAAC;KACD,
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/store.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,YAAY,EACZ,mBAAmB,GACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EACN,oCAAoC,EACpC,uCAAuC,EACvC,0BAA0B,EAC1B,uBAAuB,EACvB,YAAY,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GACvB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,EACL,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,GACzB,GAAG,MAAM,CAAC;AACX,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;AAEpC,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE;IAC7B,MAAM,gBAAgB,GAAG,kBAAkB,CAC1C,KAAK,EACJ,IAAY,EACZ,GAA8B,EACA,EAAE;QAChC,OAAO,MAAM,SAAS,CAAC,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE;YACtD,IAAI,CAAC;gBACJ,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC;oBACtC,MAAM,EAAE,MAAM;oBACd,sFAAsF;oBACtF,GAAG,EAAE,u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AAG,EAAE,MAAM,CAAC,CAAC;gBAC5D,mBAAmB;gBACnB,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;gBAClB,gDAAgD;gBAChD,IAAI,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;oBACpB,GAAG,CAAC,MAAM,EAAE,CAAC;gBACd,CAAC;gBACD,kCAAkC;gBAClC,MAAM,cAAc,CAAC;YACtB,CAAC;YACD,gBAAgB,GAAG,KAAK,CAAC;YAEzB,wEAAwE;YACxE,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACvB,QAAQ,EAAE,CAAC;YACZ,CAAC;QACF,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACd,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QAClC,CAAC;IACF,CAAC;IACD,SAAS,QAAQ;QAChB,IAAI,gBAAgB,KAAK,KAAK,EAAE,CAAC;YAChC,OAAO;QACR,CAAC;QACD,8DAA8D;QAC9D,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS;YAC9B,CAAC,CAAC,0BAA0B;YAC5B,CAAC,CAAC,uCAAuC,CAAC;QAC3C,UAAU,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QAC9B,gBAAgB,GAAG,IAAI,CAAC;IACzB,CAAC;AACF,CAAC"}
|
@@ -26,7 +26,8 @@ export const checkApiKeyExistsStore = createMultiLevelStore('checkApiKeyExists',
|
|
26
26
|
ttl: API_KEY_EXISTS_CACHE_TIMEOUT / SECONDS,
|
27
27
|
},
|
28
28
|
local: false,
|
29
|
-
|
29
|
+
useVersion: false,
|
30
|
+
});
|
30
31
|
const checkApiKeyExists = async (key) => {
|
31
32
|
return await checkApiKeyExistsStore.wrap(key, async () => {
|
32
33
|
const apiKey = await checkApiKeyExistsQuery()({ key });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"gracefully-deny-conflicting-registrations.js","sourceRoot":"","sources":["../../../src/features/device-provisioning/gracefully-deny-conflicting-registrations.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;AACjC,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC1C,GAAG,CAAC,KAAK,CAAC,OAAO,CAChB;IACC,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,EAAE,GAAG,EAAE,WAAW,CAAC,IAAI,EAAE;IACtC,EAAE,EAAE;QACH,GAAG,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE;KACnB;IACD,OAAO,EAAE;QACR,OAAO,EAAE,IAAI;KACb;CACQ,EACV,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CACnB,CACD,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,qBAAqB,CAC1D,mBAAmB,EACnB;IACC,OAAO,EAAE;QACR,yDAAyD;QACzD,6CAA6C;QAC7C,gBAAgB,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI;QAChD,iGAAiG;QACjG,+BAA+B;QAC/B,GAAG,EAAE,4BAA4B,GAAG,OAAO;KAC3C;IACD,KAAK,EAAE,KAAK;
|
1
|
+
{"version":3,"file":"gracefully-deny-conflicting-registrations.js","sourceRoot":"","sources":["../../../src/features/device-provisioning/gracefully-deny-conflicting-registrations.ts"],"names":[],"mappings":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AE,KAAK,IAAI,EAAE;QACxD,MAAM,MAAM,GAAG,MAAM,sBAAsB,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;QACvD,OAAO,MAAM,IAAI,IAAI,CAAC;IACvB,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,sCAAsC,CAC3D,IAAY,EACZ,MAA0B;IAE1B,wGAAwG;IACxG,uGAAuG;IACvG,wDAAwD;IACxD,MAAM,MAAM,GAAG,MAAM,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACrD,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;QACpB,8DAA8D;QAC9D,2CAA2C;QAC3C,MAAM,IAAI,aAAa,CAAC,wBAAwB,CAAC,CAAC;IACnD,CAAC;IAED,MAAM,cAAc,GAAG,MAAM,IAAI,IAAI,IAAI,CAAC,MAAM,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3E,IAAI,cAAc,EAAE,CAAC;QACpB,8DAA8D;QAC9D,2CAA2C;QAC3C,MAAM,IAAI,aAAa,CAAC,uBAAuB,CAAC,CAAC;IAClD,CAAC;AACF,CAAC"}
|
@@ -21,7 +21,7 @@ export const checkDeviceExistsIsFrozen = multiCacheMemoizee(async (uuid) => {
|
|
21
21
|
primitive: true,
|
22
22
|
undefinedAs: false,
|
23
23
|
maxAge: DEVICE_EXISTS_CACHE_TIMEOUT,
|
24
|
-
});
|
24
|
+
}, { useVersion: false });
|
25
25
|
const requestParamsUuidResolver = (req) => [req.params.uuid];
|
26
26
|
/**
|
27
27
|
* This checks if a device is deleted or frozen and responds according to the passed statusCode(s)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/features/device-state/middleware.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,OAA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K,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;YACnB,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,GAAG,EAAE,CAAC;YACpC,OAAO;QACR,CAAC;QACD,MAAM,SAAS,GAAa,EAAE,CAAC;QAC/B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YAC1B,MAAM,MAAM,GAAG,MAAM,yBAAyB,CAAC,IAAI,CAAC,CAAC;YACrD,6DAA6D;YAC7D,6DAA6D;YAC7D,8DAA8D;YAC9D,eAAe;YACf,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;gBACpB,kCAAkC;gBAClC,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,GAAG,EAAE,CAAC;gBACpC,OAAO;YACR,CAAC;YACD,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;gBACtB,iCAAiC;gBACjC,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,GAAG,EAAE,CAAC;gBACnC,OAAO;YACR,CAAC;YACD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC;QACD,GAAG,CAAC,MAAM,KAAK,EAAE,CAAC;QACjB,GAAG,CAAC,MAAwC,CAAC,iBAAiB,GAAG,SAAS,CAAC;QAC5E,IAAI,EAAE,CAAC;IACR,CAAC,CAAC;AACH,CAAC,CAAC"}
|
@@ -78,8 +78,11 @@ export const ConfigurationVarsToLabels = {
|
|
78
78
|
};
|
79
79
|
export const getStateDelayingEmpty = (() => {
|
80
80
|
const lastFailedDeviceStateTime = createMultiLevelStore('lastFailedDeviceStateTime', {
|
81
|
-
|
82
|
-
|
81
|
+
default: {
|
82
|
+
ttl: EMPTY_DEVICE_STATE_GET_DELAY_SECONDS,
|
83
|
+
},
|
84
|
+
useVersion: false,
|
85
|
+
});
|
83
86
|
const EMPTY_DEVICE_STATE_GET_DELAY = EMPTY_DEVICE_STATE_GET_DELAY_SECONDS * 1000;
|
84
87
|
/**
|
85
88
|
* This runs the provided getStateFn and returns the result, with a timeout before repeating the
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state-get-utils.js","sourceRoot":"","sources":["../../../src/features/device-state/state-get-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACN,gCAAgC,EAChC,oCAAoC,GACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,qBAAqB,EACrB,uBAAuB,GACvB,MAAM,4BAA4B,CAAC;AAGpC,MAAM,CAAC,MAAM,6BAA6B,GAEtC,EAAE,CAAC;AAEP,MAAM,wBAAwB,GAAgD;IAC7E,SAAS,kBAAkB,CAAC,MAAM;QACjC,MAAM,YAAY,GACjB,MAAM,CAAC,8BAA8B,IAAI,IAAI;YAC5C,CAAC,CAAC,CAAC;YACH,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,8BAA8B,EAAE,EAAE,CAAC,CAAC;QACxD,sEAAsE;QACtE,MAAM,CAAC,8BAA8B;YACpC,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,gCAAgC,CAAC,CAAC;IAChE,CAAC;CACD,CAAC;AACF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACzC,EAA6C,EAC5C,EAAE;IACH,wBAAwB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnC,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAA0B,EAAQ,EAAE;IAC7E,KAAK,MAAM,EAAE,IAAI,wBAAwB,EAAE,CAAC;QAC3C,EAAE,CAAC,MAAM,CAAC,CAAC;IACZ,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CACxB,MAOY,EACZ,WAAW,GAAG,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC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,IAAsD,EACxD,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC;AAC3C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CACjC,kBAAwD,EACvD,EAAE;IACH,gBAAgB,GAAG,kBAAkB,CAAC;AACvC,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,eAAe,GAAyC,CACpE,GAAG,IAAsD,EACxD,EAAE,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC;AAE/B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE,CAC9C,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAGlC,MAAM,CAAC,MAAM,aAAa,GAAG,CAC5B,OAAmB,EACnB,GAAuB,EACvB,WAAsC,GAAG,EAAE,CAAC,IAAI,EAC/C,EAAE;IACH,KAAK,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,OAAO,EAAE,CAAC;QACvC,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACpB,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;QACnB,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,wFAAwF;AACxF,kDAAkD;AAClD,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC,gCAAgC,EAAE,0BAA0B;IAC5D,iCAAiC,EAAE,kCAAkC;CACrE,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAG,EAAE;IAC1C,MAAM,yBAAyB,GAAG,qBAAqB,CACtD,2BAA2B,EAC3B;QACC,GAAG,EAAE,oCAAoC;
|
1
|
+
{"version":3,"file":"state-get-utils.js","sourceRoot":"","sources":["../../../src/features/device-state/state-get-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACN,gCAAgC,EAChC,oCAAoC,GACp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,MAAM,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YAC3C,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;gBACpB,mEAAmE;gBACnE,MAAM,yBAAyB,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;gBACrD,kDAAkD;gBAClD,MAAM,IAAI,MAAM,CAAC,iBAAiB,EAAE,CAAC;YACtC,CAAC;YAED,OAAO,MAAM,CAAC;QACf,CAAC;QACD,MAAM,IAAI,MAAM,CAAC,iBAAiB,EAAE,CAAC;IACtC,CAAC,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC"}
|
@@ -72,8 +72,11 @@ export function limitMetricNumbers(body) {
|
|
72
72
|
}
|
73
73
|
export const shouldUpdateMetrics = (() => {
|
74
74
|
const lastMetricsReportTime = createMultiLevelStore('lastMetricsReportTime', {
|
75
|
-
|
76
|
-
|
75
|
+
default: {
|
76
|
+
ttl: METRICS_MAX_REPORT_INTERVAL_SECONDS,
|
77
|
+
},
|
78
|
+
useVersion: false,
|
79
|
+
});
|
77
80
|
const METRICS_MAX_REPORT_INTERVAL = METRICS_MAX_REPORT_INTERVAL_SECONDS * 1000;
|
78
81
|
return async (uuid) => {
|
79
82
|
const lastMetricsUpdate = await lastMetricsReportTime.get(uuid);
|
@@ -96,7 +99,8 @@ const shouldUpdateImageInstall = (() => {
|
|
96
99
|
// Do not have a local cache to avoid skipping updates based on an
|
97
100
|
// outdated local cache
|
98
101
|
local: false,
|
99
|
-
|
102
|
+
useVersion: false,
|
103
|
+
});
|
100
104
|
const DOWNLOAD_PROGRESS_MAX_REPORT_INTERVAL = DOWNLOAD_PROGRESS_MAX_REPORT_INTERVAL_SECONDS * 1000;
|
101
105
|
return async (imageInstallId, body) => {
|
102
106
|
const key = `${imageInstallId}`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state-patch-utils.js","sourceRoot":"","sources":["../../../src/features/device-state/state-patch-utils.ts"],"names":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BAAuB,GAAG,CACtC,MAAuB,EACvB,iBAAmC,gCAAgC,EAClE,EAAE;IACH,KAAK,MAAM,GAAG,IAAI,cAAc,EAAE,CAAC;QAClC,IACC,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,QAAQ;YAC/B,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,IAAI,iBAAiB,EACtC,CAAC;YACF,SAAS;QACV,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG;IAC3B,cAAc;IACd,cAAc;IACd,eAAe;IACf,eAAe;IACf,UAAU;IACV,WAAW;CACF,CAAC;AAEX,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,GAAG,mBAAmB;IACtB,sBAAsB;CACb,CAAC;AAEX,iDAAiD;AACjD,MAAM,UAAU,kBAAkB,CACjC,IAAmE;IAEnE,KAAK,MAAM,GAAG,IAAI,mBAAmB,EAAE,CAAC;QACvC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;QACxB,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,GAAG,yBAAyB,EAAE,CAAC;YACpE,IAAI,CAAC,GAAG,CAAC,GAAG,yBAAyB,CAAC;QACvC,CAAC;IACF,CAAC;AACF,CAAC;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE;IACxC,MAAM,qBAAqB,GAAG,qBAAqB,CAClD,uBAAuB,EACvB;QACC,GAAG,EAAE,mCAAmC;
|
1
|
+
{"version":3,"file":"state-patch-utils.js","sourceRoot":"","sources":["../../../src/features/device-state/state-patch-utils.ts"],"names":[],"mappings":"AAIA,OAAO,EACN,6CAA6C,EAC7C,mCAAmC,EACnC,yBAAyB,EACzB,mCAAmC,GACnC,MAAM,qBAAqB,CAAC;AAC7B,OAA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
|
27
27
|
preFetch: true,
|
28
28
|
maxAge: BUILD_PROPERTY_CACHE_TIMEOUT,
|
29
|
-
});
|
29
|
+
}, { useVersion: false });
|
30
30
|
export const getDeviceTypeJson = multiCacheMemoizee(async (normalizedSlug, buildId) => {
|
31
31
|
const isIgnored = await fileExists(getImageKey(normalizedSlug, buildId, 'IGNORE'));
|
32
32
|
if (isIgnored) {
|
@@ -47,7 +47,7 @@ export const getDeviceTypeJson = multiCacheMemoizee(async (normalizedSlug, build
|
|
47
47
|
primitive: true,
|
48
48
|
preFetch: true,
|
49
49
|
maxAge: BUILD_PROPERTY_CACHE_TIMEOUT,
|
50
|
-
});
|
50
|
+
}, { useVersion: false });
|
51
51
|
export const getCompressedSize = multiCacheMemoizee(async (normalizedSlug, buildId) => {
|
52
52
|
return await getFolderSize(getImageKey(normalizedSlug, buildId, 'compressed'));
|
53
53
|
}, {
|
@@ -56,5 +56,5 @@ export const getCompressedSize = multiCacheMemoizee(async (normalizedSlug, build
|
|
56
56
|
primitive: true,
|
57
57
|
preFetch: true,
|
58
58
|
maxAge: BUILD_COMPRESSED_SIZE_CACHE_TIMEOUT,
|
59
|
-
});
|
59
|
+
}, { useVersion: false });
|
60
60
|
//# sourceMappingURL=build-info-facade.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"build-info-facade.js","sourceRoot":"","sources":["../../../src/features/device-types/build-info-facade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,EACN,mCAAmC,EACnC,4BAA4B,EAC5B,UAAU,GACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,UAAU,EACV,OAAO,EACP,aAAa,EACb,WAAW,GACX,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAC3C,KAAK,EACJ,cAAsB,EACtB,OAAe,EACe,EAAE;IAChC,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,OAAO;IACR,CAAC;IACD,MAAM,cAAc,GAAG,CAAC,cAAc,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;IAC7D,IAAI,CAAC;QACJ,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,cAAc,CAAC,CAAC;QAC/C,MAAM,OAAO,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,OAAO;QACR,CAAC;QAED,iDAAiD;QACjD,MAAM,eAAe,GAAG,WAAW,CAClC,GAAG,cAAc,CAAC,GAAG,CAAC,kBAAkB,CAAC,CACzC,CAAC;QACF,OAAO,WAAW,UAAU,IAAI,eAAe,EAAE,CAAC;IACnD,CAAC;IAAC,MAAM,CAAC;QACR,OAAO;IACR,CAAC;AACF,CAAC,EACD;IACC,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,4BAA4B;CACpC,
|
1
|
+
{"version":3,"file":"build-info-facade.js","sourceRoot":"","sources":["../../../src/features/device-types/build-info-facade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,EACN,mCAAmC,EACnC,4BAA4B,EAC5B,UAAU,GACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,UAAU,EACV,OAAO,EACP,aAAa,EACb,WAAW,GACX,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAC3C,KAAK,EACJ,cAAsB,EACtB,OAAe,EACe,EAAE;IAChC,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,OAAO;IACR,CAAC;IACD,MAAM,cAAc,GAAG,CAAC,cAAc,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;IAC7D,IAAI,CAAC;QACJ,MAAM,OAAO,GAAG,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AAC,EACD;IACC,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,4BAA4B;CACpC,EACD,EAAE,UAAU,EAAE,KAAK,EAAE,CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,kBAAkB,CAClD,KAAK,EAAE,cAAsB,EAAE,OAAe,EAAmB,EAAE;IAClE,OAAO,MAAM,aAAa,CACzB,WAAW,CAAC,cAAc,EAAE,OAAO,EAAE,YAAY,CAAC,CAClD,CAAC;AACH,CAAC,EACD;IACC,QAAQ,EAAE,mBAAmB;IAC7B,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,mCAAmC;CAC3C,EACD,EAAE,UAAU,EAAE,KAAK,EAAE,CACrB,CAAC"}
|
@@ -77,7 +77,10 @@ export const getDeviceTypes = multiCacheMemoizee(async () => {
|
|
77
77
|
primitive: true,
|
78
78
|
maxAge: DEVICE_TYPES_CACHE_LOCAL_TIMEOUT,
|
79
79
|
}, {
|
80
|
-
|
81
|
-
|
80
|
+
global: {
|
81
|
+
preFetch: 0.1,
|
82
|
+
maxAge: DEVICE_TYPES_CACHE_TIMEOUT,
|
83
|
+
},
|
84
|
+
useVersion: false,
|
82
85
|
});
|
83
86
|
//# sourceMappingURL=device-types-list.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"device-types-list.js","sourceRoot":"","sources":["../../../src/features/device-types/device-types-list.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAGvB,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC;AAExC,OAAO,EAAE,gBAAgB,EA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C;YAEF,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;gBAC7C,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC,CAAC,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACd,gBAAgB,CACf,GAAG,EACH,gDAAgD,IAAI,EAAE,CACtD,CAAC;QACH,CAAC;IACF,CAAC,CAAC,CACF,CAAC;IAEF,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5C,MAAM,IAAI,oBAAoB,CAAC,oCAAoC,CAAC,CAAC;IACtE,CAAC;IACD,OAAO,MAAM,CAAC;AACf,CAAC,EACD;IACC,QAAQ,EAAE,kBAAkB;IAC5B,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,gCAAgC;CACxC,EACD;IACC,QAAQ,EAAE,GAAG;
|
1
|
+
{"version":3,"file":"device-types-list.js","sourceRoot":"","sources":["../../../src/features/device-types/device-types-list.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAGvB,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EACN,WAAW,EACX,oBAAoB,EACpB,WAAW,GACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EACN,gCAAgC,EAChC,0BAA0B,EAC1B,kBA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CACtD,CAAC;QACH,CAAC;IACF,CAAC,CAAC,CACF,CAAC;IAEF,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5C,MAAM,IAAI,oBAAoB,CAAC,oCAAoC,CAAC,CAAC;IACtE,CAAC;IACD,OAAO,MAAM,CAAC;AACf,CAAC,EACD;IACC,QAAQ,EAAE,kBAAkB;IAC5B,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,gCAAgC;CACxC,EACD;IACC,MAAM,EAAE;QACP,QAAQ,EAAE,GAAG;QACb,MAAM,EAAE,0BAA0B;KAClC;IACD,UAAU,EAAE,KAAK;CACjB,CACD,CAAC"}
|
@@ -114,7 +114,7 @@ const resolveReadAccess = (() => {
|
|
114
114
|
normalizer: ([imageId, req]) => {
|
115
115
|
return `${imageId}$${reqPermissionNormalizer(req)}`;
|
116
116
|
},
|
117
|
-
});
|
117
|
+
}, { useVersion: false });
|
118
118
|
return async (req, imageId, tx) => {
|
119
119
|
if (imageId == null) {
|
120
120
|
return false;
|
@@ -166,7 +166,7 @@ const resolveImageId = multiCacheMemoizee(async (effectiveName, tx) => {
|
|
166
166
|
maxAge: RESOLVE_IMAGE_ID_CACHE_TIMEOUT,
|
167
167
|
max: 500,
|
168
168
|
normalizer: ([effectiveName]) => effectiveName,
|
169
|
-
});
|
169
|
+
}, { useVersion: false });
|
170
170
|
const resolveImageLocation = multiCacheMemoizee(async (applicationSlug, releaseHashOrVersion, serviceName, req, tx) => {
|
171
171
|
try {
|
172
172
|
const [image] = await api.resin.get({
|
@@ -278,7 +278,7 @@ const resolveImageLocation = multiCacheMemoizee(async (applicationSlug, releaseH
|
|
278
278
|
normalizer: ([applicationSlug, releaseHashOrVersion, serviceName, req]) => {
|
279
279
|
return `${applicationSlug}${releaseHashOrVersion}${serviceName}${reqPermissionNormalizer(req)}`;
|
280
280
|
},
|
281
|
-
});
|
281
|
+
}, { useVersion: false });
|
282
282
|
const resolveAccess = async (req, type, name, effectiveName, requestedActions, defaultActions = [], alias, tx) => {
|
283
283
|
let allowedActions;
|
284
284
|
// Do as few queries as possible
|
@@ -535,7 +535,7 @@ const $getSubject = multiCacheMemoizee(async (apiKey, subject, tx) => {
|
|
535
535
|
maxAge: GET_SUBJECT_CACHE_TIMEOUT,
|
536
536
|
primitive: true,
|
537
537
|
normalizer: ([apiKey, subject]) => `${apiKey}\u0001${subject}`,
|
538
|
-
});
|
538
|
+
}, { useVersion: false });
|
539
539
|
const getSubject = async (req, tx) => {
|
540
540
|
if (req.apiKey != null && !_.isEmpty(req.apiKey.permissions)) {
|
541
541
|
return await $getSubject(req.apiKey.key, req.params.subject, tx);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/features/registry/registry.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,6DAA6D;AAG7D,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,YAAY,IAAI,IAAI,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EACN,0BAA0B,EAC1B,yBAAyB,EACzB,cAAc,EACd,8BAA8B,EAC9B,oCAAoC,EACpC,uCAAuC,EACvC,wBAAwB,GACxB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC;AACrC,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AA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C,KAAK,CAAC,GAAG,CAAC;YAChC,QAAQ,EAAE,MAAM;YAChB,WAAW,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;YACxB,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE;YACf,OAAO,EAAE;gBACR,OAAO,EAAE,UAAU;aACnB;SACD,CAAC,CAAC;QACH,OAAO,IAAI,EAAE,QAAQ,CAAC;IACvB,CAAC;AACF,CAAC,CAAC"}
|
@@ -34,7 +34,7 @@ const checkAuth = (() => {
|
|
34
34
|
normalizer: ([uuid, req]) => {
|
35
35
|
return `${uuid}$${reqPermissionNormalizer(req)}`;
|
36
36
|
},
|
37
|
-
});
|
37
|
+
}, { useVersion: false });
|
38
38
|
})();
|
39
39
|
/**
|
40
40
|
* A middleware to return 401 for deleted devices and avoid doing any additional work.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"services.js","sourceRoot":"","sources":["../../../src/features/vpn/services.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE;IACvB,OAAO,kBAAkB,CACxB,KAAK,EAAE,IAAY,EAAE,GAA8B,EAAmB,EAAE;QACvE,IAAI,CAAC;YACJ,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC;gBACvB,MAAM,EAAE,MAAM;gBACd,sFAAsF;gBACtF,GAAG,EAAE,uCAAuC,IAAI,GAAG;gBACnD,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EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;YACrC,OAAO;QACR,CAAC;QACD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,CAAC;AACF,CAAC,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { types } from '@balena/pinejs';
|
2
2
|
import type { Options as MemoizeeOptions } from 'memoizee';
|
3
3
|
import type { Defined } from './index.js';
|
4
|
+
import { createMultiLevelStore } from './index.js';
|
4
5
|
type MultiCacheMemoizeeOpts<T extends (...args: any[]) => any> = {
|
5
6
|
cacheKey?: string;
|
6
7
|
undefinedAs?: Defined;
|
@@ -19,14 +20,10 @@ export interface MemoizedFn<T extends (...args: any[]) => Promise<any>> {
|
|
19
20
|
(...args: Parameters<T>): Promise<ResolvableReturnType<T>>;
|
20
21
|
delete: (...args: Parameters<T>) => Promise<void>;
|
21
22
|
}
|
22
|
-
type
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
type ExtraCacheOptsByType<T extends AnyFunction> = AtLeastOneProp<{
|
27
|
-
local: Partial<MultiCacheMemoizeeExtraOpts<T>> | false;
|
28
|
-
global: SharedMultiCacheMemoizeeExtraOpts<T>;
|
29
|
-
}>;
|
23
|
+
type ExtraCacheOptsByType<T extends AnyFunction> = {
|
24
|
+
local?: Partial<MultiCacheMemoizeeExtraOpts<T>> | false;
|
25
|
+
global?: SharedMultiCacheMemoizeeExtraOpts<T>;
|
26
|
+
} & Pick<Parameters<typeof createMultiLevelStore>[1], 'useVersion'>;
|
30
27
|
/**
|
31
28
|
* A multi layer cache compatible with a subset of memoizee options
|
32
29
|
* Note: `undefined`/`null` can only be locally cached so avoid if possible
|
@@ -46,23 +43,7 @@ type ExtraCacheOptsByType<T extends AnyFunction> = AtLeastOneProp<{
|
|
46
43
|
* maxAge: 24 * HOURS, // override the shared cache (redis) ttl
|
47
44
|
* }
|
48
45
|
* });
|
49
|
-
*
|
50
|
-
* @example
|
51
|
-
* // deprecated extraCacheOpts notation
|
52
|
-
* multiCacheMemoizee('test', {
|
53
|
-
* maxAge: 1 * HOURS,
|
54
|
-
* }, {
|
55
|
-
* maxAge: 24 * HOURS, // override the shared cache (redis) ttl
|
56
|
-
* });
|
57
|
-
*/
|
58
|
-
export declare function multiCacheMemoizee<T extends (...args: any[]) => Promise<Defined | undefined>>(fn: T, opts: types.RequiredField<MultiCacheMemoizeeOpts<T>, 'undefinedAs'>, extraCacheOpts?: ExtraCacheOptsByType<T>): MemoizedFn<T>;
|
59
|
-
export declare function multiCacheMemoizee<T extends (...args: any[]) => Promise<Defined>>(fn: T, opts: MultiCacheMemoizeeOpts<T>, extraCacheOpts?: ExtraCacheOptsByType<T>): MemoizedFn<T>;
|
60
|
-
/**
|
61
|
-
* @deprecated
|
62
|
-
*/
|
63
|
-
export declare function multiCacheMemoizee<T extends (...args: any[]) => Promise<Defined | undefined>>(fn: T, opts: types.RequiredField<MultiCacheMemoizeeOpts<T>, 'undefinedAs'>, extraCacheOpts?: SharedMultiCacheMemoizeeExtraOpts<T>): MemoizedFn<T>;
|
64
|
-
/**
|
65
|
-
* @deprecated
|
66
46
|
*/
|
67
|
-
export declare function multiCacheMemoizee<T extends (...args: any[]) => Promise<Defined>>(fn: T, opts: MultiCacheMemoizeeOpts<T>, extraCacheOpts
|
47
|
+
export declare function multiCacheMemoizee<T extends (...args: any[]) => Promise<Defined | undefined>>(fn: T, opts: types.RequiredField<MultiCacheMemoizeeOpts<T>, 'undefinedAs'>, extraCacheOpts: ExtraCacheOptsByType<T>): MemoizedFn<T>;
|
48
|
+
export declare function multiCacheMemoizee<T extends (...args: any[]) => Promise<Defined>>(fn: T, opts: MultiCacheMemoizeeOpts<T>, extraCacheOpts: ExtraCacheOptsByType<T>): MemoizedFn<T>;
|
68
49
|
export {};
|
@@ -18,13 +18,6 @@ export function multiCacheMemoizee(fn, opts, extraCacheOpts) {
|
|
18
18
|
if (remainingKeys.length > 0) {
|
19
19
|
throw new Error(`Unsupported options: ${remainingKeys}`);
|
20
20
|
}
|
21
|
-
if (extraCacheOpts != null &&
|
22
|
-
!('local' in extraCacheOpts) &&
|
23
|
-
!('global' in extraCacheOpts)) {
|
24
|
-
extraCacheOpts = {
|
25
|
-
global: extraCacheOpts,
|
26
|
-
};
|
27
|
-
}
|
28
21
|
if (extraCacheOpts?.local !== false) {
|
29
22
|
checkUnsupportedExtraCacheKeys(extraCacheOpts?.local, 'local');
|
30
23
|
}
|
@@ -55,7 +48,11 @@ export function multiCacheMemoizee(fn, opts, extraCacheOpts) {
|
|
55
48
|
local: extraCacheOpts?.local === false
|
56
49
|
? false
|
57
50
|
: convertToMultiStoreOpts({ ...opts, ...extraCacheOpts?.local }),
|
58
|
-
global: convertToMultiStoreOpts({
|
51
|
+
global: convertToMultiStoreOpts({
|
52
|
+
...opts,
|
53
|
+
...extraCacheOpts?.global,
|
54
|
+
}),
|
55
|
+
useVersion: extraCacheOpts.useVersion,
|
59
56
|
};
|
60
57
|
return multiCache(fn, cacheKey, normalizer, multiCacheOpts, undefinedAs);
|
61
58
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"multi-level-memoizee.js","sourceRoot":"","sources":["../../../src/infra/cache/multi-level-memoizee.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAEvB,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAanD,MAAM,wBAAwB,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAC;AAcxE,MAAM,8BAA8B,GAAG,CACtC,IAA2D,EAC3D,SAAiB,EAChB,EAAE;IACH,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO;IACR,CAAC;IACD,MAAM,aAAa,GAAG,CAAC,CAAC,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E,CAAC,CAAC;IAEF,UAAU,CAAC,MAAM,GAAG,KAAK,EAAE,GAAG,IAAmB,EAAE,EAAE;QACpD,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;QAC5B,MAAM,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,yGAAyG;IACzG,gEAAgE;IAChE,OAAO,UAA2B,CAAC;AACpC,CAAC"}
|
@@ -3,20 +3,20 @@ import type { Defined } from './index.js';
|
|
3
3
|
export type MultiStoreOpt = Pick<cacheManager.StoreConfig, 'ttl' | 'max'> & {
|
4
4
|
refreshThreshold?: number;
|
5
5
|
};
|
6
|
-
|
7
|
-
* @param useVersion
|
8
|
-
* Do not use the api version as part of the cache key, this disables automatic invalidation on
|
9
|
-
* version updates and so anything that may change the result needs to be manually invalidated,
|
10
|
-
* eg by changing the cacheKey
|
11
|
-
*/
|
12
|
-
export declare function createMultiLevelStore<T extends Defined>(cacheKey: string, opts: (MultiStoreOpt & cacheManager.CacheOptions) | {
|
6
|
+
export declare function createMultiLevelStore<T extends Defined>(cacheKey: string, opts: {
|
13
7
|
default: MultiStoreOpt & cacheManager.CacheOptions;
|
14
8
|
local?: MultiStoreOpt | false;
|
15
9
|
/**
|
16
10
|
* The global store will ignore the `max` anyway, so avoiding passing it in will help reduce confusion
|
17
11
|
*/
|
18
12
|
global?: Exclude<MultiStoreOpt, 'max'>;
|
19
|
-
|
13
|
+
/**
|
14
|
+
* Do not use the api version as part of the cache key, this disables automatic invalidation on
|
15
|
+
* version updates and so anything that may change the result needs to be manually invalidated,
|
16
|
+
* eg by changing the cacheKey
|
17
|
+
*/
|
18
|
+
useVersion: boolean;
|
19
|
+
}): {
|
20
20
|
get: (key: string) => Promise<T | undefined>;
|
21
21
|
set: (key: string, value: T) => Promise<void>;
|
22
22
|
delete: (key: string) => Promise<void>;
|
@@ -3,21 +3,12 @@ import redisStore from 'cache-manager-ioredis';
|
|
3
3
|
import { version } from '../../lib/config.js';
|
4
4
|
import { getRedisOptions } from '../redis/config.js';
|
5
5
|
const usedCacheKeys = {};
|
6
|
-
|
7
|
-
* @param useVersion
|
8
|
-
* Do not use the api version as part of the cache key, this disables automatic invalidation on
|
9
|
-
* version updates and so anything that may change the result needs to be manually invalidated,
|
10
|
-
* eg by changing the cacheKey
|
11
|
-
*/
|
12
|
-
export function createMultiLevelStore(cacheKey, opts, useVersion = true) {
|
6
|
+
export function createMultiLevelStore(cacheKey, opts) {
|
13
7
|
if (usedCacheKeys[cacheKey] === true) {
|
14
8
|
throw new Error(`Cache key '${cacheKey}' has already been taken`);
|
15
9
|
}
|
16
10
|
usedCacheKeys[cacheKey] = true;
|
17
|
-
|
18
|
-
opts = { default: opts };
|
19
|
-
}
|
20
|
-
const { default: baseOpts, local, global } = opts;
|
11
|
+
const { default: baseOpts, local, global, useVersion = true } = opts;
|
21
12
|
const { isCacheableValue } = baseOpts;
|
22
13
|
const memoryCache = local === false
|
23
14
|
? undefined
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"multi-level-store.js","sourceRoot":"","sources":["../../../src/infra/cache/multi-level-store.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,aAAa,GAAqB,EAAE,CAAC;AAM3C
|
1
|
+
{"version":3,"file":"multi-level-store.js","sourceRoot":"","sources":["../../../src/infra/cache/multi-level-store.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,aAA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
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/open-balena-api",
|
3
3
|
"description": "Internet of things, Made Simple",
|
4
|
-
"version": "
|
4
|
+
"version": "30.0.0-build-multi-level-store-de079c541a7f68655f7d501ff625cb57cddce510-1",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -136,7 +136,7 @@
|
|
136
136
|
},
|
137
137
|
"devDependencies": {
|
138
138
|
"@balena/lint": "^9.0.1",
|
139
|
-
"@types/chai": "^
|
139
|
+
"@types/chai": "^4.3.20",
|
140
140
|
"@types/mocha": "^10.0.8",
|
141
141
|
"@types/mockery": "^1.4.33",
|
142
142
|
"@types/sinon": "^17.0.3",
|
@@ -168,6 +168,6 @@
|
|
168
168
|
"loader": "ts-node/esm/transpile-only"
|
169
169
|
},
|
170
170
|
"versionist": {
|
171
|
-
"publishedAt": "2024-10-
|
171
|
+
"publishedAt": "2024-10-16T13:32:29.492Z"
|
172
172
|
}
|
173
173
|
}
|