@salesforce/plugin-templates 57.0.10 → 57.1.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/README.md CHANGED
@@ -177,7 +177,7 @@ FLAG DESCRIPTIONS
177
177
  directory.
178
178
  ```
179
179
 
180
- _See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/analytics/template.ts)_
180
+ _See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/analytics/template.ts)_
181
181
 
182
182
  ## `sf template generate apex class`
183
183
 
@@ -239,7 +239,7 @@ FLAG DESCRIPTIONS
239
239
  Supplied parameter values or default values are filled into a copy of the template.
240
240
  ```
241
241
 
242
- _See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/apex/class.ts)_
242
+ _See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/apex/class.ts)_
243
243
 
244
244
  ## `sf template generate apex trigger`
245
245
 
@@ -309,7 +309,7 @@ FLAG DESCRIPTIONS
309
309
  Supplied parameter values or default values are filled into a copy of the template.
310
310
  ```
311
311
 
312
- _See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/apex/trigger.ts)_
312
+ _See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/apex/trigger.ts)_
313
313
 
314
314
  ## `sf template generate digital-experience site`
315
315
 
@@ -363,7 +363,7 @@ FLAG DESCRIPTIONS
363
363
  project, defaults to the current directory.
364
364
  ```
365
365
 
366
- _See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/digital-experience/site.ts)_
366
+ _See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/digital-experience/site.ts)_
367
367
 
368
368
  ## `sf template generate flexipage`
369
369
 
@@ -445,7 +445,7 @@ FLAG DESCRIPTIONS
445
445
  'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.
446
446
  ```
447
447
 
448
- _See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/flexipage/index.ts)_
448
+ _See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/flexipage/index.ts)_
449
449
 
450
450
  ## `sf template generate lightning app`
451
451
 
@@ -503,7 +503,7 @@ FLAG DESCRIPTIONS
503
503
  field in the DX project's "sfdx-project.json" file.
504
504
  ```
505
505
 
506
- _See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/lightning/app.ts)_
506
+ _See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/lightning/app.ts)_
507
507
 
508
508
  ## `sf template generate lightning component`
509
509
 
@@ -580,7 +580,7 @@ FLAG DESCRIPTIONS
580
580
  field in the DX project's "sfdx-project.json" file.
581
581
  ```
582
582
 
583
- _See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/lightning/component.ts)_
583
+ _See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/lightning/component.ts)_
584
584
 
585
585
  ## `sf template generate lightning event`
586
586
 
@@ -638,7 +638,7 @@ FLAG DESCRIPTIONS
638
638
  field in the DX project's "sfdx-project.json" file.
639
639
  ```
640
640
 
641
- _See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/lightning/event.ts)_
641
+ _See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/lightning/event.ts)_
642
642
 
643
643
  ## `sf template generate lightning interface`
644
644
 
@@ -696,7 +696,7 @@ FLAG DESCRIPTIONS
696
696
  field in the DX project's "sfdx-project.json" file.
697
697
  ```
698
698
 
699
- _See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/lightning/interface.ts)_
699
+ _See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/lightning/interface.ts)_
700
700
 
701
701
  ## `sf template generate lightning test`
702
702
 
@@ -754,7 +754,7 @@ FLAG DESCRIPTIONS
754
754
  field in the DX project's "sfdx-project.json" file.
755
755
  ```
756
756
 
757
- _See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/lightning/test.ts)_
757
+ _See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/lightning/test.ts)_
758
758
 
759
759
  ## `sf template generate project`
760
760
 
@@ -886,7 +886,7 @@ FLAG DESCRIPTIONS
886
886
  server-side type stripping.
887
887
  ```
888
888
 
889
- _See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/project/index.ts)_
889
+ _See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/project/index.ts)_
890
890
 
891
891
  ## `sf template generate static-resource`
892
892
 
@@ -949,7 +949,7 @@ FLAG DESCRIPTIONS
949
949
  etc.
950
950
  ```
951
951
 
952
- _See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/static-resource/index.ts)_
952
+ _See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/static-resource/index.ts)_
953
953
 
954
954
  ## `sf template generate ui-bundle`
955
955
 
@@ -1038,7 +1038,7 @@ FLAG DESCRIPTIONS
1038
1038
  Supplied parameter values or default values are filled into a copy of the template.
1039
1039
  ```
1040
1040
 
1041
- _See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/ui-bundle/index.ts)_
1041
+ _See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/ui-bundle/index.ts)_
1042
1042
 
1043
1043
  ## `sf template generate visualforce component`
1044
1044
 
@@ -1095,7 +1095,7 @@ FLAG DESCRIPTIONS
1095
1095
  Supplied parameter values or default values are filled into a copy of the template.
1096
1096
  ```
