@nxtedition/lib 26.8.5 → 26.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/s3.js +1 -9
- package/util/template/index-common.d.ts +3 -2
package/package.json
CHANGED
package/s3.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import crypto from 'node:crypto'
|
|
2
|
-
import stream from 'node:stream'
|
|
3
2
|
import tp from 'node:timers/promises'
|
|
4
3
|
import AWS from '@aws-sdk/client-s3'
|
|
5
4
|
import PQueue from 'p-queue'
|
|
@@ -197,14 +196,7 @@ export async function upload({
|
|
|
197
196
|
ContentMD5: Buffer.from(hash, 'hex').toString('base64'),
|
|
198
197
|
ContentLength: size,
|
|
199
198
|
PartNumber: number,
|
|
200
|
-
Body:
|
|
201
|
-
read() {
|
|
202
|
-
for (const chunk of chunks) {
|
|
203
|
-
this.push(chunk)
|
|
204
|
-
}
|
|
205
|
-
this.push(null)
|
|
206
|
-
},
|
|
207
|
-
}),
|
|
199
|
+
Body: Buffer.concat(chunks),
|
|
208
200
|
}),
|
|
209
201
|
)
|
|
210
202
|
logger?.debug({ number, size, etag: ETag }, 'part upload completed')
|
|
@@ -4,7 +4,8 @@ import type { DeepstreamClient } from '@nxtedition/deepstream.io-client-js'
|
|
|
4
4
|
import type { Logger } from '../../logger.js'
|
|
5
5
|
|
|
6
6
|
export interface MakeTemplateCompilerParams {
|
|
7
|
-
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
|
+
ds?: DeepstreamClient<any, any>
|
|
8
9
|
proxify?: unknown
|
|
9
10
|
logger?: Logger
|
|
10
11
|
platform?: unknown
|
|
@@ -33,7 +34,7 @@ export interface TemplateCompiler {
|
|
|
33
34
|
isTemplate: (value: unknown) => value is Nxtpression
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
export type Nxtpression<ReturnValue =
|
|
37
|
+
export type Nxtpression<ReturnValue = unknown, Context extends object = object> =
|
|
37
38
|
| {
|
|
38
39
|
/**
|
|
39
40
|
* TS-HACK: this property doesn't really exist on the nxtpression string,
|