@stacksjs/storage 0.70.72 → 0.70.74

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.
@@ -1,3 +1,4 @@
1
1
  import type { StorageDriver } from '@stacksjs/types';
2
+ declare const adapter: unknown;
2
3
  export declare const memoryStorage: unknown;
3
4
  export declare const memory: StorageDriver;
package/dist/index.js CHANGED
@@ -736,7 +736,7 @@ class S3StorageAdapter {
736
736
  if (typeof stream.getReader !== "function") {
737
737
  throw new TypeError("[storage/s3] contents must be a web-standard ReadableStream (with .getReader()), not a Node stream.Readable. Convert via Readable.toWeb(nodeStream) before passing.");
738
738
  }
739
- const reader = stream.getReader.call(contents);
739
+ const reader = contents.getReader();
740
740
  const chunks = [];
741
741
  while (true) {
742
742
  const { done, value } = await reader.read();
@@ -2139,7 +2139,7 @@ class InMemoryStorageAdapter {
2139
2139
  if (typeof stream.getReader !== "function") {
2140
2140
  throw new TypeError("[storage/memory] contents must be a web-standard ReadableStream " + "(with .getReader()), not a Node stream.Readable. " + "Convert via Readable.toWeb(nodeStream) before passing.");
2141
2141
  }
2142
- const reader = stream.getReader.call(contents);
2142
+ const reader = contents.getReader();
2143
2143
  const chunks = [];
2144
2144
  while (true) {
2145
2145
  const { done, value } = await reader.read();
@@ -2521,7 +2521,7 @@ class BunStorageAdapter {
2521
2521
  if (typeof stream.getReader !== "function") {
2522
2522
  throw new TypeError("[storage/bun] contents must be a web-standard ReadableStream " + "(with .getReader()), not a Node stream.Readable. " + "Convert via Readable.toWeb(nodeStream) before passing.");
2523
2523
  }
2524
- const reader = stream.getReader.call(contents);
2524
+ const reader = contents.getReader();
2525
2525
  const chunks = [];
2526
2526
  while (true) {
2527
2527
  const { done, value } = await reader.read();
package/dist/types.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import type { Buffer } from 'node:buffer';
2
- import type { ReadableStream } from 'node:stream/web';
3
2
  /**
4
3
  * Helper to create async iterable from array
5
4
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.70.72",
4
+ "version": "0.70.74",
5
5
  "description": "The Stacks file system.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -51,14 +51,23 @@
51
51
  "prepublishOnly": "bun run build"
52
52
  },
53
53
  "dependencies": {
54
- "@stacksjs/ts-cloud": "^0.7.12"
54
+ "@stacksjs/ts-cloud": "^0.7.14"
55
+ },
56
+ "peerDependencies": {
57
+ "sharp": "^0.35.3"
58
+ },
59
+ "peerDependenciesMeta": {
60
+ "sharp": {
61
+ "optional": true
62
+ }
55
63
  },
56
64
  "devDependencies": {
57
- "@stacksjs/arrays": "0.70.72",
58
- "better-dx": "^0.2.12",
59
- "@stacksjs/error-handling": "0.70.72",
60
- "@stacksjs/path": "0.70.72",
61
- "@stacksjs/strings": "0.70.72",
62
- "@stacksjs/types": "0.70.72"
65
+ "@stacksjs/arrays": "0.70.74",
66
+ "better-dx": "^0.2.16",
67
+ "@stacksjs/error-handling": "0.70.74",
68
+ "@stacksjs/path": "0.70.74",
69
+ "@stacksjs/strings": "0.70.74",
70
+ "@stacksjs/types": "0.70.74",
71
+ "sharp": "^0.35.3"
63
72
  }
64
73
  }