deboa 1.1.2 → 1.2.0
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/dist/cjs/classes/Deboa.js +3 -2
- package/dist/cjs/types/classes/Deboa.d.ts +46 -44
- package/dist/cjs/types/classes/DeboaFromFile.d.ts +23 -23
- package/dist/cjs/types/index.d.ts +4 -4
- package/dist/cjs/types/types/IAddTarEntriesParams.d.ts +5 -5
- package/dist/cjs/types/types/IControlFileOptions.d.ts +130 -130
- package/dist/cjs/types/types/IDeboa.d.ts +138 -133
- package/dist/cjs/types/types/IDeboaFromFile.d.ts +8 -8
- package/dist/cjs/types/types/INormalizeOptionsLength.d.ts +8 -8
- package/dist/cjs/types/types/IWriteFileFromLinesArgs.d.ts +10 -10
- package/dist/cjs/types/types/IWriteToArchive.d.ts +19 -19
- package/dist/cjs/types/types/MaintainerScript.d.ts +1 -1
- package/dist/cjs/types/types/Priority.d.ts +1 -1
- package/dist/cjs/types/types/Section.d.ts +1 -1
- package/dist/cjs/types/types/index.d.ts +10 -10
- package/dist/cjs/types/utils/addTarEntries.d.ts +5 -5
- package/dist/cjs/types/utils/changeOwnerToRoot.d.ts +6 -6
- package/dist/cjs/types/utils/createFileHeader.d.ts +2 -2
- package/dist/cjs/types/utils/writeFileFromLines.d.ts +5 -5
- package/dist/cjs/types/utils/writeToArchive.d.ts +5 -5
- package/dist/esm/classes/Deboa.js +3 -2
- package/dist/esm/types/classes/Deboa.d.ts +46 -44
- package/dist/esm/types/classes/DeboaFromFile.d.ts +23 -23
- package/dist/esm/types/index.d.ts +4 -4
- package/dist/esm/types/types/IAddTarEntriesParams.d.ts +5 -5
- package/dist/esm/types/types/IControlFileOptions.d.ts +130 -130
- package/dist/esm/types/types/IDeboa.d.ts +138 -133
- package/dist/esm/types/types/IDeboaFromFile.d.ts +8 -8
- package/dist/esm/types/types/INormalizeOptionsLength.d.ts +8 -8
- package/dist/esm/types/types/IWriteFileFromLinesArgs.d.ts +10 -10
- package/dist/esm/types/types/IWriteToArchive.d.ts +19 -19
- package/dist/esm/types/types/MaintainerScript.d.ts +1 -1
- package/dist/esm/types/types/Priority.d.ts +1 -1
- package/dist/esm/types/types/Section.d.ts +1 -1
- package/dist/esm/types/types/index.d.ts +10 -10
- package/dist/esm/types/utils/addTarEntries.d.ts +5 -5
- package/dist/esm/types/utils/changeOwnerToRoot.d.ts +6 -6
- package/dist/esm/types/utils/createFileHeader.d.ts +2 -2
- package/dist/esm/types/utils/writeFileFromLines.d.ts +5 -5
- package/dist/esm/types/utils/writeToArchive.d.ts +5 -5
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type Section = 'admin' | 'cli-mono' | 'comm' | 'database' | 'debug' | 'devel' | 'doc' | 'editors' | 'education' | 'electronics' | 'embedded' | 'fonts' | 'games' | 'gnome' | 'gnu-r' | 'gnustep' | 'graphics' | 'hamradio' | 'haskell' | 'httpd' | 'interpreters' | 'introspection' | 'java' | 'javascript' | 'kde' | 'kernel' | 'libdevel' | 'libs' | 'lisp' | 'localization' | 'mail' | 'math' | 'metapackages' | 'misc' | 'net' | 'news' | 'ocaml' | 'oldlibs' | 'otherosfs' | 'perl' | 'php' | 'python' | 'ruby' | 'rust' | 'science' | 'shells' | 'sound' | 'tasks' | 'tex' | 'text' | 'utils' | 'vcs' | 'video' | 'web' | 'x11' | 'xfce' | 'zope' | undefined;
|
|
1
|
+
export declare type Section = 'admin' | 'cli-mono' | 'comm' | 'database' | 'debug' | 'devel' | 'doc' | 'editors' | 'education' | 'electronics' | 'embedded' | 'fonts' | 'games' | 'gnome' | 'gnu-r' | 'gnustep' | 'graphics' | 'hamradio' | 'haskell' | 'httpd' | 'interpreters' | 'introspection' | 'java' | 'javascript' | 'kde' | 'kernel' | 'libdevel' | 'libs' | 'lisp' | 'localization' | 'mail' | 'math' | 'metapackages' | 'misc' | 'net' | 'news' | 'ocaml' | 'oldlibs' | 'otherosfs' | 'perl' | 'php' | 'python' | 'ruby' | 'rust' | 'science' | 'shells' | 'sound' | 'tasks' | 'tex' | 'text' | 'utils' | 'vcs' | 'video' | 'web' | 'x11' | 'xfce' | 'zope' | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './IAddTarEntriesParams';
|
|
2
|
-
export * from './IControlFileOptions';
|
|
3
|
-
export * from './IDeboa';
|
|
4
|
-
export * from './IDeboaFromFile';
|
|
5
|
-
export * from './INormalizeOptionsLength';
|
|
6
|
-
export * from './IWriteFileFromLinesArgs';
|
|
7
|
-
export * from './IWriteToArchive';
|
|
8
|
-
export * from './MaintainerScript';
|
|
9
|
-
export * from './Priority';
|
|
10
|
-
export * from './Section';
|
|
1
|
+
export * from './IAddTarEntriesParams';
|
|
2
|
+
export * from './IControlFileOptions';
|
|
3
|
+
export * from './IDeboa';
|
|
4
|
+
export * from './IDeboaFromFile';
|
|
5
|
+
export * from './INormalizeOptionsLength';
|
|
6
|
+
export * from './IWriteFileFromLinesArgs';
|
|
7
|
+
export * from './IWriteToArchive';
|
|
8
|
+
export * from './MaintainerScript';
|
|
9
|
+
export * from './Priority';
|
|
10
|
+
export * from './Section';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IAddTarEntriesParams } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Adds entries to the .tar archive after all the files are packed.
|
|
4
|
-
*/
|
|
5
|
-
export declare function addTarEntries({ entries, pack, }: IAddTarEntriesParams): Promise<void>;
|
|
1
|
+
import { IAddTarEntriesParams } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Adds entries to the .tar archive after all the files are packed.
|
|
4
|
+
*/
|
|
5
|
+
export declare function addTarEntries({ entries, pack, }: IAddTarEntriesParams): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IDeboa } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Ensures all files/directories in the .tar archive are owned by root,
|
|
4
|
-
* not by the current user when running on Unix or by a invalid user on Windows.
|
|
5
|
-
*/
|
|
6
|
-
export declare const changeOwnerToRoot: Exclude<IDeboa['modifyTarHeader'], string>;
|
|
1
|
+
import type { IDeboa } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Ensures all files/directories in the .tar archive are owned by root,
|
|
4
|
+
* not by the current user when running on Unix or by a invalid user on Windows.
|
|
5
|
+
*/
|
|
6
|
+
export declare const changeOwnerToRoot: Exclude<IDeboa['modifyTarHeader'], string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { INormalizeOptionLength } from '../types';
|
|
2
|
-
export declare function createFileHeader(options: INormalizeOptionLength): string;
|
|
1
|
+
import { INormalizeOptionLength } from '../types';
|
|
2
|
+
export declare function createFileHeader(options: INormalizeOptionLength): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IWriteFileFromLinesArgs } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a file from a string array.
|
|
4
|
-
*/
|
|
5
|
-
export declare function writeFileFromLines({ filePath, lines, }: IWriteFileFromLinesArgs): Promise<void>;
|
|
1
|
+
import { IWriteFileFromLinesArgs } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a file from a string array.
|
|
4
|
+
*/
|
|
5
|
+
export declare function writeFileFromLines({ filePath, lines, }: IWriteFileFromLinesArgs): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IWriteToArchive } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
*/
|
|
5
|
-
export declare function writeToArchive({ header, isARFile, readStream, writeStream, }: IWriteToArchive): Promise<void>;
|
|
1
|
+
import { IWriteToArchive } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export declare function writeToArchive({ header, isARFile, readStream, writeStream, }: IWriteToArchive): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deboa",
|
|
3
3
|
"author": "Erik Moura <erikian@erikian.dev>",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "Create .deb files in any platform with Node.js",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
7
7
|
"module": "./dist/esm/index.js",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"url": "https://github.com/erikian/deboa.git"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"fast-folder-size": "^
|
|
35
|
+
"fast-folder-size": "^2.4.0",
|
|
36
36
|
"fs-extra": "^10.1.0",
|
|
37
37
|
"lzma-native": "^8.0.6",
|
|
38
|
-
"tar-fs": "^2.1.
|
|
38
|
+
"tar-fs": "^2.1.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@swc/cli": "^0.1.57",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"@typescript-eslint/eslint-plugin": "^4.23.0",
|
|
49
49
|
"@typescript-eslint/parser": "^4.23.0",
|
|
50
50
|
"concurrently": "^7.2.2",
|
|
51
|
-
"eslint": "^7.
|
|
51
|
+
"eslint": "^7.32.0",
|
|
52
52
|
"eslint-config-prettier": "^8.3.0",
|
|
53
53
|
"eslint-config-standard": "^16.0.2",
|
|
54
54
|
"eslint-plugin-import": "^2.22.1",
|
|
55
55
|
"eslint-plugin-node": "^11.1.0",
|
|
56
|
-
"eslint-plugin-prettier": "^
|
|
56
|
+
"eslint-plugin-prettier": "^4.2.5",
|
|
57
57
|
"eslint-plugin-promise": "^5.1.0",
|
|
58
58
|
"eslint-plugin-standard": "^5.0.0",
|
|
59
59
|
"prettier": "2.3.0",
|