@grunnverk/kilde 0.1.0 → 1.5.0

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,48 +1,61 @@
1
- name: Publish to NPM
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name: Node.js Package (npm)
5
+
6
+ env:
7
+ OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
2
8
 
3
9
  on:
4
- push:
5
- tags:
6
- - 'v*'
10
+ release:
11
+ types: [created]
12
+
13
+ permissions:
14
+ contents: write
15
+ packages: write
16
+ id-token: write
7
17
 
8
18
  jobs:
9
- publish:
19
+ build:
10
20
  runs-on: ubuntu-latest
11
- permissions:
12
- contents: write
13
-
21
+ timeout-minutes: 15
14
22
  steps:
15
- - name: Checkout code
16
- uses: actions/checkout@v4
17
-
18
- - name: Setup Node.js
19
- uses: actions/setup-node@v4
23
+ - uses: actions/checkout@v4
24
+ - uses: actions/setup-node@v4
20
25
  with:
21
- node-version: '24.x'
22
- registry-url: 'https://registry.npmjs.org'
23
-
26
+ node-version: 24
24
27
  - name: Install dependencies
25
- run: npm install
26
-
27
- - name: Run tests
28
- run: npm test
29
- env:
30
- OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
31
-
32
- - name: Build
33
- run: npm run build
34
-
35
- - name: Publish to NPM
36
- run: npm publish --access public
37
- env:
38
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39
-
40
- - name: Create GitHub Release
41
- uses: actions/create-release@v1
42
- env:
43
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
+ run: |
29
+ # Use public npm registry (package-lock.json is gitignored)
30
+ npm config set registry https://registry.npmjs.org/
31
+ # Clean install to ensure platform-specific optional deps (rollup native bindings) are resolved correctly
32
+ # See: https://github.com/npm/cli/issues/4828
33
+ rm -rf node_modules package-lock.json
34
+ npm install --force
35
+ timeout-minutes: 10
36
+ - run: npm run lint
37
+ - run: npm run build
38
+ - run: npm run test
39
+
40
+ publish-npm:
41
+ needs: build
42
+ runs-on: ubuntu-latest
43
+ timeout-minutes: 15
44
+ steps:
45
+ - uses: actions/checkout@v4
46
+ - uses: actions/setup-node@v4
44
47
  with:
45
- tag_name: ${{ github.ref }}
46
- release_name: Release ${{ github.ref }}
47
- draft: false
48
- prerelease: false
48
+ node-version: 24
49
+ registry-url: https://registry.npmjs.org/
50
+ - name: Update npm
51
+ run: npm install -g npm@latest
52
+ - name: Install dependencies
53
+ run: |
54
+ # Use public npm registry (package-lock.json is gitignored)
55
+ npm config set registry https://registry.npmjs.org/
56
+ # Clean install to ensure platform-specific optional deps (rollup native bindings) are resolved correctly
57
+ # See: https://github.com/npm/cli/issues/4828
58
+ rm -rf node_modules package-lock.json
59
+ npm install --force
60
+ timeout-minutes: 10
61
+ - run: npm publish --access public
package/dist/constants.js CHANGED
@@ -3,9 +3,9 @@ import path from 'path';
3
3
 
4
4
  /**
5
5
  * Version and build information (replaced at build time)
6
- */ const VERSION = '0.1.0 (working/afbf97e 2026-01-21 20:46:06 -0800) darwin arm64 v24.8.0';
7
- const BUILD_HOSTNAME = 'Tims-MacBook-Pro.local';
8
- const BUILD_TIMESTAMP = '2026-01-22T15:22:09.141Z';
6
+ */ const VERSION = '1.5.0 (HEAD/e5502cc T:v1.5.1 2026-01-22 12:46:23 -0800) linux x64 v24.12.0';
7
+ const BUILD_HOSTNAME = 'runnervmmtnos';
8
+ const BUILD_TIMESTAMP = '2026-01-22T20:51:14.392Z';
9
9
  /**
10
10
  * Program identification
11
11
  */ const PROGRAM_NAME = 'kilde';
@@ -2251,7 +2251,7 @@ var Doc = class {
2251
2251
  var version = {
2252
2252
  major: 4,
2253
2253
  minor: 3,
2254
- patch: 5
2254
+ patch: 6
2255
2255
  };
2256
2256
 
2257
2257
  // node_modules/zod/v4/core/schemas.js
@@ -3542,7 +3542,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3542
3542
  if (keyResult instanceof Promise) {
3543
3543
  throw new Error("Async schemas not supported in object keys currently");
3544
3544
  }
3545
- const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length && keyResult.issues.some((iss) => iss.code === "invalid_type" && iss.expected === "number");
3545
+ const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
3546
3546
  if (checkNumericKey) {
3547
3547
  const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
3548
3548
  if (retryResult instanceof Promise) {
@@ -11090,7 +11090,7 @@ function finalize(ctx, schema2) {
11090
11090
  }
11091
11091
  }
11092
11092
  }
11093
- if (refSchema.$ref) {
11093
+ if (refSchema.$ref && refSeen.def) {
11094
11094
  for (const key in schema3) {
11095
11095
  if (key === "$ref" || key === "allOf")
11096
11096
  continue;