all-the-public-replicate-models 1.95.0 → 1.97.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.
@@ -11,12 +11,12 @@ jobs:
11
11
 
12
12
  steps:
13
13
  - name: Checkout code
14
- uses: actions/checkout@v3
14
+ uses: actions/checkout@v4
15
15
 
16
16
  - name: Setup Node.js
17
- uses: actions/setup-node@v3
17
+ uses: actions/setup-node@v4
18
18
  with:
19
- node-version: '18'
19
+ node-version: '20'
20
20
  registry-url: 'https://registry.npmjs.org'
21
21
 
22
22
  - name: Install Dependencies
package/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
-
2
1
  import { readFile } from 'fs/promises';
2
+ import { dirname, join } from 'path';
3
+ import { fileURLToPath } from 'url';
4
+ const __dirname = dirname(fileURLToPath(import.meta.url));
5
+ const models = JSON.parse(await readFile(join(__dirname, 'models.json'), 'utf8'));
3
6
 
4
- const models = JSON.parse(await readFile('./models.json', 'utf8'));
5
-
6
-
7
- export default models;
7
+ export default models;