@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "26.8.5",
3
+ "version": "26.8.7",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
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: new stream.Readable({
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
- ds?: DeepstreamClient<unknown>
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 = string, Context extends object = object> =
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,