@nhost/nhost-js 3.2.8 → 5.0.0-beta.1

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 (108) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +67 -37
  3. package/dist/nhost-js/auth.cjs.js +2 -0
  4. package/dist/nhost-js/auth.cjs.js.map +1 -0
  5. package/dist/nhost-js/auth.es.js +261 -0
  6. package/dist/nhost-js/auth.es.js.map +1 -0
  7. package/dist/nhost-js/fetch.cjs.js +2 -0
  8. package/dist/nhost-js/fetch.cjs.js.map +1 -0
  9. package/dist/nhost-js/fetch.es.js +10 -0
  10. package/dist/nhost-js/fetch.es.js.map +1 -0
  11. package/dist/nhost-js/graphql.cjs.js +2 -0
  12. package/dist/nhost-js/graphql.cjs.js.map +1 -0
  13. package/dist/nhost-js/graphql.es.js +35 -0
  14. package/dist/nhost-js/graphql.es.js.map +1 -0
  15. package/dist/nhost-js/storage.cjs.js +2 -0
  16. package/dist/nhost-js/storage.cjs.js.map +1 -0
  17. package/dist/nhost-js/storage.es.js +205 -0
  18. package/dist/nhost-js/storage.es.js.map +1 -0
  19. package/dist/nhost-js.cjs.js +2 -0
  20. package/dist/nhost-js.cjs.js.map +1 -0
  21. package/dist/nhost-js.es.js +476 -0
  22. package/dist/nhost-js.es.js.map +1 -0
  23. package/dist/nhost-js.umd.js +2 -0
  24. package/dist/nhost-js.umd.js.map +1 -0
  25. package/dist/src/auth/client.d.ts +415 -0
  26. package/dist/src/auth/client.d.ts.map +1 -0
  27. package/dist/src/auth/client.js +330 -0
  28. package/dist/src/auth/client.js.map +1 -0
  29. package/dist/src/auth/index.d.ts +11 -0
  30. package/dist/src/auth/index.d.ts.map +1 -0
  31. package/dist/src/auth/index.js +11 -0
  32. package/dist/src/auth/index.js.map +1 -0
  33. package/dist/src/auth/interface.d.ts +72 -0
  34. package/dist/src/auth/interface.d.ts.map +1 -0
  35. package/dist/src/auth/interface.js +2 -0
  36. package/dist/src/auth/interface.js.map +1 -0
  37. package/dist/src/fetch/index.d.ts +53 -0
  38. package/dist/src/fetch/index.d.ts.map +1 -0
  39. package/dist/src/fetch/index.js +40 -0
  40. package/dist/src/fetch/index.js.map +1 -0
  41. package/dist/src/graphql/client.d.ts +89 -0
  42. package/dist/src/graphql/client.d.ts.map +1 -0
  43. package/dist/src/graphql/client.js +49 -0
  44. package/dist/src/graphql/client.js.map +1 -0
  45. package/dist/src/graphql/index.d.ts +10 -0
  46. package/dist/src/graphql/index.d.ts.map +1 -0
  47. package/dist/src/graphql/index.js +10 -0
  48. package/dist/src/graphql/index.js.map +1 -0
  49. package/dist/src/index.d.ts +169 -0
  50. package/dist/src/index.d.ts.map +1 -0
  51. package/dist/src/index.js +237 -0
  52. package/dist/src/index.js.map +1 -0
  53. package/dist/src/middlewareAttachToken.d.ts +24 -0
  54. package/dist/src/middlewareAttachToken.d.ts.map +1 -0
  55. package/dist/src/middlewareAttachToken.js +60 -0
  56. package/dist/src/middlewareAttachToken.js.map +1 -0
  57. package/dist/src/middlewareRefreshSession.d.ts +43 -0
  58. package/dist/src/middlewareRefreshSession.d.ts.map +1 -0
  59. package/dist/src/middlewareRefreshSession.js +190 -0
  60. package/dist/src/middlewareRefreshSession.js.map +1 -0
  61. package/dist/src/middlewareResponseSession.d.ts +26 -0
  62. package/dist/src/middlewareResponseSession.d.ts.map +1 -0
  63. package/dist/src/middlewareResponseSession.js +83 -0
  64. package/dist/src/middlewareResponseSession.js.map +1 -0
  65. package/dist/src/sessionStorage.d.ts +123 -0
  66. package/dist/src/sessionStorage.d.ts.map +1 -0
  67. package/dist/src/sessionStorage.js +165 -0
  68. package/dist/src/sessionStorage.js.map +1 -0
  69. package/dist/src/storage/client.d.ts +184 -0
  70. package/dist/src/storage/client.d.ts.map +1 -0
  71. package/dist/src/storage/client.js +249 -0
  72. package/dist/src/storage/client.js.map +1 -0
  73. package/dist/src/storage/index.d.ts +11 -0
  74. package/dist/src/storage/index.d.ts.map +1 -0
  75. package/dist/src/storage/index.js +11 -0
  76. package/dist/src/storage/index.js.map +1 -0
  77. package/dist/src/storage/interface.d.ts +52 -0
  78. package/dist/src/storage/interface.d.ts.map +1 -0
  79. package/dist/src/storage/interface.js +2 -0
  80. package/dist/src/storage/interface.js.map +1 -0
  81. package/dist/tsconfig.tsbuildinfo +1 -0
  82. package/package.json +94 -60
  83. package/dist/clients/auth.d.ts +0 -8
  84. package/dist/clients/auth.d.ts.map +0 -1
  85. package/dist/clients/functions/index.d.ts +0 -107
  86. package/dist/clients/functions/index.d.ts.map +0 -1
  87. package/dist/clients/functions/types.d.ts +0 -28
  88. package/dist/clients/functions/types.d.ts.map +0 -1
  89. package/dist/clients/graphql.d.ts +0 -8
  90. package/dist/clients/graphql.d.ts.map +0 -1
  91. package/dist/clients/index.d.ts +0 -6
  92. package/dist/clients/index.d.ts.map +0 -1
  93. package/dist/clients/nhost.d.ts +0 -83
  94. package/dist/clients/nhost.d.ts.map +0 -1
  95. package/dist/clients/storage.d.ts +0 -8
  96. package/dist/clients/storage.d.ts.map +0 -1
  97. package/dist/index.cjs.js +0 -2
  98. package/dist/index.cjs.js.map +0 -1
  99. package/dist/index.d.ts +0 -6
  100. package/dist/index.d.ts.map +0 -1
  101. package/dist/index.esm.js +0 -344
  102. package/dist/index.esm.js.map +0 -1
  103. package/dist/utils/helpers.d.ts +0 -20
  104. package/dist/utils/helpers.d.ts.map +0 -1
  105. package/dist/utils/types.d.ts +0 -57
  106. package/dist/utils/types.d.ts.map +0 -1
  107. package/umd/nhost-js.umd.js +0 -22
  108. package/umd/nhost-js.umd.js.map +0 -1
