@salesforce/plugin-schema 1.1.0 → 2.1.1

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 CHANGED
@@ -2,19 +2,36 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ## [1.1.0](https://github.com/salesforcecli/plugin-schema/compare/v1.0.10...v1.1.0) (2021-12-02)
5
+ ### [2.1.1](https://github.com/salesforcecli/plugin-schema/compare/v2.1.0...v2.1.1) (2022-05-20)
6
+
7
+ ### Bug Fixes
6
8
 
9
+ - add prompt to examples ([335b171](https://github.com/salesforcecli/plugin-schema/commit/335b1715514397c9f6082365f6b10845448f6016))
10
+ - add prompt to examples ([e5956d1](https://github.com/salesforcecli/plugin-schema/commit/e5956d10b80bae20a5a39b9d840dddb875d2aa78))
11
+
12
+ ## [2.1.0](https://github.com/salesforcecli/plugin-schema/compare/v2.0.0...v2.1.0) (2022-05-04)
7
13
 
8
14
  ### Features
9
15
 
10
- * bump deps ([75830fa](https://github.com/salesforcecli/plugin-schema/commit/75830fa414f40d1fc4f0731eaba9f6d977ceb779))
16
+ - bump schema validation ([78dcffc](https://github.com/salesforcecli/plugin-schema/commit/78dcffc9945a9f15f8a9740f8d8c1257166b97ba))
11
17
 
12
- ### [1.0.10](https://github.com/salesforcecli/plugin-schema/compare/v1.0.9...v1.0.10) (2021-10-12)
18
+ ## [2.0.0](https://github.com/salesforcecli/plugin-schema/compare/v1.1.0...v2.0.0) (2022-04-06)
13
19
 
20
+ ### Bug Fixes
21
+
22
+ - parking orbit plugin-schema ([ea87123](https://github.com/salesforcecli/plugin-schema/commit/ea87123101d6a34e0d017f124c3caba62a0ad63b))
23
+
24
+ ## [1.1.0](https://github.com/salesforcecli/plugin-schema/compare/v1.0.10...v1.1.0) (2021-12-02)
25
+
26
+ ### Features
27
+
28
+ - bump deps ([75830fa](https://github.com/salesforcecli/plugin-schema/commit/75830fa414f40d1fc4f0731eaba9f6d977ceb779))
29
+
30
+ ### [1.0.10](https://github.com/salesforcecli/plugin-schema/compare/v1.0.9...v1.0.10) (2021-10-12)
14
31
 
15
32
  ### Bug Fixes
16
33
 
17
- * update dependencies ([299c7e9](https://github.com/salesforcecli/plugin-schema/commit/299c7e9582ccc16026c27b4a27afdc072013b697))
34
+ - update dependencies ([299c7e9](https://github.com/salesforcecli/plugin-schema/commit/299c7e9582ccc16026c27b4a27afdc072013b697))
18
35
 
19
36
  ### [1.0.9](https://github.com/salesforcecli/plugin-schema/compare/v1.0.8...v1.0.9) (2021-10-12)
20
37
 
@@ -26,28 +43,25 @@ All notable changes to this project will be documented in this file. See [standa
26
43
 
27
44
  ### [1.0.5](https://github.com/salesforcecli/plugin-schema/compare/v1.0.4...v1.0.5) (2021-04-01)
28
45
 
29
-
30
46
  ### Bug Fixes
31
47
 
32
- * leif .yml merge [skip-validate-pr] ([95bb8e0](https://github.com/salesforcecli/plugin-schema/commit/95bb8e0014ff5df3c6f59aa701762732b9a5c568))
48
+ - leif .yml merge [skip-validate-pr] ([95bb8e0](https://github.com/salesforcecli/plugin-schema/commit/95bb8e0014ff5df3c6f59aa701762732b9a5c568))
33
49
 
34
50
  ### [1.0.4](https://github.com/salesforcecli/plugin-schema/compare/v1.0.3...v1.0.4) (2021-02-19)
35
51
 
36
52
  ### [1.0.3](https://github.com/salesforcecli/plugin-schema/compare/v1.0.2...v1.0.3) (2020-12-17)
37
53
 
38
-
39
54
  ### Bug Fixes
40
55
 
41
- * bumped npm release to v4 ([f31cf21](https://github.com/salesforcecli/plugin-schema/commit/f31cf213a24066f60f3884ffee2f64855cc19f4e))
56
+ - bumped npm release to v4 ([f31cf21](https://github.com/salesforcecli/plugin-schema/commit/f31cf213a24066f60f3884ffee2f64855cc19f4e))
42
57
 
43
58
  ### [1.0.2](https://github.com/salesforcecli/plugin-schema/compare/v1.0.1...v1.0.2) (2020-12-10)
44
59
 
45
60
  ### [1.0.1](https://github.com/salesforcecli/plugin-schema/compare/v1.0.0...v1.0.1) (2020-11-04)
46
61
 
47
-
48
62
  ### Bug Fixes
49
63
 
50
- * added github-release: true to circleci config ([95eddac](https://github.com/salesforcecli/plugin-schema/commit/95eddac37fe43e0e36e741af2d00ffc7b499c663))
51
- * update readme ([63658f2](https://github.com/salesforcecli/plugin-schema/commit/63658f2bdd94e0c64b18bfe78398d9175da11ed1))
64
+ - added github-release: true to circleci config ([95eddac](https://github.com/salesforcecli/plugin-schema/commit/95eddac37fe43e0e36e741af2d00ffc7b499c663))
65
+ - update readme ([63658f2](https://github.com/salesforcecli/plugin-schema/commit/63658f2bdd94e0c64b18bfe78398d9175da11ed1))
52
66
 
53
67
  ### [1.0.1](https://github.com/salesforcecli/plugin-schema/compare/v1.0.0...v1.0.1) (2020-10-29)
package/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018, Salesforce.com, Inc.
1
+ Copyright (c) 2022, Salesforce.com, Inc.
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:
package/README.md CHANGED
@@ -69,76 +69,75 @@ sfdx plugins
69
69
  ## Commands
70
70
 
71
71
  <!-- commands -->
72
- * [`sfdx force:schema:sobject:describe -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceschemasobjectdescribe--s-string--t--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
73
- * [`sfdx force:schema:sobject:list [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceschemasobjectlist--c-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
72
+
73
+ - [`sfdx force:schema:sobject:describe -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceschemasobjectdescribe--s-string--t--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
74
+ - [`sfdx force:schema:sobject:list [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceschemasobjectlist--c-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
74
75
 
75
76
  ## `sfdx force:schema:sobject:describe -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
76
77
 
77
78
  displays the metadata for a standard or custom object
78
79
 
79
80
  ```
80
- displays the metadata for a standard or custom object
81
-
82
81
  USAGE
83
- $ sfdx force:schema:sobject:describe -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel
84
- trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
82
+ $ sfdx force:schema:sobject:describe -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel
83
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
85
84
 
86
- OPTIONS
87
- -s, --sobjecttype=sobjecttype (required) the API name of the
85
+ FLAGS
86
+ -s, --sobjecttype=<value> (required) the API name of the
88
87
  object to describe
89
-
90
88
  -t, --usetoolingapi execute with Tooling API
91
-
92
- -u, --targetusername=targetusername username or alias for the target
89
+ -u, --targetusername=<value> username or alias for the target
93
90
  org; overrides default target org
94
-
95
- --apiversion=apiversion override the api version used for
91
+ --apiversion=<value> override the api version used for
96
92
  api requests made by this command
97
-
98
93
  --json format output as json
99
-
100
94
  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
101
95
  this command invocation
102
96
 
97
+ DESCRIPTION
98
+ displays the metadata for a standard or custom object
99
+
103
100
  EXAMPLES
104
- sfdx force:schema:sobject:describe -s Account
105
- sfdx force:schema:sobject:describe -s MyObject__c
106
- sfdx force:schema:sobject:describe -s ApexClass -t
101
+ $ sfdx force:schema:sobject:describe -s Account
102
+
103
+ $ sfdx force:schema:sobject:describe -s MyObject__c
104
+
105
+ $ sfdx force:schema:sobject:describe -s ApexClass -t
107
106
  ```
108
107
 
109
- _See code: [src/commands/force/schema/sobject/describe.ts](https://github.com/salesforcecli/plugin-schema/blob/v1.0.10/src/commands/force/schema/sobject/describe.ts)_
108
+ _See code: [src/commands/force/schema/sobject/describe.ts](https://github.com/salesforcecli/plugin-schema/blob/v2.1.0/src/commands/force/schema/sobject/describe.ts)_
110
109
 
111
110
  ## `sfdx force:schema:sobject:list [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
112
111
 
113
112
  list all objects of a specified category
114
113
 
115
114
  ```
116
- list all objects of a specified category
117
-
118
115
  USAGE
119
- $ sfdx force:schema:sobject:list [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
120
- trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
116
+ $ sfdx force:schema:sobject:list [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
117
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
121
118
 
122
- OPTIONS
123
- -c, --sobjecttypecategory=sobjecttypecategory [default: ALL] the type of objects
119
+ FLAGS
120
+ -c, --sobjecttypecategory=<value> [default: ALL] the type of objects
124
121
  to list (all|custom|standard)
125
-
126
- -u, --targetusername=targetusername username or alias for the target
122
+ -u, --targetusername=<value> username or alias for the target
127
123
  org; overrides default target org
128
-
129
- --apiversion=apiversion override the api version used for
124
+ --apiversion=<value> override the api version used for
130
125
  api requests made by this command
131
-
132
126
  --json format output as json
133
-
134
127
  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
135
128
  this command invocation
136
129
 
130
+ DESCRIPTION
131
+ list all objects of a specified category
132
+
137
133
  EXAMPLES
138
- sfdx force:schema:sobject:list -c all
139
- sfdx force:schema:sobject:list -c custom
140
- sfdx force:schema:sobject:list -c standard
134
+ $ sfdx force:schema:sobject:list -c all
135
+
136
+ $ sfdx force:schema:sobject:list -c custom
137
+
138
+ $ sfdx force:schema:sobject:list -c standard
141
139
  ```
142
140
 
143
- _See code: [src/commands/force/schema/sobject/list.ts](https://github.com/salesforcecli/plugin-schema/blob/v1.0.10/src/commands/force/schema/sobject/list.ts)_
141
+ _See code: [src/commands/force/schema/sobject/list.ts](https://github.com/salesforcecli/plugin-schema/blob/v2.1.0/src/commands/force/schema/sobject/list.ts)_
142
+
144
143
  <!-- commandsstop -->
@@ -55,7 +55,7 @@ SchemaSobjectList.flagsConfig = {
55
55
  const capitalized = val.toUpperCase();
56
56
  const result = capitalized === 'ALL' || capitalized === 'STANDARD' || capitalized === 'CUSTOM';
57
57
  if (!result) {
58
- throw core_1.SfdxError.create('@salesforce/plugin-schema', 'list', 'flags.invalidTypeError');
58
+ throw messages.createError('flags.invalidTypeError');
59
59
  }
60
60
  return result;
61
61
  },
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/commands/force/schema/sobject/list.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2BAAyB;AACzB,iDAAsE;AACtE,2CAAmE;AAGnE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC;AAE5E,qCAAqC;AACrC,IAA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UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,0BAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,QAAG,CAAC,CAAC;AACtD,6BAAW,GAAgB;IAChD,mBAAmB,EAAE,eAAK,CAAC,MAAM,CAAC;QAChC,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;YAChB,MAAM,WAAW,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;YACtC,MAAM,MAAM,GAAG,WAAW,KAAK,KAAK,IAAI,WAAW,KAAK,UAAU,IAAI,WAAW,KAAK,QAAQ,CAAC;YAC/F,IAAI,CAAC,MAAM,EAAE;gBACX,MAAM,QAAQ,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;aACtD;YACD,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;KAC1D,CAAC;CACH,CAAC;AACqB,kCAAgB,GAAG,IAAI,CAAC"}
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "description": "displays the metadata for a standard or custom object",
3
3
  "examples": [
4
- "sfdx force:schema:sobject:describe -s Account",
5
- "sfdx force:schema:sobject:describe -s MyObject__c",
6
- "sfdx force:schema:sobject:describe -s ApexClass -t"
4
+ "$ sfdx force:schema:sobject:describe -s Account",
5
+ "$ sfdx force:schema:sobject:describe -s MyObject__c",
6
+ "$ sfdx force:schema:sobject:describe -s ApexClass -t"
7
7
  ],
8
8
  "flags": {
9
9
  "objectType": "the API name of the object to describe",
@@ -5,9 +5,9 @@
5
5
  "invalidTypeError": "\"Type\" flag can be set only to <all|custom|standard>."
6
6
  },
7
7
  "examples": [
8
- "sfdx force:schema:sobject:list -c all",
9
- "sfdx force:schema:sobject:list -c custom",
10
- "sfdx force:schema:sobject:list -c standard"
8
+ "$ sfdx force:schema:sobject:list -c all",
9
+ "$ sfdx force:schema:sobject:list -c custom",
10
+ "$ sfdx force:schema:sobject:list -c standard"
11
11
  ],
12
12
  "noTypeFound": "No %s objects found."
13
13
  }
@@ -1 +1 @@
1
- {"version":"1.1.0","commands":{"force:schema:sobject:describe":{"id":"force:schema:sobject:describe","description":"displays the metadata for a standard or custom object","usage":"<%= command.id %> -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-schema","pluginType":"core","aliases":[],"examples":["sfdx force:schema:sobject:describe -s Account","sfdx force:schema:sobject:describe -s MyObject__c","sfdx force:schema:sobject:describe -s ApexClass -t"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the API name of the object to describe","required":true},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"execute with Tooling API","allowNo":false}},"args":[]},"force:schema:sobject:list":{"id":"force:schema:sobject:list","description":"list all objects of a specified category","usage":"<%= command.id %> [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-schema","pluginType":"core","aliases":[],"examples":["sfdx force:schema:sobject:list -c all","sfdx force:schema:sobject:list -c custom","sfdx force:schema:sobject:list -c standard"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttypecategory":{"name":"sobjecttypecategory","type":"option","char":"c","description":"the type of objects to list (all|custom|standard)","default":"ALL"}},"args":[]}}}
1
+ {"version":"2.1.1","commands":{"force:schema:sobject:describe":{"id":"force:schema:sobject:describe","description":"displays the metadata for a standard or custom object","strict":true,"usage":"<%= command.id %> -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-schema","pluginAlias":"@salesforce/plugin-schema","pluginType":"core","aliases":[],"examples":["$ sfdx force:schema:sobject:describe -s Account","$ sfdx force:schema:sobject:describe -s MyObject__c","$ sfdx force:schema:sobject:describe -s ApexClass -t"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the API name of the object to describe","required":true,"multiple":false},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"execute with Tooling API","allowNo":false}},"args":[],"flagsConfig":{"sobjecttype":{"kind":"string","char":"s","required":true,"description":"the API name of the object to describe","input":[],"multiple":false,"type":"option"},"usetoolingapi":{"kind":"boolean","char":"t","description":"execute with Tooling API","allowNo":false,"type":"boolean"}},"requiresUsername":true},"force:schema:sobject:list":{"id":"force:schema:sobject:list","description":"list all objects of a specified category","strict":true,"usage":"<%= command.id %> [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-schema","pluginAlias":"@salesforce/plugin-schema","pluginType":"core","aliases":[],"examples":["$ sfdx force:schema:sobject:list -c all","$ sfdx force:schema:sobject:list -c custom","$ sfdx force:schema:sobject:list -c standard"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttypecategory":{"name":"sobjecttypecategory","type":"option","char":"c","description":"the type of objects to list (all|custom|standard)","multiple":false,"default":"ALL"}},"args":[],"flagsConfig":{"sobjecttypecategory":{"kind":"string","char":"c","default":"ALL","description":"the type of objects to list (all|custom|standard)","input":[],"multiple":false,"type":"option"}},"requiresUsername":true}}}
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-schema",
3
3
  "description": "Commands to interact with salesforce sobject schemas",
4
- "version": "1.1.0",
4
+ "version": "2.1.1",
5
5
  "author": "Salesforce",
6
+ "main": "lib/index.js",
6
7
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
8
  "dependencies": {
8
- "@oclif/config": "^1",
9
- "@salesforce/command": "^4.2.0",
10
- "@salesforce/core": "^2.31.0",
9
+ "@oclif/core": "^1.6.3",
10
+ "@salesforce/command": "^5.0.4",
11
+ "@salesforce/core": "^3.16.0",
11
12
  "tslib": "^2"
12
13
  },
13
14
  "devDependencies": {
14
- "@oclif/dev-cli": "^1",
15
- "@oclif/plugin-command-snapshot": "^2.2.2",
15
+ "@oclif/plugin-command-snapshot": "^3",
16
16
  "@salesforce/cli-plugins-testkit": "^1.4.11",
17
- "@salesforce/dev-config": "^2.1.2",
18
- "@salesforce/dev-scripts": "^0.9.15",
17
+ "@salesforce/dev-config": "^3.0.1",
18
+ "@salesforce/dev-scripts": "^2.0.1",
19
19
  "@salesforce/plugin-command-reference": "^1.3.0",
20
20
  "@salesforce/prettier-config": "^0.0.2",
21
21
  "@salesforce/ts-sinon": "1.3.21",
@@ -29,16 +29,17 @@
29
29
  "eslint-config-salesforce-license": "^0.1.6",
30
30
  "eslint-config-salesforce-typescript": "^0.2.8",
31
31
  "eslint-plugin-header": "^3.0.0",
32
- "eslint-plugin-import": "2.25.2",
32
+ "eslint-plugin-import": "2.26.0",
33
33
  "eslint-plugin-jsdoc": "^35.1.2",
34
34
  "eslint-plugin-prettier": "^3.1.3",
35
- "husky": "^4.3.8",
35
+ "husky": "^7.0.4",
36
36
  "lint-staged": "^11.0.0",
37
- "mocha": "^8.4.0",
37
+ "mocha": "^9.1.3",
38
38
  "nyc": "^15.1.0",
39
+ "oclif": "^2.6.3",
39
40
  "prettier": "^2.0.5",
40
41
  "pretty-quick": "^3.1.0",
41
- "shx": "0.3.3",
42
+ "shx": "0.3.4",
42
43
  "sinon": "10.0.0",
43
44
  "ts-node": "^10.0.0",
44
45
  "typescript": "^4.1.3"
@@ -49,7 +50,7 @@
49
50
  }
50
51
  },
51
52
  "engines": {
52
- "node": ">=12.0.0"
53
+ "node": ">=14.0.0"
53
54
  },
54
55
  "files": [
55
56
  "/lib",
@@ -109,20 +110,13 @@
109
110
  "test:command-reference": "./bin/run commandreference:generate --erroronwarnings",
110
111
  "test:deprecation-policy": "./bin/run snapshot:compare",
111
112
  "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
112
- "version": "oclif-dev readme"
113
- },
114
- "husky": {
115
- "hooks": {
116
- "pre-commit": "sf-husky-pre-commit",
117
- "commit-msg": "sf-husky-commit-msg",
118
- "pre-push": "sf-husky-pre-push"
119
- }
113
+ "version": "oclif readme"
120
114
  },
121
115
  "publishConfig": {
122
116
  "access": "public"
123
117
  },
124
118
  "sfdx": {
125
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-schema/1.1.0.crt",
126
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-schema/1.1.0.sig"
119
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-schema/2.1.1.crt",
120
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-schema/2.1.1.sig"
127
121
  }
128
122
  }