@edgestore/server 0.6.0-canary.2 → 0.6.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 (43) hide show
  1. package/dist/adapters/astro/index.js +6 -12
  2. package/dist/adapters/astro/index.mjs +3 -7
  3. package/dist/adapters/express/index.js +6 -12
  4. package/dist/adapters/express/index.mjs +3 -7
  5. package/dist/adapters/fastify/index.js +6 -12
  6. package/dist/adapters/fastify/index.mjs +3 -7
  7. package/dist/adapters/hono/index.js +6 -12
  8. package/dist/adapters/hono/index.mjs +3 -7
  9. package/dist/adapters/imageTypes.js +14 -0
  10. package/dist/adapters/imageTypes.mjs +12 -0
  11. package/dist/adapters/next/app/index.js +6 -12
  12. package/dist/adapters/next/app/index.mjs +3 -7
  13. package/dist/adapters/next/pages/index.js +6 -12
  14. package/dist/adapters/next/pages/index.mjs +3 -7
  15. package/dist/adapters/remix/index.js +6 -12
  16. package/dist/adapters/remix/index.mjs +3 -7
  17. package/dist/{shared-4ec2dc90.js → adapters/shared.js} +3 -14
  18. package/dist/{shared-c6527780.mjs → adapters/shared.mjs} +2 -13
  19. package/dist/adapters/start/index.js +6 -12
  20. package/dist/adapters/start/index.mjs +3 -7
  21. package/dist/core/client/index.js +175 -0
  22. package/dist/core/client/index.mjs +173 -0
  23. package/dist/core/index.js +5 -181
  24. package/dist/core/index.mjs +2 -181
  25. package/dist/{index-1e7b1b93.js → core/sdk/index.js} +2 -11
  26. package/dist/{index-a36b09a6.mjs → core/sdk/index.mjs} +3 -11
  27. package/dist/index.js +1 -3
  28. package/dist/libs/errors/EdgeStoreCredentialsError.js +12 -0
  29. package/dist/libs/errors/EdgeStoreCredentialsError.mjs +10 -0
  30. package/dist/{utils-26113e02.js → libs/logger.js} +2 -12
  31. package/dist/{utils-cba23eef.mjs → libs/logger.mjs} +2 -11
  32. package/dist/libs/utils.js +12 -0
  33. package/dist/libs/utils.mjs +10 -0
  34. package/dist/providers/aws/index.js +1 -7
  35. package/dist/providers/aws/index.mjs +2 -6
  36. package/dist/providers/azure/index.js +1 -7
  37. package/dist/providers/azure/index.mjs +1 -5
  38. package/dist/providers/edgestore/index.js +4 -9
  39. package/dist/providers/edgestore/index.mjs +3 -6
  40. package/package.json +26 -21
  41. package/dist/index-b0fff508.js +0 -231
  42. package/dist/shared-64e9c30c.js +0 -435
  43. package/dist/utils-ab564a9e.js +0 -44