@@ -0,0 +1,52 @@
1
+ import type { ChainFunction } from "../fetch";
2
+ import type { FetchResponse, GetOpenAPISpec200, VersionInformation, UploadFilesBody, UploadFiles201, GetFileMetadataHeadersParams, GetFileParams, ReplaceFileBody, FileMetadata } from "./client";
3
+ /**
4
+ * Storage client interface providing methods for file operations
5
+ */
6
+ export interface Client {
7
+ /**
8
+ * Base URL for the storage service
9
+ */
10
+ baseURL: string;
11
+ /**
12
+ * Add a middleware function to the request chain
13
+ * @param chainFunction - Middleware function to add
14
+ */
15
+ pushChainFunction: (chainFunction: ChainFunction) => void;
16
+ /**
17
+ * Returns the OpenAPI schema definition for this API
18
+ * @summary Get OpenAPI specification
19
+ */
20
+ getOpenAPISpec: (options?: RequestInit) => Promise<FetchResponse<GetOpenAPISpec200>>;
21
+ /**
22
+ * Retrieves build and version information about the storage service
23
+ * @summary Get service version information
24
+ */
25
+ getVersion: (options?: RequestInit) => Promise<FetchResponse<VersionInformation>>;
26
+ /**
27
+ * Upload one or more files to storage
28
+ * @summary Upload files
29
+ */
30
+ uploadFiles: (uploadFilesBody: UploadFilesBody, options?: RequestInit) => Promise<FetchResponse<UploadFiles201>>;
31
+ /**
32
+ * Retrieve file metadata using HTTP HEAD method
33
+ * @summary Get file metadata (HEAD)
34
+ */
35
+ getFileMetadataHeaders: (id: string, params?: GetFileMetadataHeadersParams, options?: RequestInit) => Promise<FetchResponse<void>>;
36
+ /**
37
+ * Download a file
38
+ * @summary Get file
39
+ */
40
+ getFile: (id: string, params?: GetFileParams, options?: RequestInit) => Promise<FetchResponse<Blob>>;
41
+ /**
42
+ * Replace an existing file
43
+ * @summary Replace file
44
+ */
45
+ replaceFile: (id: string, replaceFileBody: ReplaceFileBody, options?: RequestInit) => Promise<FetchResponse<FileMetadata>>;
46
+ /**
47
+ * Delete a file
48
+ * @summary Delete file
49
+ */
50
+ deleteFile: (id: string, options?: RequestInit) => Promise<FetchResponse<void>>;
51
+ }
52
+ //# sourceMappingURL=interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../src/storage/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,4BAA4B,EAC5B,aAAa,EACb,eAAe,EACf,YAAY,EACb,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,iBAAiB,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,IAAI,CAAC;IAE1D;;;OAGG;IACH,cAAc,EAAE,CACd,OAAO,CAAC,EAAE,WAAW,KAClB,OAAO,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAE/C;;;OAGG;IACH,UAAU,EAAE,CACV,OAAO,CAAC,EAAE,WAAW,KAClB,OAAO,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEhD;;;OAGG;IACH,WAAW,EAAE,CACX,eAAe,EAAE,eAAe,EAChC,OAAO,CAAC,EAAE,WAAW,KAClB,OAAO,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC;IAE5C;;;OAGG;IACH,sBAAsB,EAAE,CACtB,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,WAAW,KAClB,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;IAElC;;;OAGG;IACH,OAAO,EAAE,CACP,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,aAAa,EACtB,OAAO,CAAC,EAAE,WAAW,KAClB,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;IAElC;;;OAGG;IACH,WAAW,EAAE,CACX,EAAE,EAAE,MAAM,EACV,eAAe,EAAE,eAAe,EAChC,OAAO,CAAC,EAAE,WAAW,KAClB,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC;IAE1C;;;OAGG;IACH,UAAU,EAAE,CACV,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,WAAW,KAClB,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;CACnC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../src/storage/interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/fetch/index.ts","../src/auth/interface.ts","../src/auth/client.ts","../src/auth/index.ts","../src/storage/interface.ts","../src/storage/client.ts","../src/storage/index.ts","../src/graphql/client.ts","../src/graphql/index.ts","../src/sessionstorage.ts","../src/middlewarerefreshsession.ts","../src/middlewareattachtoken.ts","../src/middlewareresponsesession.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.15.17/node_modules/@types/node/index.d.ts"],"fileIdsList":[[99,139,142],[99,141,142],[142],[99,142,147,177],[99,142,143,148,154,155,162,174,185],[99,142,143,144,154,162],[99,142],[94,95,96,99,142],[99,142,145,186],[99,142,146,147,155,163],[99,142,147,174,182],[99,142,148,150,154,162],[99,141,142,149],[99,142,150,151],[99,142,154],[99,142,152,154],[99,141,142,154],[99,142,154,155,156,174,185],[99,142,154,155,156,169,174,177],[99,137,142,190],[99,137,142,150,154,157,162,174,185],[99,142,154,155,157,158,162,174,182,185],[99,142,157,159,174,182,185],[97,98,99,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191],[99,142,154,160],[99,142,161,185],[99,142,150,154,162,174],[99,142,163],[99,142,164],[99,141,142,165],[99,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191],[99,142,167],[99,142,168],[99,142,154,169,170],[99,142,169,171,186,188],[99,142,154,174,175,177],[99,142,176,177],[99,142,174,175],[99,142,177],[99,142,178],[99,139,142,174],[99,142,154,180,181],[99,142,180,181],[99,142,147,162,174,182],[99,142,183],[99,142,162,184],[99,142,157,168,185],[99,142,147,186],[99,142,174,187],[99,142,161,188],[99,142,189],[99,142,147,154,156,165,174,185,188,190],[99,142,174,191],[99,109,113,142,185],[99,109,142,174,185],[99,104,142],[99,106,109,142,182,185],[99,142,162,182],[99,142,192],[99,104,142,192],[99,106,109,142,162,185],[99,101,102,105,108,142,154,174,185],[99,109,116,142],[99,101,107,142],[99,109,130,131,142],[99,105,109,142,177,185,192],[99,130,142,192],[99,103,104,142,192],[99,109,142],[99,103,104,105,106,107,108,109,110,111,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,131,132,133,134,135,136,142],[99,109,124,142],[99,109,116,117,142],[99,107,109,117,118,142],[99,108,142],[99,101,104,109,142],[99,109,113,117,118,142],[99,113,142],[99,107,109,112,142,185],[99,101,106,109,116,142],[99,142,174],[99,104,109,130,142,190,192],[80,81,99,142],[81,82,99,142],[80,82,99,142],[80,99,142],[87,99,142],[83,86,88,89,90,91,92,99,142],[80,83,89,99,142],[83,99,142],[80,84,99,142],[84,85,99,142],[80,85,99,142]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"8bf8b5e44e3c9c36f98e1007e8b7018c0f38d8adc07aecef42f5200114547c70","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"a12e2a9c82b0d499b7d8d441e79aaa64bcdda87c75bc0aede64bdf94a1a02c63","signature":"d749b8dbf9921fe1d55249cc0ad989f42a99c3c5877db9fe00209b9c51eeb324"},{"version":"8bbcc4d79c75e34a54d02a43cb96016db997c2b1aec41b70b2e6482d3ee92ac2","signature":"fefaf01b7d1ca876a8f5fb5b95d74f34cfdd52fd6fc90b8f31cc2a4192be2f85"},{"version":"21639a24ea503cc53639c8a1a9e70a73ddfe0577d8d98d450657c25bc10b8904","signature":"01f068a768cefad61e2418994533579d3ee2698d9603c15e6e42c7065e652069"},{"version":"571820f1599cc5d92936c0e41cf7549ea51c6bd78b0e2668d3ce36e0bc26177d","signature":"7e505e20e150d478c79614dd799a9e13d2909d4649a72bd2b392ef7456af7245"},{"version":"d71505fe2115eda3e8ab47e5feacd4aff262753b99612f4063de984a061e0ac1","signature":"14198a29450b0274d1729f6dd5dfb55612c25ebac72249afdafe02a1b7d42ee7"},{"version":"ec19c690939ef1efd817ee646eb2206081f2728550b4562775a075fc6aac5039","signature":"e893ba8d7d80715548fb1554dcf56e35ee0bf2611c48413e598f4f94d86eb106"},{"version":"5dd7a55e029b173aa8dfc335390b442e9b5c99e37b2a22ed3260d756fe43871a","signature":"2cbc49266809e364de925a01b96b3c1db89597408867aa115a80fd697ffbefcf"},{"version":"d3d7dc17cd638574e8f4f5fad7ea12474eb73309e9874ede2b84c5afcec62f3f","signature":"db5f21f216ba88190418e3f60e0096d922c682438852d8598d6e3cd54614327a"},{"version":"06a37faa5d7a2219df0f6fbcddb9819422faf31c9a2689d5536420329f8f91db","signature":"7d111385030e1ca9c5d93d983f13c8adf7d12ae69e12577f85f28833c7202336"},{"version":"811c222ca02872d41bd1fdcbe243261cb7609f4845778ae95f55d63bc1db01c1","signature":"381793618d50379168538819bbded6e00946e945b84fc3654c82816895b42783"},{"version":"544507d2167ef11b32c4efa3da83b77c1959779e5bed18879b0f693f7c9262de","signature":"947f4d51f95357bcf1364cdaf4b13d75854d0f70b88f6cc235aaf594d46d3168"},{"version":"9a1f202fadc0b2b1b50df595d2974963b791b80162d2ee6a9dba03065eb29dcf","signature":"382f232ce07cc58e2cd115d1e253822ba90280367cec7fe1a747fea2af8f2b60"},{"version":"f717451bdeeea4953c27a39a768dc27c23e552b6d567c409d8c375db090b96cb","signature":"39810a3dc0091ce80a3641d36c0b8bb910facb2683f50273eb2ac5b5ef2a6fd8"},{"version":"5e3475d8666fdebfc48b704d49d3a2f1691615a635192c91e068cb5f053e5943","signature":"9f4728e6ca48a8d7a45f98d2eacf1f4d416edcf004ba8f6c02537398d25abf24"},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"d802f0e6b5188646d307f070d83512e8eb94651858de8a82d1e47f60fb6da4e2","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"3b724a66c071d616203133f8d099a0cb881b0b43fd42e8621e611243c5f30cd6","affectsGlobalScope":true,"impliedFormat":1},{"version":"a38efe83ff77c34e0f418a806a01ca3910c02ee7d64212a59d59bca6c2c38fa1","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"3fe4022ba1e738034e38ad9afacbf0f1f16b458ed516326f5bf9e4a31e9be1dc","impliedFormat":1},{"version":"a957197054b074bcdf5555d26286e8461680c7c878040d0f4e2d5509a7524944","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"e9b97d69510658d2f4199b7d384326b7c4053b9e6645f5c19e1c2a54ede427fc","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"f478f6f5902dc144c0d6d7bdc919c5177cac4d17a8ca8653c2daf6d7dc94317f","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"b200675fd112ffef97c166d0341fb33f6e29e9f27660adde7868e95c5bc98beb","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a0a1dda070290b92da5a50113b73ecc4dd6bcbffad66e3c86503d483eafbadcf","impliedFormat":1},{"version":"59dcad36c4549175a25998f6a8b33c1df8e18df9c12ebad1dfb25af13fd4b1ce","impliedFormat":1},{"version":"9ba5b6a30cb7961b68ad4fb18dca148db151c2c23b8d0a260fc18b83399d19d3","impliedFormat":1},{"version":"3f3edb8e44e3b9df3b7ca3219ab539710b6a7f4fe16bd884d441af207e03cd57","impliedFormat":1},{"version":"528b62e4272e3ddfb50e8eed9e359dedea0a4d171c3eb8f337f4892aac37b24b","impliedFormat":1},{"version":"d71535813e39c23baa113bc4a29a0e187b87d1105ccc8c5a6ebaca38d9a9bff2","impliedFormat":1},{"version":"8cf7e92bdb2862c2d28ba4535c43dc599cfbc0025db5ed9973d9b708dcbe3d98","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a410a7fa4baf13dd45c9bba6d71806027dc0e4e5027cdf74f36466ae9b240b7","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"1dc73f8854e5c4506131c4d95b3a6c24d0c80336d3758e95110f4c7b5cb16397","affectsGlobalScope":true,"impliedFormat":1},{"version":"636302a00dfd1f9fe6e8e91e4e9350c6518dcc8d51a474e4fc3a9ba07135100b","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"e1ce1d622f1e561f6cdf246372ead3bbc07ce0342024d0e9c7caf3136f712698","impliedFormat":1},{"version":"c878f74b6d10b267f6075c51ac1d8becd15b4aa6a58f79c0cfe3b24908357f60","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"27e4532aaaa1665d0dd19023321e4dc12a35a741d6b8e1ca3517fcc2544e0efe","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"8c2ad42d5d1a2e8e6112625767f8794d9537f1247907378543106f7ba6c7df90","affectsGlobalScope":true,"impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"98ffdf93dfdd206516971d28e3e473f417a5cfd41172e46b4ce45008f640588e","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"12e8ce658dd17662d82fb0509d2057afc5e6ee30369a2e9e0957eff725b1f11d","affectsGlobalScope":true,"impliedFormat":1},{"version":"74736930d108365d7bbe740c7154706ccfb1b2a3855a897963ab3e5c07ecbf19","impliedFormat":1},{"version":"858f999b3e4a45a4e74766d43030941466460bf8768361d254234d5870480a53","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"63b05afa6121657f25e99e1519596b0826cda026f09372c9100dfe21417f4bd6","affectsGlobalScope":true,"impliedFormat":1},{"version":"3797dd6f4ea3dc15f356f8cdd3128bfa18122213b38a80d6c1f05d8e13cbdad8","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1}],"root":[[80,93]],"options":{"allowImportingTsExtensions":false,"allowJs":true,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"importHelpers":true,"jsx":4,"module":99,"noFallthroughCasesInSwitch":true,"noPropertyAccessFromIndexSignature":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":99,"verbatimModuleSyntax":true},"referencedMap":[[139,1],[140,1],[141,2],[99,3],[142,4],[143,5],[144,6],[94,7],[97,8],[95,7],[96,7],[145,9],[146,10],[147,11],[148,12],[149,13],[150,14],[151,14],[153,15],[152,16],[154,17],[155,18],[156,19],[138,20],[98,7],[157,21],[158,22],[159,23],[192,24],[160,25],[161,26],[162,27],[163,28],[164,29],[165,30],[166,31],[167,32],[168,33],[169,34],[170,34],[171,35],[172,7],[173,7],[174,36],[176,37],[175,38],[177,39],[178,40],[179,41],[180,42],[181,43],[182,44],[183,45],[184,46],[185,47],[186,48],[187,49],[188,50],[189,51],[190,52],[191,53],[100,7],[78,7],[79,7],[13,7],[15,7],[14,7],[2,7],[16,7],[17,7],[18,7],[19,7],[20,7],[21,7],[22,7],[23,7],[3,7],[24,7],[25,7],[4,7],[26,7],[30,7],[27,7],[28,7],[29,7],[31,7],[32,7],[33,7],[5,7],[34,7],[35,7],[36,7],[37,7],[6,7],[41,7],[38,7],[39,7],[40,7],[42,7],[7,7],[43,7],[48,7],[49,7],[44,7],[45,7],[46,7],[47,7],[8,7],[53,7],[50,7],[51,7],[52,7],[54,7],[9,7],[55,7],[56,7],[57,7],[59,7],[58,7],[60,7],[61,7],[10,7],[62,7],[63,7],[64,7],[11,7],[65,7],[66,7],[67,7],[68,7],[69,7],[1,7],[70,7],[71,7],[12,7],[75,7],[73,7],[77,7],[72,7],[76,7],[74,7],[116,54],[126,55],[115,54],[136,56],[107,57],[106,58],[135,59],[129,60],[134,61],[109,62],[123,63],[108,64],[132,65],[104,66],[103,59],[133,67],[105,68],[110,69],[111,7],[114,69],[101,7],[137,70],[127,71],[118,72],[119,73],[121,74],[117,75],[120,76],[130,59],[112,77],[113,78],[122,79],[102,80],[125,71],[124,69],[128,7],[131,81],[82,82],[83,83],[81,84],[80,7],[87,85],[88,86],[93,87],[91,88],[90,88],[92,88],[89,89],[85,90],[86,91],[84,92]],"latestChangedDtsFile":"./src/index.d.ts","version":"5.8.3"}
package/package.json CHANGED
@@ -1,77 +1,111 @@
1
1
  {
2
2
  "name": "@nhost/nhost-js",
3
- "version": "3.2.8",
3
+ "version": "5.0.0-beta.1",
4
4
  "description": "Nhost JavaScript SDK",
5
- "license": "MIT",
5
+ "main": "./dist/nhost-js.cjs.js",
6
+ "module": "./dist/nhost-js.es.js",
7
+ "types": "./dist/src/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/src/index.d.ts",
11
+ "import": "./dist/nhost-js.es.js",
12
+ "require": "./dist/nhost-js.cjs.js"
13
+ },
14
+ "./auth": {
15
+ "types": "./dist/src/auth/index.d.ts",
16
+ "import": "./dist/nhost-js/auth.es.js",
17
+ "require": "./dist/nhost-js/auth.cjs.js"
18
+ },
19
+ "./storage": {
20
+ "types": "./dist/src/storage/index.d.ts",
21
+ "import": "./dist/nhost-js/storage.es.js",
22
+ "require": "./dist/nhost-js/storage.cjs.js"
23
+ },
24
+ "./graphql": {
25
+ "types": "./dist/src/graphql/index.d.ts",
26
+ "import": "./dist/nhost-js/graphql.es.js",
27
+ "require": "./dist/nhost-js/graphql.cjs.js"
28
+ },
29
+ "./fetch": {
30
+ "types": "./dist/src/fetch/index.d.ts",
31
+ "import": "./dist/nhost-js/fetch.es.js",
32
+ "require": "./dist/nhost-js/fetch.cjs.js"
33
+ }
34
+ },
35
+ "typesVersions": {
36
+ "*": {
37
+ "auth": [
38
+ "dist/src/auth/index.d.ts"
39
+ ],
40
+ "storage": [
41
+ "dist/src/storage/index.d.ts"
42
+ ],
43
+ "graphql": [
44
+ "dist/src/graphql/index.d.ts"
45
+ ],
46
+ "fetch": [
47
+ "dist/src/fetch/index.d.ts"
48
+ ]
49
+ }
50
+ },
51
+ "files": [
52
+ "dist"
53
+ ],
6
54
  "keywords": [
7
55
  "nhost",
8
- "hasura",
9
- "storage",
10
- "auth",
11
- "authentication",
12
- "graphql",
13
- "postgresql",
14
- "realtime"
56
+ "sdk",
57
+ "api",
58
+ "javascript",
59
+ "typescript"
15
60
  ],
