plccheck 0.0.1 → 2.1.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/README.md CHANGED
@@ -18,10 +18,3 @@ npx plccheck check ./path/to/project
18
18
  ## Publishing (maintainers)
19
19
 
20
20
  Initial publish requires npm auth once (to create the package entries in the registry). After that, releases use GitHub Actions + npm Trusted Publishing.
21
-
22
- From the repo root:
23
-
24
- ```bash
25
- npm adduser
26
- node npm/scripts/bootstrap-publish-plccheck.mjs
27
- ```
package/bin/plccheck.js CHANGED
@@ -90,12 +90,12 @@ function downloadFile(url, destPath) {
90
90
  },
91
91
  (res) => {
92
92
  if (res.statusCode && res.statusCode >= 300 && res.statusCode < 400 && res.headers.location) {
93
- out.close(() => fs.unlink(tmpPath, () => {}));
93
+ out.close(() => fs.unlink(tmpPath, () => { }));
94
94
  downloadFile(res.headers.location, destPath).then(resolve, reject);
95
95
  return;
96
96
  }
97
97
  if (res.statusCode && res.statusCode >= 400) {
98
- out.close(() => fs.unlink(tmpPath, () => {}));
98
+ out.close(() => fs.unlink(tmpPath, () => { }));
99
99
  reject(new Error(`HTTP ${res.statusCode} downloading ${url}`));
100
100
  return;
101
101
  }
@@ -113,7 +113,7 @@ function downloadFile(url, destPath) {
113
113
  },
114
114
  );
115
115
  req.on('error', (err) => {
116
- out.close(() => fs.unlink(tmpPath, () => {}));
116
+ out.close(() => fs.unlink(tmpPath, () => { }));
117
117
  reject(err);
118
118
  });
119
119
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plccheck",
3
- "version": "0.0.1",
3
+ "version": "2.1.1",
4
4
  "description": "Siemens PLC language checker + LSP CLI (SCL/ST/LAD/FBD, etc.)",
5
5
  "license": "CC-BY-NC-4.0",
6
6
  "bin": {
@@ -11,12 +11,12 @@
11
11
  "README.md"
12
12
  ],
13
13
  "optionalDependencies": {
14
- "@danielv123/plccheck-win-x64": "0.0.0",
15
- "@danielv123/plccheck-win-arm64": "0.0.0",
16
- "@danielv123/plccheck-linux-x64": "0.0.0",
17
- "@danielv123/plccheck-linux-arm64": "0.0.0",
18
- "@danielv123/plccheck-darwin-x64": "0.0.0",
19
- "@danielv123/plccheck-darwin-arm64": "0.0.0"
14
+ "@danielv123/plccheck-win-x64": "2.1.1",
15
+ "@danielv123/plccheck-win-arm64": "2.1.1",
16
+ "@danielv123/plccheck-linux-x64": "2.1.1",
17
+ "@danielv123/plccheck-linux-arm64": "2.1.1",
18
+ "@danielv123/plccheck-darwin-x64": "2.1.1",
19
+ "@danielv123/plccheck-darwin-arm64": "2.1.1"
20
20
  },
21
21
  "repository": {
22
22
  "type": "git",