1097
1097
 
1098
- _See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/visualforce/component.ts)_
1098
+ _See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/visualforce/component.ts)_
1099
1099
 
1100
1100
  ## `sf template generate visualforce page`
1101
1101
 
@@ -1146,6 +1146,6 @@ FLAG DESCRIPTIONS
1146
1146
  The name can be up to 40 characters and must start with a letter.
1147
1147
  ```
1148
1148
 
1149
- _See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/57.0.10/src/commands/template/generate/visualforce/page.ts)_
1149
+ _See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/57.1.0/src/commands/template/generate/visualforce/page.ts)_
1150
1150
 
1151
1151
  <!-- commandsstop -->
@@ -121,19 +121,21 @@ export default class UiBundleGenerate extends SfCommand {
121
121
  ux,
122
122
  templates: getCustomTemplates(this.configAggregator),
123
123
  });
124
- if (flags.template === 'reactbasic') {
125
- const bundleSourcePath = path.join(result.outputDir, flags.name, GRAPHQLRC_FILENAME);
126
- const newPath = await UiBundleGenerate.createGraphqlrcAtProjectRoot(bundleSourcePath);
127
- if (newPath) {
128
- const targetRelative = path.relative(process.cwd(), newPath);
129
- const createLine = ` create ${targetRelative}`;
130
- ux.log(createLine);
131
- return {
132
- ...result,
133
- created: [...result.created, targetRelative],
134
- rawOutput: `${result.rawOutput.replace(/\n$/, '')}\n${createLine}\n`,
135
- };
136
- }
124
+ // Any template that scaffolds GraphQL tooling ships a bundle-level .graphqlrc.yml. When one is
125
+ // present, mirror it to the project root so the GraphQL LSP/lint can auto-discover the schema.
126
+ // Detection is by artifact rather than a per-template allowlist: createGraphqlrcAtProjectRoot
127
+ // no-ops when the generated bundle has no .graphqlrc.yml (e.g. the default template).
128
+ const bundleSourcePath = path.join(result.outputDir, flags.name, GRAPHQLRC_FILENAME);
129
+ const newPath = await UiBundleGenerate.createGraphqlrcAtProjectRoot(bundleSourcePath);
130
+ if (newPath) {
131
+ const targetRelative = path.relative(process.cwd(), newPath);
132
+ const createLine = ` create ${targetRelative}`;
133
+ ux.log(createLine);
134
+ return {
135
+ ...result,
136
+ created: [...result.created, targetRelative],
137
+ rawOutput: `${result.rawOutput.replace(/\n$/, '')}\n${createLine}\n`,
138
+ };
137
139
  }
138
140
  return result;
139
141
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/commands/template/generate/ui-bundle/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAiC,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,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EAAE,GAAG,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,UAAU,IAAI;aACrE,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC"}
@@ -1932,6 +1932,135 @@
1932
1932
  "test:lightning:generate:template"
1933
1933
  ]
1934
1934
  },
1935
+ "template:generate:static-resource": {
1936
+ "aliases": [
1937
+ "force:staticresource:create",
1938
+ "static-resource:generate"
1939
+ ],
1940
+ "args": {},
1941
+ "deprecateAliases": true,
1942
+ "description": "Generates the metadata resource file in the specified directory or the current working directory. Static resource files must be contained in a parent directory called \"staticresources\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to create one or point to an existing one.",
1943
+ "examples": [
1944
+ "Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
1945
+ "Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
1946
+ "Generate the resource file in the \"force-app/main/default/staticresources\" directory:\n<%= config.bin %> <%= command.id %> --name MyResource --output-dir force-app/main/default/staticresources"
1947
+ ],
1948
+ "flags": {
1949
+ "json": {
1950
+ "description": "Format output as json.",
1951
+ "helpGroup": "GLOBAL",
1952
+ "name": "json",
1953
+ "allowNo": false,
1954
+ "type": "boolean"
1955
+ },
1956
+ "flags-dir": {
1957
+ "helpGroup": "GLOBAL",
1958
+ "name": "flags-dir",
1959
+ "summary": "Import flag values from a directory.",
1960
+ "hasDynamicHelp": false,
1961
+ "multiple": false,
1962
+ "type": "option"
1963
+ },
1964
+ "name": {
1965
+ "aliases": [
1966
+ "resourcename"
1967
+ ],
1968
+ "char": "n",
1969
+ "deprecateAliases": true,
1970
+ "description": "This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.",
1971
+ "name": "name",
1972
+ "required": true,
1973
+ "summary": "Name of the generated static resource.",
1974
+ "hasDynamicHelp": false,
1975
+ "multiple": false,
1976
+ "type": "option"
1977
+ },
1978
+ "type": {
1979
+ "aliases": [
1980
+ "contenttype"
1981
+ ],
1982
+ "deprecateAliases": true,
1983
+ "description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
1984
+ "name": "type",
1985
+ "summary": "Content type (mime type) of the generated static resource.",
1986
+ "default": "application/zip",
1987
+ "hasDynamicHelp": false,
1988
+ "multiple": false,
1989
+ "type": "option"
1990
+ },
1991
+ "output-dir": {
1992
+ "aliases": [
1993
+ "outputdir"
1994
+ ],
1995
+ "char": "d",
1996
+ "deprecateAliases": true,
1997
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
1998
+ "name": "output-dir",
1999
+ "summary": "Directory for saving the created files.",
2000
+ "default": ".",
2001
+ "hasDynamicHelp": false,
2002
+ "multiple": false,
2003
+ "type": "option"
2004
+ },
2005
+ "api-version": {
2006
+ "aliases": [
2007
+ "apiversion"
2008
+ ],
2009
+ "deprecateAliases": true,
2010
+ "description": "Override the api version used for api requests made by this command",
2011
+ "name": "api-version",
2012
+ "hasDynamicHelp": false,
2013
+ "multiple": false,
2014
+ "type": "option"
2015
+ },
2016
+ "loglevel": {
2017
+ "deprecated": {
2018
+ "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SF_LOG_LEVEL` environment variable."
2019
+ },
2020
+ "hidden": true,
2021
+ "name": "loglevel",
2022
+ "hasDynamicHelp": false,
2023
+ "multiple": false,
2024
+ "type": "option"
2025
+ }
2026
+ },
2027
+ "hasDynamicHelp": false,
2028
+ "hiddenAliases": [],
2029
+ "id": "template:generate:static-resource",
2030
+ "pluginAlias": "@salesforce/plugin-templates",
2031
+ "pluginName": "@salesforce/plugin-templates",
2032
+ "pluginType": "core",
2033
+ "strict": true,
2034
+ "summary": "Generate a static resource.",
2035
+ "enableJsonFlag": true,
2036
+ "isESM": true,
2037
+ "relativePath": [
2038
+ "lib",
2039
+ "commands",
2040
+ "template",
2041
+ "generate",
2042
+ "static-resource",
2043
+ "index.js"
2044
+ ],
2045
+ "aliasPermutations": [
2046
+ "force:staticresource:create",
2047
+ "staticresource:force:create",
2048
+ "staticresource:create:force",
2049
+ "force:create:staticresource",
2050
+ "create:force:staticresource",
2051
+ "create:staticresource:force",
2052
+ "static-resource:generate",
2053
+ "generate:static-resource"
2054
+ ],
2055
+ "permutations": [
2056
+ "template:generate:static-resource",
2057
+ "generate:template:static-resource",
2058
+ "generate:static-resource:template",
2059
+ "template:static-resource:generate",
2060
+ "static-resource:template:generate",
2061
+ "static-resource:generate:template"
2062
+ ]
2063
+ },
1935
2064
  "template:generate:ui-bundle": {
1936
2065
  "aliases": [],
1937
2066
  "args": {},
@@ -2541,136 +2670,7 @@
2541
2670
  "page:visualforce:template:generate",
2542
2671
  "page:visualforce:generate:template"
2543
2672
  ]