@@ -1,181 +1,2 @@
1
- import { b as buildPath, p as parsePath, i as isDev } from '../shared-c6527780.mjs';
2
- import { i as initEdgeStoreSdk } from '../index-a36b09a6.mjs';
3
- export { e as edgeStoreRawSdk, i as initEdgeStoreSdk } from '../index-a36b09a6.mjs';
4
- import '@edgestore/shared';
5
- import '@panva/hkdf';
6
- import 'cookie';
7
- import 'jose';
8
- import 'uuid';
9
-
10
- // type guard for `content`
11
- function isTextContent(content) {
12
- return typeof content === 'string';
13
- }
14
- function isBlobContent(content) {
15
- return typeof content !== 'string' && 'blob' in content;
16
- }
17
- function initEdgeStoreClient(config) {
18
- const sdk = initEdgeStoreSdk({
19
- accessKey: config.accessKey,
20
- secretKey: config.secretKey
21
- });
22
- return new Proxy({}, {
23
- get (_target, key) {
24
- const bucketName = key;
25
- const bucket = config.router.buckets[bucketName];
26
- if (!bucket) {
27
- throw new Error(`Bucket ${bucketName} not found`);
28
- }
29
- const client = {
30
- async upload (params) {
31
- const content = params.content;
32
- const ctx = 'ctx' in params ? params.ctx : {};
33
- const input = 'input' in params ? params.input : {};
34
- const { blob, extension } = await (async ()=>{
35
- if (isTextContent(content)) {
36
- return {
37
- blob: new Blob([
38
- content
39
- ], {
40
- type: 'text/plain'
41
- }),
42
- extension: 'txt'
43
- };
44
- } else if (isBlobContent(content)) {
45
- return {
46
- blob: content.blob,
47
- extension: content.extension
48
- };
49
- } else {
50
- return {
51
- blob: await getBlobFromUrl(content.url),
52
- extension: content.extension
53
- };
54
- }
55
- })();
56
- const path = buildPath({
57
- bucket,
58
- pathAttrs: {
59
- ctx,
60
- input
61
- },
62
- fileInfo: {
63
- type: blob.type,
64
- size: blob.size,
65
- extension,
66
- temporary: false,
67
- fileName: params.options?.manualFileName,
68
- replaceTargetUrl: params.options?.replaceTargetUrl
69
- }
70
- });
71
- const metadata = await bucket._def.metadata({
72
- ctx,
73
- input
74
- });
75
- const requestUploadRes = await sdk.requestUpload({
76
- bucketName,
77
- bucketType: bucket._def.type,
78
- fileInfo: {
79
- fileName: params.options?.manualFileName,
80
- replaceTargetUrl: params.options?.replaceTargetUrl,
81
- type: blob.type,
82
- size: blob.size,
83
- extension,
84
- isPublic: bucket._def.accessControl === undefined,
85
- temporary: params.options?.temporary ?? false,
86
- path,
87
- metadata
88
- }
89
- });
90
- const { signedUrl, multipart } = requestUploadRes;
91
- if (multipart) {
92
- // TODO
93
- throw new Error('Multipart upload not implemented');
94
- } else if (signedUrl) {
95
- const uploadResponse = await fetch(signedUrl, {
96
- method: 'PUT',
97
- body: blob
98
- });
99
- if (!uploadResponse.ok) {
100
- throw new Error(`Upload failed with status ${uploadResponse.status}: ${uploadResponse.statusText}`);
101
- }
102
- } else {
103
- throw new Error('Missing signedUrl');
104
- }
105
- const { parsedPath, pathOrder } = parsePath(path);
106
- return {
107
- url: requestUploadRes.accessUrl,
108
- ...{
109
- thumbnailUrl: requestUploadRes.thumbnailUrl
110
- },
111
- size: blob.size,
112
- metadata,
113
- path: parsedPath,
114
- pathOrder
115
- };
116
- },
117
- async getFile (params) {
118
- const res = await sdk.getFile(params);
119
- return {
120
- url: getUrl(res.url, config.baseUrl),
121
- size: res.size,
122
- uploadedAt: new Date(res.uploadedAt),
123
- metadata: res.metadata,
124
- path: res.path
125
- };
126
- },
127
- async confirmUpload (params) {
128
- return await sdk.confirmUpload(params);
129
- },
130
- async deleteFile (params) {
131
- return await sdk.deleteFile(params);
132
- },
133
- async listFiles (params) {
134
- const res = await sdk.listFiles({
135
- bucketName,
136
- ...params
137
- });
138
- const files = res.data.map((file)=>{
139
- return {
140
- url: getUrl(file.url, config.baseUrl),
141
- thumbnailUrl: file.thumbnailUrl,
142
- size: file.size,
143
- uploadedAt: new Date(file.uploadedAt),
144
- metadata: file.metadata,
145
- path: file.path
146
- };
147
- });
148
- return {
149
- data: files,
150
- pagination: res.pagination
151
- };
152
- }
153
- };
154
- return client;
155
- }
156
- });
157
- }
158
- /**
159
- * Protected files need third-party cookies to work.
160
- * Since third party cookies don't work on localhost,
161
- * we need to proxy the file through the server.
162
- */ function getUrl(url, baseUrl) {
163
- if (isDev() && !url.includes('/_public/')) {
164
- if (!baseUrl) {
165
- throw new Error('Missing baseUrl. You need to pass the baseUrl to `initEdgeStoreClient` to get protected files in development.');
166
- }
167
- const proxyUrl = new URL(baseUrl);
168
- proxyUrl.pathname = `${proxyUrl.pathname}/proxy-file`;
169
- proxyUrl.search = new URLSearchParams({
170
- url
171
- }).toString();
172
- return proxyUrl.toString();
173
- }
174
- return url;
175
- }
176
- async function getBlobFromUrl(url) {
177
- const res = await fetch(url);
178
- return await res.blob();
179
- }
180
-
181
- export { initEdgeStoreClient };
1
+ export { initEdgeStoreClient } from './client/index.mjs';
2
+ export { edgeStoreRawSdk, initEdgeStoreSdk } from './sdk/index.mjs';
@@ -1,16 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var shared$1 = require('@edgestore/shared');
4
- var shared = require('./shared-4ec2dc90.js');
5
-
6
- const DEFAULT_MESSAGE = `Missing EDGE_STORE_ACCESS_KEY or EDGE_STORE_SECRET_KEY.
7
- This can happen if you are trying to import something related to the backend of EdgeStore in a client component.`;
8
- class EdgeStoreCredentialsError extends Error {
9
- constructor(message = DEFAULT_MESSAGE){
10
- super(message);
11
- this.name = 'EdgeStoreCredentialsError';
12
- }
13
- }
4
+ var shared = require('../../adapters/shared.js');
5
+ var EdgeStoreCredentialsError = require('../../libs/errors/EdgeStoreCredentialsError.js');
14
6
 
