Skip to content

Commit

Permalink
chore: fix comments (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn authored Dec 4, 2024
1 parent 0d8a57d commit 2a94b28
Show file tree
Hide file tree
Showing 5 changed files with 658 additions and 848 deletions.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,12 @@ export declare class ReadonlyHeader {
}

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

5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
// prettier-ignore
/* eslint-disable */
// @ts-nocheck
/* auto-generated by NAPI-RS */

const { readFileSync } = require('fs')
const { createRequire } = require('node:module')
require = createRequire(__filename)

const { readFileSync } = require('node:fs')
let nativeBinding = null
const loadErrors = []

Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,21 @@
},
"devDependencies": {
"@napi-rs/cli": "^3.0.0-alpha.62",
"@napi-rs/lzma": "^1.3.0",
"@napi-rs/lzma": "^1.4.1",
"@oxc-node/core": "^0.0.15",
"@taplo/cli": "^0.7.0",
"@types/node": "^22.0.0",
"@types/node": "^22.10.1",
"@types/tar": "^6",
"ava": "^6.1.2",
"ava": "^6.2.0",
"chalk": "^5.3.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"npm-run-all2": "^7.0.0",
"oxlint": "^0.13.0",
"prettier": "^3.2.5",
"tar": "^7.0.1",
"tinybench": "^3.0.0",
"typescript": "^5.4.5"
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"npm-run-all2": "^7.0.1",
"oxlint": "^0.14.0",
"prettier": "^3.4.1",
"tar": "^7.4.3",
"tinybench": "^3.0.7",
"typescript": "^5.7.2"
},
"lint-staged": {
"*.@(js|ts|tsx)": [
Expand Down
4 changes: 2 additions & 2 deletions src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ use napi_derive::napi;

use crate::entry::Entry;

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

0 comments on commit 2a94b28

Please sign in to comment.