zarro 1.165.2 → 1.165.6
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/gulp-tasks/modules/fetch-github-release/dist-copy/constants.d.ts +2 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/constants.js +10 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/fetchRelease.d.ts +22 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/fetchRelease.js +123 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/getAssetDefault.d.ts +2 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/getAssetDefault.js +34 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/index.d.ts +2 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/index.js +18 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/isUpdateAvailable.d.ts +99 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/isUpdateAvailable.js +50 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/types.d.ts +14 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/types.js +2 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/util.d.ts +3 -0
- package/gulp-tasks/modules/fetch-github-release/dist-copy/util.js +39 -0
- package/gulp-tasks/modules/fetch-github-release.js +15 -5
- package/package.json +9 -2
- package/gulp-tasks/modules/fetch-github-release/.editorconfig +0 -10
- package/gulp-tasks/modules/fetch-github-release/.gitattributes +0 -1
- package/gulp-tasks/modules/fetch-github-release/.github/.kodiak.toml +0 -1
- package/gulp-tasks/modules/fetch-github-release/.github/workflows/release-please.yml +0 -26
- package/gulp-tasks/modules/fetch-github-release/.github/workflows/test.yml +0 -26
- package/gulp-tasks/modules/fetch-github-release/.prettierrc.json +0 -7
- package/gulp-tasks/modules/fetch-github-release/CHANGELOG.md +0 -8
- package/gulp-tasks/modules/fetch-github-release/package-lock.json +0 -12412
- package/gulp-tasks/modules/fetch-github-release/package.json +0 -78
- package/gulp-tasks/modules/fetch-github-release/renovate.json5 +0 -19
- package/gulp-tasks/modules/fetch-github-release/src/__tests__/index.ts +0 -51
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fetch-github-release",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Fetch binary from Github releases for your platform",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git://github.com/valerybugakov/fetch-github-release.git"
|
|
8
|
-
},
|
|
9
|
-
"main": "dist/index.js",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"prepublishOnly": "npm ci && run-s build test",
|
|
12
|
-
"test": "jest",
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"build:watch": "tsc --watch",
|
|
15
|
-
"format": "run-s format:fix:*",
|
|
16
|
-
"format:ci": "run-s format:check:*",
|
|
17
|
-
"format:check:lint": "cross-env eslint $npm_package_config_eslint",
|
|
18
|
-
"format:fix:lint": "cross-env eslint --fix $npm_package_config_eslint",
|
|
19
|
-
"format:check:prettier": "cross-env prettier --check $npm_package_config_prettier",
|
|
20
|
-
"format:fix:prettier": "cross-env prettier --write $npm_package_config_prettier",
|
|
21
|
-
"prepare": "husky install"
|
|
22
|
-
},
|
|
23
|
-
"config": {
|
|
24
|
-
"eslint": "--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 src/**/*.{ts,js,html} *.{ts,js,html} .*.{ts,js,html}",
|
|
25
|
-
"prettier": "--ignore-path .gitignore --loglevel=warn {src,tests,.github}/**/*.{ts,js,md,yml,json,html} *.{ts,js,yml,json,html} .*.{ts,js,yml,json,html} !package-lock.json"
|
|
26
|
-
},
|
|
27
|
-
"husky": {
|
|
28
|
-
"hooks": {
|
|
29
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
30
|
-
"pre-push": "npm run format"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": ">=10"
|
|
35
|
-
},
|
|
36
|
-
"keywords": [
|
|
37
|
-
"github",
|
|
38
|
-
"binary",
|
|
39
|
-
"release",
|
|
40
|
-
"fetch",
|
|
41
|
-
"get"
|
|
42
|
-
],
|
|
43
|
-
"author": "Valery Bugakov <skymk1@gmail.com> (https://github.com/valerybugakov/)",
|
|
44
|
-
"license": "MIT",
|
|
45
|
-
"files": [
|
|
46
|
-
"dist"
|
|
47
|
-
],
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"@babel/eslint-parser": "^7.15.0",
|
|
50
|
-
"@commitlint/cli": "^17.6.7",
|
|
51
|
-
"@commitlint/config-conventional": "^17.6.7",
|
|
52
|
-
"@types/download": "^8.0.0",
|
|
53
|
-
"@types/jest": "^26.0.0",
|
|
54
|
-
"@types/node": "^14.0.0",
|
|
55
|
-
"@types/semver": "^7.0.0",
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "^4.27.0",
|
|
57
|
-
"@typescript-eslint/parser": "^4.27.0",
|
|
58
|
-
"cross-env": "^7.0.3",
|
|
59
|
-
"eslint-config-prettier": "^8.3.0",
|
|
60
|
-
"eslint-plugin-import": "^2.24.1",
|
|
61
|
-
"eslint-plugin-prettier": "^3.4.1",
|
|
62
|
-
"expect-even-more-jest": "^1.18.0",
|
|
63
|
-
"filesystem-sandbox": "^1.24.0",
|
|
64
|
-
"husky": "^7.0.0",
|
|
65
|
-
"jest": "^27.0.0",
|
|
66
|
-
"npm-run-all": "^4.1.5",
|
|
67
|
-
"prettier": "^2.3.2",
|
|
68
|
-
"ts-jest": "^27.0.0",
|
|
69
|
-
"typescript": "^4.0.0"
|
|
70
|
-
},
|
|
71
|
-
"dependencies": {
|
|
72
|
-
"@octokit/rest": "^18.9.1",
|
|
73
|
-
"bent": "^7.3.12",
|
|
74
|
-
"decompress": "^4.2.1",
|
|
75
|
-
"semver": "^7.5.4",
|
|
76
|
-
"yafs": "^1.27.0"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
force: {
|
|
3
|
-
constraints: {
|
|
4
|
-
node: '< 15.0.0',
|
|
5
|
-
},
|
|
6
|
-
},
|
|
7
|
-
extends: ['config:base', 'schedule:weekly'],
|
|
8
|
-
rangeStrategy: 'update-lockfile',
|
|
9
|
-
automerge: true,
|
|
10
|
-
major: {
|
|
11
|
-
automerge: false,
|
|
12
|
-
},
|
|
13
|
-
lockFileMaintenance: {
|
|
14
|
-
enabled: true,
|
|
15
|
-
},
|
|
16
|
-
ignorePresets: [':prHourlyLimit2'],
|
|
17
|
-
semanticCommits: true,
|
|
18
|
-
dependencyDashboard: true,
|
|
19
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import "expect-even-more-jest";
|
|
2
|
-
import { newerVersion, listReleases, fetchLatestRelease } from "../"
|
|
3
|
-
import { Sandbox } from "filesystem-sandbox";
|
|
4
|
-
import { ls } from "yafs";
|
|
5
|
-
|
|
6
|
-
describe(`newerVersion`, () => {
|
|
7
|
-
it("should compare versions", () => {
|
|
8
|
-
expect(newerVersion("0.1.0", "0.0.1")).toBe(true)
|
|
9
|
-
expect(newerVersion("v0.1.0", "v0.0.1")).toBe(true)
|
|
10
|
-
expect(newerVersion("v0.0.1", "")).toBe(true)
|
|
11
|
-
|
|
12
|
-
expect(newerVersion("0.0.1", "0.0.1")).toBe(false)
|
|
13
|
-
expect(newerVersion("v0.0.1", "v0.0.1")).toBe(false)
|
|
14
|
-
expect(newerVersion("", "0.0.1")).toBe(false)
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
describe(`listReleases`, () => {
|
|
19
|
-
it(`should find releases`, async () => {
|
|
20
|
-
// Arrange
|
|
21
|
-
// Act
|
|
22
|
-
const result = await listReleases({ owner: "fluffynuts", repo: "NExpect" });
|
|
23
|
-
// Assert
|
|
24
|
-
expect(result)
|
|
25
|
-
.not.toBeEmptyArray();
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
describe(`fetchLatestRelease`, () => {
|
|
30
|
-
it(`should fetch and unpack`, async () => {
|
|
31
|
-
// Arrange
|
|
32
|
-
const
|
|
33
|
-
os = require("os"),
|
|
34
|
-
isWindows = os.platform() === "win32",
|
|
35
|
-
sandbox = await Sandbox.create();
|
|
36
|
-
// Act
|
|
37
|
-
await fetchLatestRelease({
|
|
38
|
-
destination: sandbox.path,
|
|
39
|
-
owner: "axllent",
|
|
40
|
-
repo: "mailpit"
|
|
41
|
-
});
|
|
42
|
-
// Assert
|
|
43
|
-
const contents = await ls(sandbox.path);
|
|
44
|
-
expect(contents)
|
|
45
|
-
.toContain(
|
|
46
|
-
isWindows
|
|
47
|
-
? "mailpit.exe"
|
|
48
|
-
: "mailpit"
|
|
49
|
-
);
|
|
50
|
-
});
|
|
51
|
-
});
|