@bgord/bun 1.10.15 → 1.10.16

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": "@bgord/bun",
3
- "version": "1.10.15",
3
+ "version": "1.10.16",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "author": "Bartosz Gordon",
@@ -20,18 +20,18 @@
20
20
  "preinstall": "bunx only-allow bun"
21
21
  },
22
22
  "devDependencies": {
23
- "@biomejs/biome": "2.3.14",
24
- "@commitlint/cli": "20.4.1",
25
- "@commitlint/config-conventional": "20.4.1",
23
+ "@biomejs/biome": "2.4.3",
24
+ "@commitlint/cli": "20.4.2",
25
+ "@commitlint/config-conventional": "20.4.2",
26
26
  "@stryker-mutator/core": "9.5.1",
27
27
  "@types/bun": "1.3.9",
28
- "@types/nodemailer": "7.0.9",
28
+ "@types/nodemailer": "7.0.10",
29
29
  "@types/yazl": "3.3.0",
30
30
  "better-auth": "1.4.18",
31
31
  "cspell": "9.6.4",
32
32
  "csv": "6.4.1",
33
- "knip": "5.83.1",
34
- "lefthook": "2.1.0",
33
+ "knip": "5.84.1",
34
+ "lefthook": "2.1.1",
35
35
  "lockfile-lint": "5.0.0",
36
36
  "nodemailer": "8.0.1",
37
37
  "only-allow": "1.2.2",
@@ -43,8 +43,8 @@
43
43
  "zod": "4.3.6"
44
44
  },
45
45
  "dependencies": {
46
- "@bgord/tools": "1.3.16",
47
- "hono": "4.11.9",
46
+ "@bgord/tools": "1.3.17",
47
+ "hono": "4.12.0",
48
48
  "node-cache": "5.1.2"
49
49
  },
50
50
  "peerDependencies": {
@@ -21,11 +21,9 @@ export class EnvironmentLoaderEncryptedAdapter<Schema extends z.ZodObject<any>>
21
21
 
22
22
  async load(): Promise<Readonly<EnvironmentResultType<Schema>>> {
23
23
  const file = await this.deps.Encryption.view(this.config.path);
24
- const content = new TextDecoder().decode(file);
24
+ const plaintext = new TextDecoder().decode(file);
25
+ const env = EnvironmentFileParser.parse(plaintext);
25
26
 
26
- return Object.freeze({
27
- ...this.config.Schema.parse(EnvironmentFileParser.parse(content)),
28
- type: this.config.type,
29
- });
27
+ return Object.freeze({ ...this.config.Schema.parse(env), type: this.config.type });
30
28
  }
31
29
  }