lean-s3 0.9.11 → 0.9.12

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 (2) hide show
  1. package/dist/index.mjs +9 -9
  2. package/package.json +34 -32
package/dist/index.mjs CHANGED
@@ -925,11 +925,11 @@ var S3Client = class {
925
925
  async [kSignedRequest](region, endpoint, bucket, method, pathWithoutBucket, query, body, additionalSignedHeaders, additionalUnsignedHeaders, contentHash, signal) {
926
926
  const url = buildRequestUrl(endpoint, bucket, region, pathWithoutBucket);
927
927
  if (query) url.search = query;
928
- const now$2 = now();
928
+ const now$3 = now();
929
929
  const contentHashStr = contentHash?.toString("hex") ?? unsignedPayload;
930
930
  const headersToBeSigned = prepareHeadersForSigning({
931
931
  host: url.host,
932
- "x-amz-date": now$2.dateTime,
932
+ "x-amz-date": now$3.dateTime,
933
933
  "x-amz-content-sha256": contentHashStr,
934
934
  ...additionalSignedHeaders
935
935
  });
@@ -940,7 +940,7 @@ var S3Client = class {
940
940
  dispatcher: this.#dispatcher,
941
941
  headers: {
942
942
  ...headersToBeSigned,
943
- authorization: getAuthorizationHeader(this.#keyCache, method, url.pathname, query ?? "", now$2, headersToBeSigned, region, contentHashStr, this.#options.accessKeyId, this.#options.secretAccessKey),
943
+ authorization: getAuthorizationHeader(this.#keyCache, method, url.pathname, query ?? "", now$3, headersToBeSigned, region, contentHashStr, this.#options.accessKeyId, this.#options.secretAccessKey),
944
944
  ...additionalUnsignedHeaders,
945
945
  "user-agent": "lean-s3"
946
946
  },
@@ -960,7 +960,7 @@ var S3Client = class {
960
960
  const endpoint = this.#options.endpoint;
961
961
  const region = this.#options.region;
962
962
  const url = buildRequestUrl(endpoint, bucket, region, path);
963
- const now$1 = now();
963
+ const now$2 = now();
964
964
  const contentHashStr = contentHash?.toString("hex") ?? unsignedPayload;
965
965
  const headersToBeSigned = prepareHeadersForSigning({
966
966
  "content-length": contentLength?.toString() ?? void 0,
@@ -968,7 +968,7 @@ var S3Client = class {
968
968
  host: url.host,
969
969
  range: getRangeHeader(rageStart, rangeEndExclusive),
970
970
  "x-amz-content-sha256": contentHashStr,
971
- "x-amz-date": now$1.dateTime
971
+ "x-amz-date": now$2.dateTime
972
972
  });
973
973
  let response;
974
974
  try {
@@ -978,7 +978,7 @@ var S3Client = class {
978
978
  dispatcher: this.#dispatcher,
979
979
  headers: {
980
980
  ...headersToBeSigned,
981
- authorization: getAuthorizationHeader(this.#keyCache, "PUT", url.pathname, url.search, now$1, headersToBeSigned, region, contentHashStr, this.#options.accessKeyId, this.#options.secretAccessKey),
981
+ authorization: getAuthorizationHeader(this.#keyCache, "PUT", url.pathname, url.search, now$2, headersToBeSigned, region, contentHashStr, this.#options.accessKeyId, this.#options.secretAccessKey),
982
982
  "user-agent": "lean-s3"
983
983
  },
984
984
  body: data
@@ -1001,7 +1001,7 @@ var S3Client = class {
1001
1001
  const bucket = this.#options.bucket;
1002
1002
  const endpoint = this.#options.endpoint;
1003
1003
  const region = this.#options.region;
1004
- const now$3 = now();
1004
+ const now$1 = now();
1005
1005
  const url = buildRequestUrl(endpoint, bucket, region, path);
1006
1006
  const range = getRangeHeader(rageStart, rangeEndExclusive);
1007
1007
  const contentHashStr = contentHash?.toString("hex") ?? unsignedPayload;
@@ -1010,7 +1010,7 @@ var S3Client = class {
1010
1010
  host: url.host,
1011
1011
  range,
1012
1012
  "x-amz-content-sha256": contentHashStr,
1013
- "x-amz-date": now$3.dateTime
1013
+ "x-amz-date": now$1.dateTime
1014
1014
  });
1015
1015
  const ac = new AbortController();
1016
1016
  return new ReadableStream({
@@ -1028,7 +1028,7 @@ var S3Client = class {
1028
1028
  dispatcher: this.#dispatcher,
1029
1029
  headers: {
1030
1030
  ...headersToBeSigned,
1031
- authorization: getAuthorizationHeader(this.#keyCache, "GET", url.pathname, url.search, now$3, headersToBeSigned, region, contentHashStr, this.#options.accessKeyId, this.#options.secretAccessKey),
1031
+ authorization: getAuthorizationHeader(this.#keyCache, "GET", url.pathname, url.search, now$1, headersToBeSigned, region, contentHashStr, this.#options.accessKeyId, this.#options.secretAccessKey),
1032
1032
  "user-agent": "lean-s3"
1033
1033
  }
1034
1034
  }).then((response) => {
package/package.json CHANGED
@@ -1,64 +1,66 @@
1
1
  {
2
2
  "name": "lean-s3",
3
- "author": "Niklas Mollenhauer",
4
- "license": "MIT",
5
- "version": "0.9.11",
3
+ "version": "0.9.12",
6
4
  "description": "A server-side S3 API for the regular user.",
7
5
  "keywords": [
8
- "s3",
9
- "client",
10
- "s3 client",
11
- "s3 sdk",
6
+ "AWS S3",
7
+ "Azure Blob Storage",
8
+ "Ceph",
9
+ "Google Cloud Storage",
12
10
  "b2",
13
11
  "b2 client",
14
- "r2",
15
- "r2 client",
12
+ "backblaze",
13
+ "client",
16
14
  "cloudflare",
17
15
  "cloudflare r2",
18
- "AWS S3",
19
- "Azure Blob Storage",
20
- "Google Cloud Storage",
21
- "Ceph",
22
16
  "mibion",
23
- "backblaze"
17
+ "r2",
18
+ "r2 client",
19
+ "s3",
20
+ "s3 client",
21
+ "s3 sdk"
24
22
  ],
23
+ "license": "MIT",
24
+ "author": "Niklas Mollenhauer",
25
25
  "repository": {
26
26
  "type": "git",
27
27
  "url": "https://github.com/nikeee/lean-s3"
28
28
  },
29
- "types": "./dist/index.d.mts",
30
- "main": "./dist/index.mjs",
31
- "type": "module",
32
29
  "files": [
33
30
  "dist"
34
31
  ],
32
+ "type": "module",
33
+ "main": "./dist/index.mjs",
34
+ "types": "./dist/index.d.mts",
35
35
  "scripts": {
36
36
  "build": "tsdown",
37
37
  "test": "tsgo && tsx --test src/*.test.ts src/test/*.test.ts",
38
38
  "test:integration": "tsgo && tsx --test src/test/test.integration.ts",
39
- "ci": "biome ci ./src",
39
+ "ci": "oxlint --deny-warnings -f github",
40
40
  "docs": "typedoc",
41
- "lint": "biome lint ./src",
42
- "format": "biome check --write ./src",
41
+ "format": "oxfmt",
42
+ "lint": "oxlint",
43
+ "lint:fix": "oxlint --fix",
43
44
  "prepublishOnly": "npm run build"
44
45
  },
45
46
  "dependencies": {
46
- "fast-xml-parser": "^5.3.4",
47
- "undici": "^7.20.0"
47
+ "fast-xml-parser": "^5.3.7",
48
+ "undici": "^7.22.0"
48
49
  },
49
50
  "devDependencies": {
50
- "@biomejs/biome": "2.3.14",
51
- "@testcontainers/localstack": "^11.11.0",
52
- "@testcontainers/minio": "^11.11.0",
53
- "@testcontainers/s3mock": "^11.11.0",
54
- "@types/node": "^25.2.0",
55
- "@typescript/native-preview": "^7.0.0-dev.20260203.1",
51
+ "@testcontainers/localstack": "^11.12.0",
52
+ "@testcontainers/minio": "^11.12.0",
53
+ "@testcontainers/s3mock": "^11.12.0",
54
+ "@types/node": "^25.3.0",
55
+ "@typescript/native-preview": "^7.0.0-dev.20260220.1",
56
56
  "expect": "^30.2.0",
57
- "lefthook": "^2.1.0",
58
- "testcontainers": "^11.11.0",
59
- "tsdown": "^0.20.1",
57
+ "lefthook": "^2.1.1",
58
+ "oxfmt": "^0.34.0",
59
+ "oxlint": "^1.49.0",
60
+ "testcontainers": "^11.12.0",
61
+ "tsdown": "^0.20.3",
60
62
  "tsx": "^4.21.0",
61
- "typedoc": "^0.28.16"
63
+ "typedoc": "^0.28.17"
62
64
  },
63
65
  "engines": {
64
66
  "node": "^20.19.5 || ^22.21.1 || ^24.11.0 || ^25.1.0"