16
61
  "author": "Nhost",
17
- "homepage": "https://nhost.io",
18
- "bugs": "https://github.com/nhost/nhost/issues",
62
+ "license": "MIT",
19
63
  "repository": {
20
64
  "type": "git",
21
- "url": "git+https://github.com/nhost/nhost.git"
65
+ "url": "https://github.com/nhost/nhost.git"
22
66
  },
23
- "main": "dist/index.cjs.js",
24
- "module": "dist/index.esm.js",
25
- "types": "dist/index.d.ts",
26
- "source": "src/index.ts",
27
- "files": [
28
- "dist",
29
- "umd",
30
- "README.md"
31
- ],
32
- "exports": {
33
- "./package.json": "./package.json",
34
- ".": {
35
- "import": {
36
- "types": "./dist/index.d.ts",
37
- "node": "./dist/index.cjs.js",
38
- "default": "./dist/index.esm.js"
39
- },
40
- "require": "./dist/index.cjs.js"
41
- }
42
- },
43
- "publishConfig": {
44
- "access": "public"
67
+ "homepage": "https://nhost.io",
68
+ "bugs": {
69
+ "url": "https://github.com/nhost/nhost/issues"
45
70
  },
46
- "dependencies": {
47
- "isomorphic-unfetch": "^3.1.0",
48
- "@nhost/graphql-js": "0.3.0",
49
- "@nhost/hasura-auth-js": "2.11.1",
50
- "@nhost/hasura-storage-js": "2.7.1"
71
+ "engines": {
72
+ "node": ">=20"
51
73
  },
52
74
  "devDependencies": {
53
- "graphql": "16.8.1",
54
- "@nhost/docgen": "0.3.0"
55
- },
56
- "peerDependencies": {
57
- "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
75
+ "@eslint/js": "^9.26.0",
76
+ "@eslint/json": "^0.12.0",
77
+ "@rollup/plugin-node-resolve": "^16.0.1",
78
+ "@types/jest": "^29.5.14",
79
+ "@types/node": "^22.15.17",
80
+ "@types/rollup-plugin-peer-deps-external": "^2.2.5",
81
+ "eslint": "^9.26.0",
82
+ "globals": "^16.1.0",
83
+ "jest": "^29.7.0",
84
+ "orval": "7.9.0",
85
+ "prettier": "^3.5.3",
86
+ "rollup-plugin-peer-deps-external": "^2.2.4",
87
+ "terser": "^5.39.0",
88
+ "ts-jest": "^29.3.2",
89
+ "typedoc": "^0.28.4",
90
+ "typedoc-plugin-markdown": "^4.6.3",
91
+ "typescript-eslint": "^8.32.0",
92
+ "vite": "^6.3.5",
93
+ "vite-plugin-dts": "^4.5.3"
58
94
  },
95
+ "sideEffects": false,
59
96
  "scripts": {
60
- "dev": "vite build --config ../../config/vite.lib.dev.config.js",
61
- "build": "run-p typecheck build:lib build:umd",
62
- "typecheck": "tsc --noEmit",
63
- "build:lib": "vite build",
64
- "build:umd": "vite build --config ../../config/vite.lib.umd.config.js",
65
- "test": "vitest run",
66
- "test:watch": "vitest",
67
- "test:coverage": "vitest run --coverage",
68
- "prettier": "prettier --check src/",
69
- "prettier:fix": "prettier --write src/",
70
- "lint": "eslint . --ext .ts,.tsx",
71
- "lint:fix": "eslint . --ext .ts,.tsx --fix",
72
- "verify": "run-p prettier lint",
73
- "verify:fix": "run-p prettier:fix lint:fix",
74
- "typedoc": "typedoc --options ./nhost-js.typedoc.json --tsconfig ./typedoc.tsconfig.json",
75
- "docgen": "pnpm typedoc && docgen --config ./nhost-js.docgen.json"
97
+ "format": "prettier --write .",
98
+ "test": "jest",
99
+ "test:format": "prettier --check .",
100
+ "test:lint": "eslint src --ext .ts,.tsx",
101
+ "lint:fix": "eslint src --ext .ts,.tsx --fix",
102
+ "test:typecheck": "tsc --noEmit",
103
+ "test:all": "pnpm test && pnpm test:format && pnpm test:lint && pnpm test:typecheck",
104
+ "build:types": "tsc -p tsconfig.json",
105
+ "build:js": "vite build --config vite.config.ts && vite build --config vite.umd.config.ts",
106
+ "build": "rm -rf dist && pnpm build:types && pnpm build:js",
107
+ "build:all": "pnpm generate && pnpm build && pnpm docs:markdown",
108
+ "generate": "orval --config build/orval.config.ts",
109
+ "docs:markdown": "./typedoc.sh"
76
110
  }
77
111
  }
@@ -1,8 +0,0 @@
1
- import { HasuraAuthClient } from '@nhost/hasura-auth-js';
2
- import { NhostClientConstructorParams } from '../utils/types';
3
-
4
- /**
5
- * Creates a client for Auth from either a subdomain or a URL
6
- */
7
- export declare function createAuthClient(params: NhostClientConstructorParams): HasuraAuthClient;
8
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/clients/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAGxD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AAE7D;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,4BAA4B,oBAcpE"}
@@ -1,107 +0,0 @@
1
- import { NhostClientConstructorParams } from '../../utils/types';
2
- import { NhostFunctionCallConfig, NhostFunctionCallResponse, NhostFunctionsConstructorParams } from './types';
3
-
4
- /**
5
- * Creates a client for Functions from either a subdomain or a URL
6
- */
7
- export declare function createFunctionsClient(params: NhostClientConstructorParams): NhostFunctionsClient;
8
- /**
9
- * @alias Functions
10
- */
11
- export declare class NhostFunctionsClient {
12
- readonly url: string;
13
- private accessToken;
14
- private adminSecret?;
15
- private headers;
16
- constructor(params: NhostFunctionsConstructorParams);
17
- /**
18
- * Use `nhost.functions.call` to call (sending a POST request to) a serverless function. Use generic
19
- * types to specify the expected response data, request body and error message.
20
- *
21
- * @example
22
- * ### Without generic types
23
- * ```ts
24
- * await nhost.functions.call('send-welcome-email', { email: 'joe@example.com', name: 'Joe Doe' })
25
- * ```
26
- *
27
- * @example
28
- * ### Using generic types
29
- * ```ts
30
- * type Data = {
31
- * message: string
32
- * }
33
- *
34
- * type Body = {
35
- * email: string
36
- * name: string
37
- * }
38
- *
39
- * type ErrorMessage = {
40
- * details: string
41
- * }
42
- *
43
- * // The function will only accept a body of type `Body`
44
- * const { res, error } = await nhost.functions.call<Data, Body, ErrorMessage>(
45
- * 'send-welcome-email',
46
- * { email: 'joe@example.com', name: 'Joe Doe' }
47
- * )
48
- *
49
- * // Now the response data is typed as `Data`
50
- * console.log(res?.data.message)
51
- *
52
- * // Now the error message is typed as `ErrorMessage`
53
- * console.log(error?.message.details)
54
- * ```
55
- *
56
- * @docs https://docs.nhost.io/reference/javascript/nhost-js/functions/call
57
- */
58
- call<TData = unknown, TBody = any, TErrorMessage = any>(url: string, body?: TBody | null, config?: NhostFunctionCallConfig): Promise<NhostFunctionCallResponse<TData, TErrorMessage>>;
59
- /**
60
- * Use `nhost.functions.setAccessToken` to a set an access token to be used in subsequent functions requests. Note that if you're signin in users with `nhost.auth.signIn()` the access token will be set automatically.
61
- *
62
- * @example
63
- * ```ts
64
- * nhost.functions.setAccessToken('some-access-token')
65
- * ```
66
- *
67
- * @docs https://docs.nhost.io/reference/javascript/nhost-js/functions/set-access-token
68
- */
69
- setAccessToken(accessToken: string | undefined): void;
70
- /**
71
- * Use `nhost.functions.getHeaders` to get the global headers sent with all functions requests.
72
- *
73
- * @example
74
- * ```ts
75
- * nhost.functions.getHeaders()
76
- * ```
77
- *
78
- * @docs https://docs.nhost.io/reference/javascript/nhost-js/functions/get-headers
79
- */
80
- getHeaders(): Record<string, string>;
81
- /**
82
- * Use `nhost.functions.setHeaders` to a set global headers to be sent in all subsequent functions requests.
83
- *
84
- * @example
85
- * ```ts
86
- * nhost.functions.setHeaders({
87
- * 'x-hasura-role': 'admin'
88
- * })
89
- * ```
90
- *
91
- * @docs https://docs.nhost.io/reference/javascript/nhost-js/functions/set-headers
92
- */
93
- setHeaders(headers?: Record<string, string>): void;
94
- /**
95
- * Use `nhost.functions.unsetHeaders` to a unset global headers sent with all functions requests.
96
- *
97
- * @example
98
- * ```ts
99
- * nhost.functions.unsetHeaders()
100
- * ```
101
- *
102
- * @docs https://docs.nhost.io/reference/javascript/nhost-js/functions/unset-headers
103
- */
104
- unsetHeaders(): void;
105
- generateAccessTokenHeaders(): NhostFunctionCallConfig['headers'];
106
- }
107
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/clients/functions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,SAAS,CAAA;AAChB;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,4BAA4B,wBASzE;AAED;;GAEG;AACH,qBAAa,oBAAoB;IAC/B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,WAAW,CAAe;IAClC,OAAO,CAAC,WAAW,CAAC,CAAQ;IAC5B,OAAO,CAAC,OAAO,CAA6B;gBAEhC,MAAM,EAAE,+BAA+B;IAQnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACG,IAAI,CAAC,KAAK,GAAG,OAAO,EAAE,KAAK,GAAG,GAAG,EAAE,aAAa,GAAG,GAAG,EAC1D,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,EACnB,MAAM,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,yBAAyB,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IA6D3D;;;;;;;;;OASG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS;IAS9C;;;;;;;;;OASG;IACH,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAIpC;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAW3C;;;;;;;;;OASG;IACH,YAAY;IAOZ,0BAA0B,IAAI,uBAAuB,CAAC,SAAS,CAAC;CAajE"}
@@ -1,28 +0,0 @@
1
- import { ErrorPayload } from '../../utils/types';
2
-
3
- export interface NhostFunctionsConstructorParams {
4
- /**
5
- * Serverless Functions endpoint.
6
- */
7
- url: string;
8
- /**
9
- * Admin secret. When set, it is sent as an `x-hasura-admin-secret` header for all requests.
10
- */
11
- adminSecret?: string;
12
- }
13
- export type NhostFunctionCallResponse<TData = unknown, TErrorMessage = any> = {
14
- res: {
15
- data: TData;
16
- status: number;
17
- statusText: string;
18
- };
19
- error: null;
20
- } | {
21
- res: null;
22
- error: ErrorPayload<TErrorMessage>;
23
- };
24
- /** Subset of RequestInit parameters that are supported by the functions client */
25
- export interface NhostFunctionCallConfig {
26
- headers?: Record<string, string>;
27
- }
28
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/clients/functions/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,MAAM,yBAAyB,CAAC,KAAK,GAAG,OAAO,EAAE,aAAa,GAAG,GAAG,IACtE;IACE,GAAG,EAAE;QACH,IAAI,EAAE,KAAK,CAAA;QACX,MAAM,EAAE,MAAM,CAAA;QACd,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,KAAK,EAAE,IAAI,CAAA;CACZ,GACD;IACE,GAAG,EAAE,IAAI,CAAA;IACT,KAAK,EAAE,YAAY,CAAC,aAAa,CAAC,CAAA;CACnC,CAAA;AAEL,kFAAkF;AAClF,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC"}
@@ -1,8 +0,0 @@
1
- import { NhostGraphqlClient } from '@nhost/graphql-js';
2
- import { NhostClientConstructorParams } from '../utils/types';
3
-
4
- /**
5
- * Creates a client for GraphQL from either a subdomain or a URL
6
- */
7
- export declare function createGraphqlClient(params: NhostClientConstructorParams): NhostGraphqlClient;
8
- //# sourceMappingURL=graphql.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/clients/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAEtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AAE7D;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,4BAA4B,sBAQvE"}
@@ -1,6 +0,0 @@
1
- export * from './auth';
2
- export * from './functions';
3
- export * from './graphql';
4
- export * from './nhost';
5
- export * from './storage';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA"}