15
7
  const API_ENDPOINT = shared.getEnv('EDGE_STORE_API_ENDPOINT') ?? 'https://api.edgestore.dev';
16
8
  async function makeRequest(params) {
@@ -230,6 +222,5 @@ function initEdgeStoreSdk(params) {
230
222
  };
231
223
  }
232
224
 
233
- exports.EdgeStoreCredentialsError = EdgeStoreCredentialsError;
234
225
  exports.edgeStoreRawSdk = edgeStoreRawSdk;
235
226
  exports.initEdgeStoreSdk = initEdgeStoreSdk;
@@ -1,14 +1,6 @@
1
1
  import { EdgeStoreError } from '@edgestore/shared';
2
- import { g as getEnv } from './shared-c6527780.mjs';
3
-
4
- const DEFAULT_MESSAGE = `Missing EDGE_STORE_ACCESS_KEY or EDGE_STORE_SECRET_KEY.
5
- This can happen if you are trying to import something related to the backend of EdgeStore in a client component.`;
6
- class EdgeStoreCredentialsError extends Error {
7
- constructor(message = DEFAULT_MESSAGE){
8
- super(message);
9
- this.name = 'EdgeStoreCredentialsError';
10
- }
11
- }
2
+ import { getEnv } from '../../adapters/shared.mjs';
3
+ import EdgeStoreCredentialsError from '../../libs/errors/EdgeStoreCredentialsError.mjs';
12
4
 
13
5
  const API_ENDPOINT = getEnv('EDGE_STORE_API_ENDPOINT') ?? 'https://api.edgestore.dev';
14
6
  async function makeRequest(params) {
@@ -228,4 +220,4 @@ function initEdgeStoreSdk(params) {
228
220
  };
229
221
  }
230
222
 
231
- export { EdgeStoreCredentialsError as E, edgeStoreRawSdk as e, initEdgeStoreSdk as i };
223
+ export { edgeStoreRawSdk, initEdgeStoreSdk };
package/dist/index.js CHANGED
@@ -1,12 +1,10 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var shared = require('@edgestore/shared');
6
4
 
7
5
 
8
6
 
