skiz-parser 4.0.2 → 4.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.
Files changed (3) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +1 -1
  3. package/package.json +10 -24
package/index.d.ts CHANGED
@@ -115,5 +115,5 @@ export function parseSkizFile(
115
115
  ): Promise<SkizTrack>;
116
116
  export function parseSkizFile(
117
117
  contents: ArrayBuffer | Buffer,
118
- callback: (err: Error, result: SkizTrack) => void
118
+ callback: (err: Error | null, result: SkizTrack) => void
119
119
  ): void;
package/index.js CHANGED
@@ -272,6 +272,6 @@ export const parseSkizFile = (contents, callback) => {
272
272
  };
273
273
 
274
274
  return typeof callback === 'function'
275
- ? parse(callback.bind(null, undefined), callback)
275
+ ? parse(callback.bind(null, null), callback)
276
276
  : new Promise(parse);
277
277
  };
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "skiz-parser",
3
3
  "description": "Parse a .skiz file exported from Ski Tracks",
4
- "version": "4.0.2",
4
+ "version": "4.1.1",
5
5
  "author": "Kirk Eaton <contact@kirkeaton.ca>",
6
6
  "bugs": {
7
7
  "url": "https://github.com/kirkeaton/skiz-parser/issues"
8
8
  },
9
9
  "dependencies": {
10
10
  "csv-parser": "3.0.0",
11
- "fast-xml-parser": "4.3.5",
12
- "yauzl": "3.1.1"
11
+ "fast-xml-parser": "4.4.0",
12
+ "yauzl": "3.1.3"
13
13
  },
14
14
  "devDependencies": {
15
- "@types/node": "20.10.6",
16
- "husky": "9.0.10",
17
- "lint-staged": "15.2.2",
18
- "prettier": "3.2.4",
19
- "semantic-release": "23.0.2",
20
- "tsd": "0.30.7"
15
+ "@kirkeaton/prettier-config": "1.0.2",
16
+ "@kirkeaton/semantic-release-config": "1.0.1",
17
+ "@types/node": "20.12.13",
18
+ "prettier": "3.2.5",
19
+ "semantic-release": "23.1.1",
20
+ "tsd": "0.31.0"
21
21
  },
22
22
  "engines": {
23
23
  "node": ">=18"
@@ -38,26 +38,12 @@
38
38
  "skiz"
39
39
  ],
40
40
  "license": "BSD-3-Clause",
41
- "lint-staged": {
42
- "*.{js,json,md,ts}": "prettier --write"
43
- },
44
- "prettier": {
45
- "printWidth": 80,
46
- "singleQuote": true,
47
- "tabWidth": 2,
48
- "trailingComma": "es5"
49
- },
50
- "release": {
51
- "branches": [
52
- "main"
53
- ]
54
- },
41
+ "packageManager": "pnpm@9.1.4",
55
42
  "repository": {
56
43
  "type": "git",
57
44
  "url": "git+https://github.com/kirkeaton/skiz-parser.git"
58
45
  },
59
46
  "scripts": {
60
- "prepare": "husky",
61
47
  "test": "node --test && tsd"
62
48
  },
63
49
  "type": "module"