2544
- },
2545
- "template:generate:static-resource": {
2546
- "aliases": [
2547
- "force:staticresource:create",
2548
- "static-resource:generate"
2549
- ],
2550
- "args": {},
2551
- "deprecateAliases": true,
2552
- "description": "Generates the metadata resource file in the specified directory or the current working directory. Static resource files must be contained in a parent directory called \"staticresources\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to create one or point to an existing one.",
2553
- "examples": [
2554
- "Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
2555
- "Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
2556
- "Generate the resource file in the \"force-app/main/default/staticresources\" directory:\n<%= config.bin %> <%= command.id %> --name MyResource --output-dir force-app/main/default/staticresources"
2557
- ],
2558
- "flags": {
2559
- "json": {
2560
- "description": "Format output as json.",
2561
- "helpGroup": "GLOBAL",
2562
- "name": "json",
2563
- "allowNo": false,
2564
- "type": "boolean"
2565
- },
2566
- "flags-dir": {
2567
- "helpGroup": "GLOBAL",
2568
- "name": "flags-dir",
2569
- "summary": "Import flag values from a directory.",
2570
- "hasDynamicHelp": false,
2571
- "multiple": false,
2572
- "type": "option"
2573
- },
2574
- "name": {
2575
- "aliases": [
2576
- "resourcename"
2577
- ],
2578
- "char": "n",
2579
- "deprecateAliases": true,
2580
- "description": "This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.",
2581
- "name": "name",
2582
- "required": true,
2583
- "summary": "Name of the generated static resource.",
2584
- "hasDynamicHelp": false,
2585
- "multiple": false,
2586
- "type": "option"
2587
- },
2588
- "type": {
2589
- "aliases": [
2590
- "contenttype"
2591
- ],
2592
- "deprecateAliases": true,
2593
- "description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
2594
- "name": "type",
2595
- "summary": "Content type (mime type) of the generated static resource.",
2596
- "default": "application/zip",
2597
- "hasDynamicHelp": false,
2598
- "multiple": false,
2599
- "type": "option"
2600
- },
2601
- "output-dir": {
2602
- "aliases": [
2603
- "outputdir"
2604
- ],
2605
- "char": "d",
2606
- "deprecateAliases": true,
2607
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
2608
- "name": "output-dir",
2609
- "summary": "Directory for saving the created files.",
2610
- "default": ".",
2611
- "hasDynamicHelp": false,
2612
- "multiple": false,
2613
- "type": "option"
2614
- },
2615
- "api-version": {
2616
- "aliases": [
2617
- "apiversion"
2618
- ],
2619
- "deprecateAliases": true,
2620
- "description": "Override the api version used for api requests made by this command",
2621
- "name": "api-version",
2622
- "hasDynamicHelp": false,
2623
- "multiple": false,
2624
- "type": "option"
2625
- },
2626
- "loglevel": {
2627
- "deprecated": {
2628
- "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SF_LOG_LEVEL` environment variable."
2629
- },
2630
- "hidden": true,
2631
- "name": "loglevel",
2632
- "hasDynamicHelp": false,
2633
- "multiple": false,
2634
- "type": "option"
2635
- }
2636
- },
2637
- "hasDynamicHelp": false,
2638
- "hiddenAliases": [],
2639
- "id": "template:generate:static-resource",
2640
- "pluginAlias": "@salesforce/plugin-templates",
2641
- "pluginName": "@salesforce/plugin-templates",
2642
- "pluginType": "core",
2643
- "strict": true,
2644
- "summary": "Generate a static resource.",
2645
- "enableJsonFlag": true,
2646
- "isESM": true,
2647
- "relativePath": [
2648
- "lib",
2649
- "commands",
2650
- "template",
2651
- "generate",
2652
- "static-resource",
2653
- "index.js"
2654
- ],
2655
- "aliasPermutations": [
2656
- "force:staticresource:create",
2657
- "staticresource:force:create",
2658
- "staticresource:create:force",
2659
- "force:create:staticresource",
2660
- "create:force:staticresource",
2661
- "create:staticresource:force",
2662
- "static-resource:generate",
2663
- "generate:static-resource"
2664
- ],
2665
- "permutations": [
2666
- "template:generate:static-resource",
2667
- "generate:template:static-resource",
2668
- "generate:static-resource:template",
2669
- "template:static-resource:generate",
2670
- "static-resource:template:generate",
2671
- "static-resource:generate:template"
2672
- ]
2673
2673
  }
2674
2674
  },
2675
- "version": "57.0.10"
2675
+ "version": "57.1.0"
2676
2676
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-templates",
3
3
  "description": "Commands to create metadata from a default or custom template",
4
- "version": "57.0.10",
4
+ "version": "57.1.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/salesforcecli/plugin-templates/issues",
7
7
  "enableO11y": true,
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "@salesforce/core": "^9.1.2",
11
11
  "@salesforce/sf-plugins-core": "^13.0.0",
12
- "@salesforce/templates": "^66.13.8"
12
+ "@salesforce/templates": "^66.13.9"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@oclif/plugin-command-snapshot": "^5.3.35",
@@ -259,7 +259,7 @@
259
259
  "exports": "./lib/index.js",
260
260
  "type": "module",
261
261
  "sfdx": {
262
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.0.10.crt",
263
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.0.10.sig"
262
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.1.0.crt",
263
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.1.0.sig"
264
264
  }
265
265
  }