@cipherstash/stack 0.15.3 → 0.16.0
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/CHANGELOG.md +8 -0
- package/dist/{chunk-46S3YFRK.js → chunk-CY5B4LIF.js} +12 -4
- package/dist/chunk-CY5B4LIF.js.map +1 -0
- package/dist/{chunk-GNLU3I27.js → chunk-JDZ2QUUF.js} +1 -1
- package/dist/chunk-JDZ2QUUF.js.map +1 -0
- package/dist/{client-Dv60lAyy.d.ts → client-BLbA6aFD.d.ts} +1 -1
- package/dist/{client-DQyqn0oT.d.cts → client-C_7TF8EL.d.cts} +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/drizzle/index.cjs.map +1 -1
- package/dist/drizzle/index.d.cts +2 -2
- package/dist/drizzle/index.d.ts +2 -2
- package/dist/drizzle/index.js +1 -1
- package/dist/dynamodb/index.d.cts +2 -2
- package/dist/dynamodb/index.d.ts +2 -2
- package/dist/encryption/index.cjs +10 -2
- package/dist/encryption/index.cjs.map +1 -1
- package/dist/encryption/index.d.cts +2 -2
- package/dist/encryption/index.d.ts +2 -2
- package/dist/encryption/index.js +2 -2
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/supabase/index.cjs.map +1 -1
- package/dist/supabase/index.d.cts +2 -2
- package/dist/supabase/index.d.ts +2 -2
- package/dist/supabase/index.js +1 -1
- package/dist/{types-public-DX3mGqoi.d.ts → types-public-Dv-r6Ik0.d.cts} +1 -1
- package/dist/{types-public-DX3mGqoi.d.cts → types-public-Dv-r6Ik0.d.ts} +1 -1
- package/dist/types-public.d.cts +1 -1
- package/dist/types-public.d.ts +1 -1
- package/package.json +5 -5
- package/dist/chunk-46S3YFRK.js.map +0 -1
- package/dist/chunk-GNLU3I27.js.map +0 -1
package/dist/drizzle/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
2
2
|
import { PgTable, PgCustomColumn } from 'drizzle-orm/pg-core';
|
|
3
|
-
import { c as EncryptedTable, f as EncryptedColumn, C as CastAs, M as MatchIndexOpts, T as TokenFilter } from '../types-public-
|
|
4
|
-
import { a as EncryptionClient } from '../client-
|
|
3
|
+
import { c as EncryptedTable, f as EncryptedColumn, C as CastAs, M as MatchIndexOpts, T as TokenFilter } from '../types-public-Dv-r6Ik0.cjs';
|
|
4
|
+
import { a as EncryptionClient } from '../client-C_7TF8EL.cjs';
|
|
5
5
|
import { SQLWrapper, SQL, exists, notExists, isNull, isNotNull, not, arrayContains, arrayContained, arrayOverlaps } from 'drizzle-orm';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@cipherstash/protect-ffi';
|
package/dist/drizzle/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
2
2
|
import { PgTable, PgCustomColumn } from 'drizzle-orm/pg-core';
|
|
3
|
-
import { c as EncryptedTable, f as EncryptedColumn, C as CastAs, M as MatchIndexOpts, T as TokenFilter } from '../types-public-
|
|
4
|
-
import { a as EncryptionClient } from '../client-
|
|
3
|
+
import { c as EncryptedTable, f as EncryptedColumn, C as CastAs, M as MatchIndexOpts, T as TokenFilter } from '../types-public-Dv-r6Ik0.js';
|
|
4
|
+
import { a as EncryptionClient } from '../client-BLbA6aFD.js';
|
|
5
5
|
import { SQLWrapper, SQL, exists, notExists, isNull, isNotNull, not, arrayContains, arrayContained, arrayOverlaps } from 'drizzle-orm';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@cipherstash/protect-ffi';
|
package/dist/drizzle/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as EncryptionClient } from '../client-
|
|
2
|
-
import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-
|
|
1
|
+
import { a as EncryptionClient } from '../client-C_7TF8EL.cjs';
|
|
2
|
+
import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-Dv-r6Ik0.cjs';
|
|
3
3
|
import { ProtectErrorCode } from '@cipherstash/protect-ffi';
|
|
4
4
|
import { Result } from '@byteslice/result';
|
|
5
5
|
import '../errors/index.cjs';
|
package/dist/dynamodb/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as EncryptionClient } from '../client-
|
|
2
|
-
import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-
|
|
1
|
+
import { a as EncryptionClient } from '../client-BLbA6aFD.js';
|
|
2
|
+
import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-Dv-r6Ik0.js';
|
|
3
3
|
import { ProtectErrorCode } from '@cipherstash/protect-ffi';
|
|
4
4
|
import { Result } from '@byteslice/result';
|
|
5
5
|
import '../errors/index.js';
|
|
@@ -476,7 +476,15 @@ var logger = {
|
|
|
476
476
|
// src/encryption/index.ts
|
|
477
477
|
var import_result11 = require("@byteslice/result");
|
|
478
478
|
var import_protect_ffi9 = require("@cipherstash/protect-ffi");
|
|
479
|
-
|
|
479
|
+
|
|
480
|
+
// ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/regex.js
|
|
481
|
+
var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|
|
482
|
+
|
|
483
|
+
// ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/validate.js
|
|
484
|
+
function validate(uuid) {
|
|
485
|
+
return typeof uuid === "string" && regex_default.test(uuid);
|
|
486
|
+
}
|
|
487
|
+
var validate_default = validate;
|
|
480
488
|
|
|
481
489
|
// src/encryption/helpers/index.ts
|
|
482
490
|
function encryptedToCompositeLiteral(obj) {
|
|
@@ -2789,7 +2797,7 @@ var Encryption = async (config) => {
|
|
|
2789
2797
|
"[encryption]: At least one encryptedTable must be provided to initialize the encryption client"
|
|
2790
2798
|
);
|
|
2791
2799
|
}
|
|
2792
|
-
if (clientConfig?.keyset && "id" in clientConfig.keyset && !(
|
|
2800
|
+
if (clientConfig?.keyset && "id" in clientConfig.keyset && !validate_default(clientConfig.keyset.id)) {
|
|
2793
2801
|
throw new Error(
|
|
2794
2802
|
"[encryption]: Invalid UUID provided for keyset id. Must be a valid UUID."
|
|
2795
2803
|
);
|