Skip to content

Commit 2a94b28

Browse files
authored
chore: fix comments (#56)
1 parent 0d8a57d commit 2a94b28

File tree

5 files changed

+658
-848
lines changed

5 files changed

+658
-848
lines changed

index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,12 @@ export declare class ReadonlyHeader {
387387
}
388388

389389
/**
390+
* See [https://en.wikipedia.org/wiki/Tar_%28computing%29#UStar_format](https://en.wikipedia.org/wiki/Tar_%28computing%29#UStar_format)
390391
* Indicate for the type of file described by a header.
391392
*
392393
* Each `Header` has an `entry_type` method returning an instance of this type
393394
* which can be used to inspect what the header is describing.
395+
*
394396
* A non-exhaustive enum representing the possible entry types
395397
*/
396398
export declare const enum EntryType {
@@ -421,4 +423,3 @@ export declare const enum EntryType {
421423
/** Extended Header */
422424
XHeader = 12
423425
}
424-

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
// prettier-ignore
22
/* eslint-disable */
3+
// @ts-nocheck
34
/* auto-generated by NAPI-RS */
45

5-
const { readFileSync } = require('fs')
6+
const { createRequire } = require('node:module')
7+
require = createRequire(__filename)
68

9+
const { readFileSync } = require('node:fs')
710
let nativeBinding = null
811
const loadErrors = []
912

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,21 @@
6363
},
6464
"devDependencies": {
6565
"@napi-rs/cli": "^3.0.0-alpha.62",
66-
"@napi-rs/lzma": "^1.3.0",
66+
"@napi-rs/lzma": "^1.4.1",
6767
"@oxc-node/core": "^0.0.15",
6868
"@taplo/cli": "^0.7.0",
69-
"@types/node": "^22.0.0",
69+
"@types/node": "^22.10.1",
7070
"@types/tar": "^6",
71-
"ava": "^6.1.2",
71+
"ava": "^6.2.0",
7272
"chalk": "^5.3.0",
73-
"husky": "^9.0.11",
74-
"lint-staged": "^15.2.2",
75-
"npm-run-all2": "^7.0.0",
76-
"oxlint": "^0.13.0",
77-
"prettier": "^3.2.5",
78-
"tar": "^7.0.1",
79-
"tinybench": "^3.0.0",
80-
"typescript": "^5.4.5"
73+
"husky": "^9.1.7",
74+
"lint-staged": "^15.2.10",
75+
"npm-run-all2": "^7.0.1",
76+
"oxlint": "^0.14.0",
77+
"prettier": "^3.4.1",
78+
"tar": "^7.4.3",
79+
"tinybench": "^3.0.7",
80+
"typescript": "^5.7.2"
8181
},
8282
"lint-staged": {
8383
"*.@(js|ts|tsx)": [

src/header.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ use napi_derive::napi;
66

77
use crate::entry::Entry;
88

9-
// See https://en.wikipedia.org/wiki/Tar_%28computing%29#UStar_format
9+
/// See [https://en.wikipedia.org/wiki/Tar_%28computing%29#UStar_format](https://en.wikipedia.org/wiki/Tar_%28computing%29#UStar_format)
1010
/// Indicate for the type of file described by a header.
1111
///
1212
/// Each `Header` has an `entry_type` method returning an instance of this type
1313
/// which can be used to inspect what the header is describing.
14-
14+
///
1515
/// A non-exhaustive enum representing the possible entry types
1616
#[napi]
1717
pub enum EntryType {

0 commit comments

Comments
 (0)