@soleil-se/build-app 2.2.0 → 2.3.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/CHANGELOG.md +9 -1
- package/index.js +13 -2
- package/package.json +1 -1
- package/requests/api/addonRequest.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,13 +4,21 @@ title: Changelog
|
|
|
4
4
|
|
|
5
5
|
Baseras på [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) och använder [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [2.3.0] - 2025-04-16
|
|
8
|
+
|
|
9
|
+
- Lägg till nytt argument för att kunna ange yttertligare sökväg för watchern, `--append-watch-path`.
|
|
10
|
+
|
|
11
|
+
## [2.2.1] - 2025-04-09
|
|
12
|
+
|
|
13
|
+
- Ta bort encoding av lösenord vid anrop.
|
|
14
|
+
|
|
7
15
|
## [2.2.0] - 2025-03-26
|
|
8
16
|
|
|
9
17
|
- Lägg till task för bundling av `headless.js`.
|
|
10
18
|
|
|
11
19
|
## [2.1.7] - 2025-03-05
|
|
12
20
|
|
|
13
|
-
- Ta bort encoding av användarnamn
|
|
21
|
+
- Ta bort encoding av användarnamn vid anrop.
|
|
14
22
|
|
|
15
23
|
## [2.1.6] - 2025-02-28
|
|
16
24
|
|
package/index.js
CHANGED
|
@@ -13,6 +13,16 @@ import { client, server } from './rollup/index.js';
|
|
|
13
13
|
import { activate, upload, sign } from './requests/index.js';
|
|
14
14
|
import config from './config/index.js';
|
|
15
15
|
|
|
16
|
+
function getWatchOptions() {
|
|
17
|
+
const appendPath = args['append-watch-path'];
|
|
18
|
+
const defaultIgnored = ['dist', 'node_modules', '*.md', '.*', 'package-lock.json', 'yarn.lock', '*config*.*'];
|
|
19
|
+
const ignored = appendPath
|
|
20
|
+
? defaultIgnored.map((ignore) => `${appendPath}/${ignore}`).concat(defaultIgnored)
|
|
21
|
+
: defaultIgnored;
|
|
22
|
+
const paths = appendPath ? ['.', appendPath] : ['.'];
|
|
23
|
+
return { paths, ignored };
|
|
24
|
+
}
|
|
25
|
+
|
|
16
26
|
async function main() {
|
|
17
27
|
const manifest = await readManifest();
|
|
18
28
|
const zipPath = `./dist/${manifest.id}-${manifest.version}.zip`;
|
|
@@ -93,9 +103,10 @@ async function main() {
|
|
|
93
103
|
}
|
|
94
104
|
|
|
95
105
|
if (args.watch) {
|
|
96
|
-
|
|
106
|
+
const { paths, ignored } = getWatchOptions(args);
|
|
107
|
+
watch(paths, () => runTasks(tasks), {
|
|
97
108
|
message: 'Watching for changes...',
|
|
98
|
-
ignored
|
|
109
|
+
ignored,
|
|
99
110
|
});
|
|
100
111
|
if (!args.project) createChecksumChecker();
|
|
101
112
|
} else {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ const [username, password] = Buffer.from(auth || '', 'base64').toString().split(
|
|
|
9
9
|
const options = {
|
|
10
10
|
prefixUrl: `${host}/rest-api/1/0/${encodeURIComponent(name)}/`,
|
|
11
11
|
username,
|
|
12
|
-
password
|
|
12
|
+
password,
|
|
13
13
|
method: 'POST',
|
|
14
14
|
responseType: 'json',
|
|
15
15
|
resolveBodyOnly: true,
|