9
- Object.defineProperty(exports, 'initEdgeStore', {
7
+ Object.defineProperty(exports, "initEdgeStore", {
10
8
  enumerable: true,
11
9
  get: function () { return shared.initEdgeStore; }
12
10
  });
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ const DEFAULT_MESSAGE = `Missing EDGE_STORE_ACCESS_KEY or EDGE_STORE_SECRET_KEY.
4
+ This can happen if you are trying to import something related to the backend of EdgeStore in a client component.`;
5
+ class EdgeStoreCredentialsError extends Error {
6
+ constructor(message = DEFAULT_MESSAGE){
7
+ super(message);
8
+ this.name = 'EdgeStoreCredentialsError';
9
+ }
10
+ }
11
+
12
+ module.exports = EdgeStoreCredentialsError;
@@ -0,0 +1,10 @@
1
+ const DEFAULT_MESSAGE = `Missing EDGE_STORE_ACCESS_KEY or EDGE_STORE_SECRET_KEY.
2
+ This can happen if you are trying to import something related to the backend of EdgeStore in a client component.`;
3
+ class EdgeStoreCredentialsError extends Error {
4
+ constructor(message = DEFAULT_MESSAGE){
5
+ super(message);
6
+ this.name = 'EdgeStoreCredentialsError';
7
+ }
8
+ }
9
+
10
+ export { EdgeStoreCredentialsError as default };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var shared = require('./shared-4ec2dc90.js');
3
+ var shared = require('../adapters/shared.js');
4
4
 
5
5
  /* eslint-disable no-console */ function _define_property(obj, key, value) {
6
6
  if (key in obj) {
@@ -52,14 +52,4 @@ class Logger {
52
52
  }
53
53
  }
54
54
 
55
- /**
56
- * Check if a route matches the current path.
57
- */ function matchPath(pathname, route) {
58
- // Allow trailing slash
59
- // Allow query string
60
- const regex = new RegExp(`${route}/?(\\?.*)?$`);
61
- return regex.test(pathname);
62
- }
63
-
64
- exports.Logger = Logger;
65
- exports.matchPath = matchPath;
55
+ module.exports = Logger;
@@ -1,4 +1,4 @@
1
- import { i as isDev } from './shared-c6527780.mjs';
1
+ import { isDev } from '../adapters/shared.mjs';
2
2
 
3
3
  /* eslint-disable no-console */ function _define_property(obj, key, value) {
4
4
  if (key in obj) {
@@ -50,13 +50,4 @@ class Logger {
50
50
  }
51
51
  }
52
52
 
53
- /**
54
- * Check if a route matches the current path.
55
- */ function matchPath(pathname, route) {
56
- // Allow trailing slash
57
- // Allow query string
58
- const regex = new RegExp(`${route}/?(\\?.*)?$`);
59
- return regex.test(pathname);
60
- }
61
-
62
- export { Logger as L, matchPath as m };
53
+ export { Logger as default };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Check if a route matches the current path.
5
+ */ function matchPath(pathname, route) {
6
+ // Allow trailing slash
7
+ // Allow query string
8
+ const regex = new RegExp(`${route}/?(\\?.*)?$`);
9
+ return regex.test(pathname);
10
+ }
11
+
12
+ exports.matchPath = matchPath;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Check if a route matches the current path.
3
+ */ function matchPath(pathname, route) {
4
+ // Allow trailing slash
5
+ // Allow query string
6
+ const regex = new RegExp(`${route}/?(\\?.*)?$`);
7
+ return regex.test(pathname);
8
+ }
9
+
10
+ export { matchPath };
@@ -1,15 +1,9 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var clientS3 = require('@aws-sdk/client-s3');
6
4
  var s3RequestPresigner = require('@aws-sdk/s3-request-presigner');
7
5
  var uuid = require('uuid');
8
- var shared = require('../../shared-4ec2dc90.js');
9
- require('@edgestore/shared');
10
- require('@panva/hkdf');
11
- require('cookie');
12
- require('jose');
6
+ var shared = require('../../adapters/shared.js');
13
7
 
14
8
  function AWSProvider(options) {
15
9
  const { accessKeyId = shared.getEnv('ES_AWS_ACCESS_KEY_ID'), secretAccessKey = shared.getEnv('ES_AWS_SECRET_ACCESS_KEY'), region = shared.getEnv('ES_AWS_REGION'), bucketName = shared.getEnv('ES_AWS_BUCKET_NAME'), endpoint = shared.getEnv('ES_AWS_ENDPOINT'), forcePathStyle = shared.getEnv('ES_AWS_FORCE_PATH_STYLE') === 'true', overwritePath } = options ?? {};
@@ -1,11 +1,7 @@
1
- import { S3Client, HeadObjectCommand, PutObjectCommand, DeleteObjectCommand } from '@aws-sdk/client-s3';
1
+ import { S3Client, DeleteObjectCommand, PutObjectCommand, HeadObjectCommand } from '@aws-sdk/client-s3';
2
2
  import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
3
3
  import { v4 } from 'uuid';
4
- import { g as getEnv } from '../../shared-c6527780.mjs';
5
- import '@edgestore/shared';
6
- import '@panva/hkdf';
7
- import 'cookie';
8
- import 'jose';
4
+ import { getEnv } from '../../adapters/shared.mjs';
9
5
 
10
6
  function AWSProvider(options) {
11
7
  const { accessKeyId = getEnv('ES_AWS_ACCESS_KEY_ID'), secretAccessKey = getEnv('ES_AWS_SECRET_ACCESS_KEY'), region = getEnv('ES_AWS_REGION'), bucketName = getEnv('ES_AWS_BUCKET_NAME'), endpoint = getEnv('ES_AWS_ENDPOINT'), forcePathStyle = getEnv('ES_AWS_FORCE_PATH_STYLE') === 'true', overwritePath } = options ?? {};
@@ -1,14 +1,8 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var storageBlob = require('@azure/storage-blob');
6
4
  var uuid = require('uuid');
7
- var shared = require('../../shared-4ec2dc90.js');
8
- require('@edgestore/shared');
9
- require('@panva/hkdf');
10
- require('cookie');
11
- require('jose');
5
+ var shared = require('../../adapters/shared.js');
12
6
 
13
7
  function AzureProvider(options) {
14
8
  const { storageAccountName = shared.getEnv('ES_AZURE_ACCOUNT_NAME'), sasToken = shared.getEnv('ES_AZURE_SAS_TOKEN'), containerName = shared.getEnv('ES_AZURE_CONTAINER_NAME'), customBaseUrl = shared.getEnv('ES_AZURE_BASE_URL') } = options ?? {};
@@ -1,10 +1,6 @@
1
1
  import { BlobServiceClient } from '@azure/storage-blob';
2
2
  import { v4 } from 'uuid';
3
- import { g as getEnv } from '../../shared-c6527780.mjs';
4
- import '@edgestore/shared';
5
- import '@panva/hkdf';
6
- import 'cookie';
7
- import 'jose';
3
+ import { getEnv } from '../../adapters/shared.mjs';
8
4
 
9
5
  function AzureProvider(options) {
10
6
  const { storageAccountName = getEnv('ES_AZURE_ACCOUNT_NAME'), sasToken = getEnv('ES_AZURE_SAS_TOKEN'), containerName = getEnv('ES_AZURE_CONTAINER_NAME'), customBaseUrl = getEnv('ES_AZURE_BASE_URL') } = options ?? {};
@@ -1,14 +1,9 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var shared$1 = require('@edgestore/shared');
6
- var shared = require('../../shared-4ec2dc90.js');
7
- var index = require('../../index-1e7b1b93.js');
8
- require('@panva/hkdf');
9
- require('cookie');
10
- require('jose');
11
- require('uuid');
4
+ var shared = require('../../adapters/shared.js');
5
+ var index = require('../../core/sdk/index.js');
6
+ var EdgeStoreCredentialsError = require('../../libs/errors/EdgeStoreCredentialsError.js');
12
7
 
13
8
  const DEFAULT_BASE_URL = 'https://files.edgestore.dev';
14
9
  function EdgeStoreProvider(options) {
@@ -17,7 +12,7 @@ function EdgeStoreProvider(options) {
17
12
  undefined?.EDGE_STORE_SECRET_KEY } = options ?? {};
18
13
  const baseUrl = shared.getEnv('EDGE_STORE_BASE_URL') ?? DEFAULT_BASE_URL;
19
14
  if (!accessKey || !secretKey) {
20
- throw new index.EdgeStoreCredentialsError();
15
+ throw new EdgeStoreCredentialsError();
21
16
  }
22
17
  const edgeStoreSdk = index.initEdgeStoreSdk({
23
18
  accessKey,
@@ -1,10 +1,7 @@
1
1
  import { EdgeStoreError } from '@edgestore/shared';
2
- import { g as getEnv } from '../../shared-c6527780.mjs';
3
- import { E as EdgeStoreCredentialsError, i as initEdgeStoreSdk } from '../../index-a36b09a6.mjs';
4
- import '@panva/hkdf';
5
- import 'cookie';
6
- import 'jose';
7
- import 'uuid';
2
+ import { getEnv } from '../../adapters/shared.mjs';
3
+ import { initEdgeStoreSdk } from '../../core/sdk/index.mjs';
4
+ import EdgeStoreCredentialsError from '../../libs/errors/EdgeStoreCredentialsError.mjs';
8
5
 
9
6
  const DEFAULT_BASE_URL = 'https://files.edgestore.dev';
10
7
  function EdgeStoreProvider(options) {
package/package.json CHANGED
@@ -1,13 +1,22 @@
1
1
  {
2
2
  "name": "@edgestore/server",
3
- "version": "0.6.0-canary.2",
3
+ "version": "0.6.0",
4
4
  "description": "Upload files with ease from React/Next.js",
5
5
  "homepage": "https://edgestore.dev",
6
- "repository": "https://github.com/edgestorejs/edgestore.git",
6
+ "license": "MIT",
7
+ "sideEffects": false,
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/edgestorejs/edgestore.git",
11
+ "directory": "packages/server"
12
+ },
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
7
16
  "author": "Ravi <me@ravi.com>",
8
17
  "main": "dist/index.js",
9
18
  "module": "dist/index.mjs",
10
- "typings": "dist/index.d.ts",
19
+ "types": "dist/index.d.ts",
11
20
  "keywords": [
12
21
  "react",
13
22
  "nodejs",
@@ -26,11 +35,6 @@
26
35
  "require": "./dist/index.js",
27
36
  "default": "./dist/index.js"
28
37
  },
29
- "./core": {
30
- "import": "./dist/core/index.mjs",
31
- "require": "./dist/core/index.js",
32
- "default": "./dist/core/index.js"
33
- },
34
38
  "./adapters/astro": {
35
39
  "import": "./dist/adapters/astro/index.mjs",
36
40
  "require": "./dist/adapters/astro/index.js",
@@ -51,16 +55,16 @@
51
55
  "require": "./dist/adapters/hono/index.js",
52
56
  "default": "./dist/adapters/hono/index.js"
53
57
  },
54
- "./adapters/next/pages": {
55
- "import": "./dist/adapters/next/pages/index.mjs",
56
- "require": "./dist/adapters/next/pages/index.js",
57
- "default": "./dist/adapters/next/pages/index.js"
58
- },
59
58
  "./adapters/next/app": {
60
59
  "import": "./dist/adapters/next/app/index.mjs",
61
60
  "require": "./dist/adapters/next/app/index.js",
62
61
  "default": "./dist/adapters/next/app/index.js"
63
62
  },
63
+ "./adapters/next/pages": {
64
+ "import": "./dist/adapters/next/pages/index.mjs",
65
+ "require": "./dist/adapters/next/pages/index.js",
66
+ "default": "./dist/adapters/next/pages/index.js"
67
+ },
64
68
  "./adapters/remix": {
65
69
  "import": "./dist/adapters/remix/index.mjs",
66
70
  "require": "./dist/adapters/remix/index.js",
@@ -71,6 +75,11 @@
71
75
  "require": "./dist/adapters/start/index.js",
72
76
  "default": "./dist/adapters/start/index.js"
73
77
  },
78
+ "./core": {
79
+ "import": "./dist/core/index.mjs",
80
+ "require": "./dist/core/index.js",
81
+ "default": "./dist/core/index.js"
82
+ },
74
83
  "./providers/aws": {
75
84
  "import": "./dist/providers/aws/index.mjs",
76
85
  "require": "./dist/providers/aws/index.js",
@@ -93,18 +102,14 @@
93
102
  "README.md",
94
103
  "LICENSE",
95
104
  "package.json",
96
- "core",
97
105
  "adapters",
106
+ "core",
98
107
  "providers",
99
- "!**/*.test.*"
108
+ "!**/*.test.*",
109
+ "!**/__tests__"
100
110
  ],
101
- "private": false,
102
- "publishConfig": {
103
- "access": "public"
104
- },
105
- "license": "MIT",
106
111
  "dependencies": {
107
- "@edgestore/shared": "0.6.0-canary.2",
112
+ "@edgestore/shared": "0.6.0",
108
113
  "@panva/hkdf": "^1.0.4",
109
114
  "cookie": "^0.7.0",
110
115
  "jose": "^4.13.1",