@larsgw/formica 0.5.0 → 0.5.1

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/.gitattributes ADDED
@@ -0,0 +1 @@
1
+ *.ts linguist-language=TypeScript
@@ -0,0 +1,27 @@
1
+ name: Node.js CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ jobs:
10
+ build:
11
+
12
+ runs-on: ubuntu-latest
13
+
14
+ strategy:
15
+ matrix:
16
+ node-version: [18.x, 20.x]
17
+
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - name: Use Node.js ${{ matrix.node-version }}
21
+ uses: actions/setup-node@v3
22
+ with:
23
+ node-version: ${{ matrix.node-version }}
24
+ - run: npm install
25
+ - run: npm run build
26
+ - run: npm run lint
27
+ - run: npm test
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [0.5.1](https://github.com/identification-resources/formica/compare/v0.5.0...v0.5.1) (2023-11-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **resources:** fix file listing in processor ([009b980](https://github.com/identification-resources/formica/commit/009b98091b0f597e91213ace82252facbe3b5fed))
7
+
8
+
9
+
1
10
  # [0.5.0](https://github.com/identification-resources/formica/compare/v0.4.3...v0.5.0) (2023-10-24)
2
11
 
3
12
 
@@ -155,7 +155,7 @@ function listUnprocessedFiles(directory, outputDirectory) {
155
155
  return [4 /*yield*/, fs_1.promises.readdir(outputDirectory)];
156
156
  case 2:
157
157
  output = new (_a.apply(Set, [void 0, _b.sent()]))();
158
- return [2 /*return*/, input.filter(function (file) { return output.has(file + '-1'); })];
158
+ return [2 /*return*/, input.filter(function (file) { return !output.has(file + '-1.csv'); })];
159
159
  }
160
160
  });
161
161
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larsgw/formica",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "SDK and tools for data from the Library of Identification Resources",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -98,7 +98,7 @@ async function listFiles (directory: string): Promise<string[]> {
98
98
  async function listUnprocessedFiles (directory: string, outputDirectory: string): Promise<string[]> {
99
99
  const input = await listFiles(directory)
100
100
  const output = new Set(await fs.readdir(outputDirectory))
101
- return input.filter(file => output.has(file + '-1'))
101
+ return input.filter(file => !output.has(file + '-1.csv'))
102
102
  }
103
103
 
104
104
  async function listChangedFiles (directory: string): Promise<string[]> {