sfdx-plugin-update-notifier 1.1.0 → 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/CHANGELOG.md +34 -0
- package/LICENSE.txt +2 -2
- package/README.md +17 -37
- package/lib/hooks/init.d.ts +2 -0
- package/lib/hooks/init.js +12 -0
- package/lib/hooks/init.js.map +1 -0
- package/lib/hooks/prerun.d.ts +1 -1
- package/lib/hooks/prerun.js +35 -37
- package/lib/hooks/prerun.js.map +1 -1
- package/lib/index.js +1 -3
- package/lib/index.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +66 -61
- package/lib/commands/plugins/update/check.d.ts +0 -6
- package/lib/commands/plugins/update/check.js +0 -30
- package/lib/commands/plugins/update/check.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# [1.2.0](https://github.com/jayree/sfdx-plugin-update-notifier/compare/v1.1.0...v1.2.0) (2022-09-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* move to ESM ([5a225bd](https://github.com/jayree/sfdx-plugin-update-notifier/commit/5a225bd0fafe13799830b85ddbfefb335192edee))
|
|
7
|
+
|
|
8
|
+
# [1.1.0](https://github.com/jayree/sfdx-plugin-update-notifier/compare/v1.0.2...v1.1.0) (2021-09-03)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* override platform wsl with linux during update command ([c8f24e7](https://github.com/jayree/sfdx-plugin-update-notifier/commit/c8f24e74fe8e3630eef8a62c0428f21b3226b894))
|
|
14
|
+
|
|
15
|
+
## [1.0.2](https://github.com/jayree/sfdx-plugin-update-notifier/compare/v1.0.1...v1.0.2) (2021-06-24)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* update dependencies ([9d97421](https://github.com/jayree/sfdx-plugin-update-notifier/commit/9d97421fb612e24441a719ff5fc355739f812811))
|
|
21
|
+
|
|
22
|
+
## [1.0.1](https://github.com/jayree/sfdx-plugin-update-notifier/compare/v1.0.0...v1.0.1) (2021-04-23)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* plugin uninstall ([1451727](https://github.com/jayree/sfdx-plugin-update-notifier/commit/1451727ba9a5dffc9d7caeee0fd1ad844f3876c4))
|
|
28
|
+
|
|
29
|
+
# 1.0.0 (2021-04-23)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
* Initial commit ([4829fe9](https://github.com/jayree/sfdx-plugin-update-notifier/commit/4829fe93ae3ed67a35b4edc714031b1da254228f))
|
package/LICENSE.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c)
|
|
1
|
+
Copyright (c) 2022, jayree
|
|
2
2
|
All rights reserved.
|
|
3
3
|
|
|
4
4
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -9,4 +9,4 @@ Redistribution and use in source and binary forms, with or without modification,
|
|
|
9
9
|
|
|
10
10
|
* Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
11
|
|
|
12
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
[](https://npmjs.org/package/sfdx-plugin-update-notifier)
|
|
8
8
|
[](https://github.com/jayree/sfdx-plugin-update-notifier/blob/main/package.json)
|
|
9
9
|
|
|
10
|
+
Update notifications for sfdx plugins based on [jayree/oclif-plugin-update-notifier](https://github.com/jayree/oclif-plugin-update-notifier) and [yeoman/update-notifier](https://github.com/yeoman/update-notifier)
|
|
11
|
+
|
|
10
12
|
<!-- toc -->
|
|
11
13
|
* [Usage](#usage)
|
|
12
|
-
* [Commands](#commands)
|
|
13
14
|
<!-- tocstop -->
|
|
14
15
|
|
|
15
16
|
## Usage
|
|
@@ -17,48 +18,27 @@
|
|
|
17
18
|
<!-- usage -->
|
|
18
19
|
```sh-session
|
|
19
20
|
$ sfdx plugins:install sfdx-plugin-update-notifier
|
|
20
|
-
$ sfdx plugins:COMMAND
|
|
21
|
+
$ sfdx plugins:[COMMAND]
|
|
21
22
|
running command...
|
|
22
23
|
$ sfdx plugins
|
|
23
|
-
sfdx-plugin-update-notifier 1.
|
|
24
|
-
$ sfdx help plugins:COMMAND
|
|
24
|
+
sfdx-plugin-update-notifier 1.2.0
|
|
25
|
+
$ sfdx help plugins:[COMMAND]
|
|
25
26
|
USAGE
|
|
26
27
|
$ sfdx plugins:COMMAND
|
|
27
28
|
...
|
|
28
29
|
```
|
|
29
30
|
<!-- usagestop -->
|
|
30
|
-
## Commands
|
|
31
|
-
|
|
32
|
-
<!-- commands -->
|
|
33
|
-
* [`sfdx plugins:update:check`](#sfdx-pluginsupdatecheck)
|
|
34
|
-
|
|
35
|
-
### `sfdx plugins:update:check`
|
|
36
|
-
|
|
37
|
-
check installed plugins for updates
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
USAGE
|
|
41
|
-
$ sfdx plugins:update:check [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
42
31
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
│ sfdx-plugin updates available! │
|
|
56
|
-
│ │
|
|
57
|
-
│ salesforce-alm (core) 51.6.11 → 51.6.12 (latest) │
|
|
58
|
-
│ Changelog: https://github.com/forcedotcom/cli/blob/main/releasenotes/README.md │
|
|
59
|
-
│ │
|
|
60
|
-
╰────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
32
|
+
```sh-session
|
|
33
|
+
$ sfdx plugins
|
|
34
|
+
auth 2.2.5 (core)
|
|
35
|
+
|
|
36
|
+
╭────────────────────────────────────────────────────────────────────────────╮
|
|
37
|
+
│ │
|
|
38
|
+
│ sfdx-plugin updates available! │
|
|
39
|
+
│ │
|
|
40
|
+
│ @salesforce/plugin-auth (core) 2.2.5 → 2.2.8 (latest) │
|
|
41
|
+
│ https://github.com/salesforcecli/plugin-auth/blob/main/CHANGELOG.md │
|
|
42
|
+
│ │
|
|
43
|
+
╰────────────────────────────────────────────────────────────────────────────╯
|
|
61
44
|
```
|
|
62
|
-
|
|
63
|
-
_See code: [commands/plugins/update/check.ts](https://github.com/jayree/sfdx-plugin-update-notifier/blob/v1.1.0/commands/plugins/update/check.ts)_
|
|
64
|
-
<!-- commandsstop -->
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { env } from '@salesforce/kit';
|
|
2
|
+
import Debug from 'debug';
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
4
|
+
export const init = async function (options) {
|
|
5
|
+
const debug = Debug(`${this.config.bin}:sfdx-plugin-update-notifier:hooks:init`);
|
|
6
|
+
debug({ CommandID: options.id });
|
|
7
|
+
if (!['plugins:install', 'plugins:uninstall'].includes(options.id)) {
|
|
8
|
+
env.setBoolean('OCLIF_DISABLE_UPDATENOTIFIER', true);
|
|
9
|
+
debug('set: OCLIF_DISABLE_UPDATENOTIFIER=true');
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=init.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/hooks/init.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,4DAA4D;AAC5D,MAAM,CAAC,MAAM,IAAI,GAAiB,KAAK,WAAW,OAAO;IACvD,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,yCAAyC,CAAC,CAAC;IACjF,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IACjC,IAAI,CAAC,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;QAClE,GAAG,CAAC,UAAU,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAC;QACrD,KAAK,CAAC,wCAAwC,CAAC,CAAC;KACjD;AACH,CAAC,CAAC"}
|
package/lib/hooks/prerun.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Hook } from '@oclif/
|
|
1
|
+
import { Hook } from '@oclif/core';
|
|
2
2
|
export declare const prerun: Hook<'prerun'>;
|
package/lib/hooks/prerun.js
CHANGED
|
@@ -1,41 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const kit_1 = require("@salesforce/kit");
|
|
5
|
-
const Debug = require("debug");
|
|
6
|
-
const debug = Debug('pluginUpdateNotifier:preRun');
|
|
7
|
-
const isContentTypeJSON = kit_1.env.getString('SFDX_CONTENT_TYPE', '').toUpperCase() === 'JSON';
|
|
1
|
+
import { env } from '@salesforce/kit';
|
|
2
|
+
import Debug from 'debug';
|
|
3
|
+
const isContentTypeJSON = env.getString('SFDX_CONTENT_TYPE', '').toUpperCase() === 'JSON';
|
|
8
4
|
const isOutputEnabled = !(process.argv.find((arg) => ['--json', '--help', '-h'].includes(arg)) || isContentTypeJSON);
|
|
9
|
-
const prerun = async function (options) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
5
|
+
export const prerun = async function (options) {
|
|
6
|
+
const debug = Debug(`${this.config.bin}:sfdx-plugin-update-notifier:hooks:prerun`);
|
|
7
|
+
debug({ CommandID: options.Command.id });
|
|
8
|
+
if (env.getBoolean('SFDX_DISABLE_UPDATENOTIFIER')) {
|
|
9
|
+
debug('found: SFDX_DISABLE_UPDATENOTIFIER=true');
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
if (!isOutputEnabled)
|
|
13
|
+
return;
|
|
14
|
+
if (['plugins:install', 'plugins:uninstall'].includes(options.Command.id)) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if (['plugins:update', 'plugins:update:check', 'update'].includes(options.Command.id)) {
|
|
18
|
+
await this.config.runHook('updatenotifier', {
|
|
19
|
+
updateCheckInterval: 0,
|
|
20
|
+
spawnOptions: { detached: false, stdio: 'ignore' },
|
|
21
|
+
defer: false,
|
|
22
|
+
changeLogUrl: {
|
|
23
|
+
'salesforce-alm': 'https://github.com/forcedotcom/cli/blob/main/releasenotes/README.md',
|
|
24
|
+
},
|
|
25
|
+
ignoreDistTags: ['sf'],
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
await this.config.runHook('updatenotifier', {
|
|
30
|
+
spawnOptions: { detached: true, stdio: 'ignore' },
|
|
31
|
+
defer: true,
|
|
32
|
+
changeLogUrl: {
|
|
33
|
+
'salesforce-alm': 'https://github.com/forcedotcom/cli/blob/main/releasenotes/README.md',
|
|
34
|
+
},
|
|
35
|
+
ignoreDistTags: ['sf'],
|
|
36
|
+
});
|
|
38
37
|
}
|
|
39
38
|
};
|
|
40
|
-
exports.prerun = prerun;
|
|
41
39
|
//# sourceMappingURL=prerun.js.map
|
package/lib/hooks/prerun.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prerun.js","sourceRoot":"","sources":["../../src/hooks/prerun.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prerun.js","sourceRoot":"","sources":["../../src/hooks/prerun.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,iBAAiB,GAAG,GAAG,CAAC,SAAS,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC;AAC1F,MAAM,eAAe,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,iBAAiB,CAAC,CAAC;AAErH,MAAM,CAAC,MAAM,MAAM,GAAmB,KAAK,WAAW,OAAO;IAC3D,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,2CAA2C,CAAC,CAAC;IACnF,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IAEzC,IAAI,GAAG,CAAC,UAAU,CAAC,6BAA6B,CAAC,EAAE;QACjD,KAAK,CAAC,yCAAyC,CAAC,CAAC;QACjD,OAAO;KACR;IAED,IAAI,CAAC,eAAe;QAAE,OAAO;IAE7B,IAAI,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;QACzE,OAAO;KACR;IAED,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;QACrF,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC1C,mBAAmB,EAAE,CAAC;YACtB,YAAY,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;YAClD,KAAK,EAAE,KAAK;YACZ,YAAY,EAAE;gBACZ,gBAAgB,EAAE,qEAAqE;aACxF;YACD,cAAc,EAAE,CAAC,IAAI,CAAC;SACvB,CAAC,CAAC;KACJ;SAAM;QACL,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC1C,YAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE;YACjD,KAAK,EAAE,IAAI;YACX,YAAY,EAAE;gBACZ,gBAAgB,EAAE,qEAAqE;aACxF;YACD,cAAc,EAAE,CAAC,IAAI,CAAC;SACvB,CAAC,CAAC;KACJ;AACH,CAAC,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
1
|
/*
|
|
4
2
|
* Copyright (c) 2021, jayree
|
|
5
3
|
* All rights reserved.
|
|
6
4
|
* Licensed under the BSD 3-Clause license.
|
|
7
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
8
6
|
*/
|
|
9
|
-
|
|
7
|
+
export default {};
|
|
10
8
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAe,EAAE,CAAC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.
|
|
1
|
+
{"version":"1.2.0","commands":{}}
|
package/package.json
CHANGED
|
@@ -1,71 +1,70 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sfdx-plugin-update-notifier",
|
|
3
3
|
"description": "update-notifier for sfdx plugins",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"author": "jayree",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"bugs": "https://github.com/jayree/sfdx-plugin-update-notifier/issues",
|
|
7
8
|
"dependencies": {
|
|
8
|
-
"@oclif/
|
|
9
|
-
"@
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"chalk": "^4.1.2",
|
|
14
|
-
"cli-ux": "^5.6.3",
|
|
15
|
-
"debug": "^4.3.2",
|
|
16
|
-
"is-npm": "^5.0.0",
|
|
17
|
-
"oclif-plugin-update-notifier": "^1.4.0",
|
|
18
|
-
"semver": "^7.3.5",
|
|
19
|
-
"tslib": "^2.3.1",
|
|
20
|
-
"update-notifier": "5.1.0"
|
|
9
|
+
"@oclif/core": "^1.16.3",
|
|
10
|
+
"@salesforce/kit": "^1.6.1",
|
|
11
|
+
"debug": "^4.3.4",
|
|
12
|
+
"oclif-plugin-update-notifier": "^1.5.0",
|
|
13
|
+
"tslib": "^2.4.0"
|
|
21
14
|
},
|
|
22
15
|
"devDependencies": {
|
|
23
|
-
"@commitlint/cli": "^
|
|
24
|
-
"@commitlint/config-conventional": "^
|
|
25
|
-
"@oclif/
|
|
26
|
-
"@oclif/plugin-help": "^
|
|
27
|
-
"@oclif/test": "^1.
|
|
28
|
-
"@salesforce/dev-config": "^
|
|
29
|
-
"@salesforce/dev-scripts": "^
|
|
16
|
+
"@commitlint/cli": "^17.1.2",
|
|
17
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
18
|
+
"@oclif/plugin-command-snapshot": "^3.1.3",
|
|
19
|
+
"@oclif/plugin-help": "^5.1.12",
|
|
20
|
+
"@oclif/test": "^2.1.1",
|
|
21
|
+
"@salesforce/dev-config": "^3.1.0",
|
|
22
|
+
"@salesforce/dev-scripts": "^3.1.0",
|
|
30
23
|
"@salesforce/prettier-config": "^0.0.2",
|
|
31
|
-
"@types/chai": "^4.
|
|
32
|
-
"@types/
|
|
33
|
-
"@types/
|
|
34
|
-
"@types/
|
|
35
|
-
"@types/
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"eslint-
|
|
41
|
-
"eslint
|
|
42
|
-
"
|
|
24
|
+
"@types/chai": "^4.3.3",
|
|
25
|
+
"@types/debug": "^4.1.7",
|
|
26
|
+
"@types/fs-extra": "^9.0.13",
|
|
27
|
+
"@types/jsforce": "^1.9.43",
|
|
28
|
+
"@types/marked": "^4.0.7",
|
|
29
|
+
"@types/marked-terminal": "^3.1.3",
|
|
30
|
+
"@types/mocha": "^9.1.1",
|
|
31
|
+
"@types/node": "^18.7.18",
|
|
32
|
+
"@types/sinon": "^10.0.13",
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "^5.38.0",
|
|
34
|
+
"@typescript-eslint/parser": "^5.38.0",
|
|
35
|
+
"chai": "^4.3.6",
|
|
36
|
+
"eslint": "^8.23.1",
|
|
37
|
+
"eslint-config-prettier": "^8.5.0",
|
|
38
|
+
"eslint-config-salesforce": "^1.1.0",
|
|
39
|
+
"eslint-config-salesforce-typescript": "^1.1.1",
|
|
43
40
|
"eslint-plugin-header": "^3.1.1",
|
|
44
|
-
"eslint-plugin-import": "^2.
|
|
45
|
-
"eslint-plugin-jsdoc": "^
|
|
46
|
-
"eslint-plugin-prettier": "^4.
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
41
|
+
"eslint-plugin-import": "^2.26.0",
|
|
42
|
+
"eslint-plugin-jsdoc": "^39.3.6",
|
|
43
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
44
|
+
"eslint-plugin-sf-plugin": "^1.1.0",
|
|
45
|
+
"husky": "^8.0.1",
|
|
46
|
+
"is-ci": "^3.0.1",
|
|
47
|
+
"mocha": "^10.0.0",
|
|
50
48
|
"nyc": "^15.1.0",
|
|
49
|
+
"oclif": "^3.2.2",
|
|
51
50
|
"patch-package": "^6.4.7",
|
|
52
|
-
"pinst": "^
|
|
53
|
-
"prettier": "^2.
|
|
54
|
-
"pretty-quick": "^3.1.
|
|
55
|
-
"sinon": "^
|
|
56
|
-
"source-map-support": "^0.5.
|
|
57
|
-
"ts-node": "^10.
|
|
58
|
-
"typescript": "^4.
|
|
59
|
-
"xunit-file": "^
|
|
51
|
+
"pinst": "^3.0.0",
|
|
52
|
+
"prettier": "^2.7.1",
|
|
53
|
+
"pretty-quick": "^3.1.3",
|
|
54
|
+
"sinon": "^14.0.0",
|
|
55
|
+
"source-map-support": "^0.5.21",
|
|
56
|
+
"ts-node": "^10.9.1",
|
|
57
|
+
"typescript": "^4.8.3",
|
|
58
|
+
"xunit-file": "^2.0.0"
|
|
60
59
|
},
|
|
61
60
|
"engines": {
|
|
62
|
-
"node": ">=
|
|
61
|
+
"node": ">=14.0.0"
|
|
63
62
|
},
|
|
64
63
|
"files": [
|
|
65
64
|
"/lib",
|
|
66
65
|
"/messages",
|
|
67
|
-
"/
|
|
68
|
-
"/
|
|
66
|
+
"/oclif.manifest.json",
|
|
67
|
+
"/CHANGELOG.md"
|
|
69
68
|
],
|
|
70
69
|
"homepage": "https://github.com/jayree/sfdx-plugin-update-notifier",
|
|
71
70
|
"keywords": [
|
|
@@ -73,42 +72,48 @@
|
|
|
73
72
|
],
|
|
74
73
|
"license": "BSD-3-Clause",
|
|
75
74
|
"oclif": {
|
|
76
|
-
"commands": "./lib/commands",
|
|
77
75
|
"bin": "sfdx",
|
|
78
76
|
"hooks": {
|
|
77
|
+
"init": "./lib/hooks/init",
|
|
79
78
|
"prerun": "./lib/hooks/prerun"
|
|
80
79
|
},
|
|
81
|
-
"topics": {
|
|
82
|
-
"plugins": {
|
|
83
|
-
"update": {}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
80
|
"plugins": [
|
|
87
81
|
"oclif-plugin-update-notifier"
|
|
88
82
|
],
|
|
89
83
|
"devPlugins": [
|
|
90
|
-
"@oclif/plugin-help"
|
|
91
|
-
|
|
84
|
+
"@oclif/plugin-help",
|
|
85
|
+
"@oclif/plugin-command-snapshot"
|
|
86
|
+
],
|
|
87
|
+
"info": {
|
|
88
|
+
"releasenotes": {
|
|
89
|
+
"distTagUrl": "https://registry.npmjs.org/-/package/sfdx-plugin-update-notifier/dist-tags",
|
|
90
|
+
"releaseNotesPath": "https://github.com/jayree/sfdx-plugin-update-notifier/tree/main",
|
|
91
|
+
"releaseNotesFilename": "CHANGELOG.md"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
92
94
|
},
|
|
93
95
|
"repository": "jayree/sfdx-plugin-update-notifier",
|
|
94
96
|
"scripts": {
|
|
95
97
|
"build": "sf-build",
|
|
96
98
|
"clean": "sf-clean",
|
|
97
99
|
"clean-all": "sf-clean all",
|
|
100
|
+
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
|
|
98
101
|
"compile": "sf-compile",
|
|
99
102
|
"format": "sf-format",
|
|
100
103
|
"lint": "sf-lint",
|
|
101
104
|
"lint-fix": "sf-lint --fix",
|
|
102
|
-
"postcompile": "oclif
|
|
105
|
+
"postcompile": "oclif readme",
|
|
103
106
|
"_postinstall": "patch-package",
|
|
104
|
-
"postpack": "
|
|
107
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
105
108
|
"postpublish": "pinst --enable",
|
|
109
|
+
"posttest": "yarn lint && yarn test:deprecation-policy",
|
|
106
110
|
"prepack": "sf-prepack",
|
|
107
111
|
"prepare": "is-ci || husky install",
|
|
108
112
|
"prepublishOnly": "pinst --disable",
|
|
109
113
|
"pretest": "sf-compile-test",
|
|
110
114
|
"test": "sf-test",
|
|
111
|
-
"
|
|
115
|
+
"test:deprecation-policy": "./bin/dev.js snapshot:compare",
|
|
116
|
+
"version": "oclif readme"
|
|
112
117
|
},
|
|
113
118
|
"release": {
|
|
114
119
|
"branches": [
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
* Copyright (c) 2021, jayree
|
|
5
|
-
* All rights reserved.
|
|
6
|
-
* Licensed under the BSD 3-Clause license.
|
|
7
|
-
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
8
|
-
*/
|
|
9
|
-
const command_1 = require("@salesforce/command");
|
|
10
|
-
class PluginsUpdateCheck extends command_1.SfdxCommand {
|
|
11
|
-
async run() {
|
|
12
|
-
// i'm just calling the prerun hook
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.default = PluginsUpdateCheck;
|
|
16
|
-
PluginsUpdateCheck.description = 'check installed plugins for updates';
|
|
17
|
-
PluginsUpdateCheck.examples = [
|
|
18
|
-
`$ sfdx plugins:update:check
|
|
19
|
-
check for updates... done
|
|
20
|
-
|
|
21
|
-
╭────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
22
|
-
│ │
|
|
23
|
-
│ sfdx-plugin updates available! │
|
|
24
|
-
│ │
|
|
25
|
-
│ salesforce-alm (core) 51.6.11 → 51.6.12 (latest) │
|
|
26
|
-
│ Changelog: https://github.com/forcedotcom/cli/blob/main/releasenotes/README.md │
|
|
27
|
-
│ │
|
|
28
|
-
╰────────────────────────────────────────────────────────────────────────────────────────────╯`,
|
|
29
|
-
];
|
|
30
|
-
//# sourceMappingURL=check.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../../../src/commands/plugins/update/check.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,iDAAkD;AAElD,MAAqB,kBAAmB,SAAQ,qBAAW;IAelD,KAAK,CAAC,GAAG;QACd,mCAAmC;IACrC,CAAC;;AAjBH,qCAkBC;AAjBe,8BAAW,GAAG,qCAAqC,CAAC;AACpD,2BAAQ,GAAG;IACvB;;;;;;;;;;iGAU6F;CAC9F,CAAC"}
|