@flowselections/floriday-klanten-module 1.0.67 → 1.0.69

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.
@@ -0,0 +1,3 @@
1
+ /** Tijdsonafhankelijke vergelijking van de machinesleutel. Alleen x-cron-secret geldt; fail closed. */
2
+ export declare function isCronSecretValid(provided: string | null | undefined, stored: string | null | undefined): boolean;
3
+ //# sourceMappingURL=cron-auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cron-auth.d.ts","sourceRoot":"","sources":["../../../../src/lib/accounting/twinfield/cron-auth.ts"],"names":[],"mappings":"AAAA,uGAAuG;AACvG,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAMjH"}
@@ -0,0 +1,11 @@
1
+ /** Tijdsonafhankelijke vergelijking van de machinesleutel. Alleen x-cron-secret geldt; fail closed. */
2
+ export function isCronSecretValid(provided, stored) {
3
+ if (!provided || !stored)
4
+ return false;
5
+ if (provided.length !== stored.length)
6
+ return false;
7
+ let diff = 0;
8
+ for (let i = 0; i < provided.length; i++)
9
+ diff |= provided.charCodeAt(i) ^ stored.charCodeAt(i);
10
+ return diff === 0;
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowselections/floriday-klanten-module",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",