@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.
Files changed (42) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{chunk-46S3YFRK.js → chunk-CY5B4LIF.js} +12 -4
  3. package/dist/chunk-CY5B4LIF.js.map +1 -0
  4. package/dist/{chunk-GNLU3I27.js → chunk-JDZ2QUUF.js} +1 -1
  5. package/dist/chunk-JDZ2QUUF.js.map +1 -0
  6. package/dist/{client-Dv60lAyy.d.ts → client-BLbA6aFD.d.ts} +1 -1
  7. package/dist/{client-DQyqn0oT.d.cts → client-C_7TF8EL.d.cts} +1 -1
  8. package/dist/client.cjs.map +1 -1
  9. package/dist/client.d.cts +2 -2
  10. package/dist/client.d.ts +2 -2
  11. package/dist/client.js +1 -1
  12. package/dist/drizzle/index.cjs.map +1 -1
  13. package/dist/drizzle/index.d.cts +2 -2
  14. package/dist/drizzle/index.d.ts +2 -2
  15. package/dist/drizzle/index.js +1 -1
  16. package/dist/dynamodb/index.d.cts +2 -2
  17. package/dist/dynamodb/index.d.ts +2 -2
  18. package/dist/encryption/index.cjs +10 -2
  19. package/dist/encryption/index.cjs.map +1 -1
  20. package/dist/encryption/index.d.cts +2 -2
  21. package/dist/encryption/index.d.ts +2 -2
  22. package/dist/encryption/index.js +2 -2
  23. package/dist/index.cjs +10 -2
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +3 -3
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.js +2 -2
  28. package/dist/schema/index.cjs.map +1 -1
  29. package/dist/schema/index.d.cts +1 -1
  30. package/dist/schema/index.d.ts +1 -1
  31. package/dist/schema/index.js +1 -1
  32. package/dist/supabase/index.cjs.map +1 -1
  33. package/dist/supabase/index.d.cts +2 -2
  34. package/dist/supabase/index.d.ts +2 -2
  35. package/dist/supabase/index.js +1 -1
  36. package/dist/{types-public-DX3mGqoi.d.ts → types-public-Dv-r6Ik0.d.cts} +1 -1
  37. package/dist/{types-public-DX3mGqoi.d.cts → types-public-Dv-r6Ik0.d.ts} +1 -1
  38. package/dist/types-public.d.cts +1 -1
  39. package/dist/types-public.d.ts +1 -1
  40. package/package.json +5 -5
  41. package/dist/chunk-46S3YFRK.js.map +0 -1
  42. package/dist/chunk-GNLU3I27.js.map +0 -1
@@ -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-DX3mGqoi.cjs';
4
- import { a as EncryptionClient } from '../client-DQyqn0oT.cjs';
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';
@@ -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-DX3mGqoi.js';
4
- import { a as EncryptionClient } from '../client-Dv60lAyy.js';
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';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  encryptedColumn,
3
3
  encryptedTable
4
- } from "../chunk-GNLU3I27.js";
4
+ } from "../chunk-JDZ2QUUF.js";
5
5
  import {
6
6
  queryTypes
7
7
  } from "../chunk-MD6742R6.js";
@@ -1,5 +1,5 @@
1
- import { a as EncryptionClient } from '../client-DQyqn0oT.cjs';
2
- import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-DX3mGqoi.cjs';
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';
@@ -1,5 +1,5 @@
1
- import { a as EncryptionClient } from '../client-Dv60lAyy.js';
2
- import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-DX3mGqoi.js';
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
- var import_uuid = require("uuid");
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 && !(0, import_uuid.validate)(clientConfig.keyset.id)) {
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
  );