@salesforce/templates 66.15.0 → 66.16.2

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.
Files changed (33) hide show
  1. package/lib/generators/lightningAppGenerator.js +7 -7
  2. package/lib/generators/lightningAppGenerator.js.map +1 -1
  3. package/lib/generators/lightningOutGenerator.d.ts +7 -0
  4. package/lib/generators/lightningOutGenerator.js +122 -0
  5. package/lib/generators/lightningOutGenerator.js.map +1 -0
  6. package/lib/generators/visualforceComponentGenerator.js +2 -2
  7. package/lib/generators/visualforceComponentGenerator.js.map +1 -1
  8. package/lib/i18n/i18n.d.ts +10 -0
  9. package/lib/i18n/i18n.js +10 -0
  10. package/lib/i18n/i18n.js.map +1 -1
  11. package/lib/index.d.ts +1 -0
  12. package/lib/index.js +1 -0
  13. package/lib/index.js.map +1 -1
  14. package/lib/templates/lightningout/default/corsWhitelistOrigin.xml +4 -0
  15. package/lib/templates/lightningout/default/externalClientApplication.xml +7 -0
  16. package/lib/templates/lightningout/default/extlClntAppGlobalOauthSettings.xml +7 -0
  17. package/lib/templates/lightningout/default/extlClntAppOauthSettings.xml +6 -0
  18. package/lib/templates/lightningout/default/lightningOutApp.xml +20 -0
  19. package/lib/templates/lightningout/default/myDomainSettings.xml +4 -0
  20. package/lib/templates/lightningout/default/securitySettings.xml +6 -0
  21. package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/package-lock.json +1239 -838
  22. package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/package-lock.json +1245 -844
  23. package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/package-lock.json +966 -612
  24. package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/package-lock.json +965 -611
  25. package/lib/templates/uiBundles/angularbasic/package-lock.json +1239 -838
  26. package/lib/templates/uiBundles/reactbasic/package-lock.json +959 -605
  27. package/lib/utils/lightningOut.d.ts +42 -0
  28. package/lib/utils/lightningOut.js +119 -0
  29. package/lib/utils/lightningOut.js.map +1 -0
  30. package/lib/utils/types.d.ts +28 -6
  31. package/lib/utils/types.js +8 -5
  32. package/lib/utils/types.js.map +1 -1
  33. package/package.json +5 -1
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Runtimes supported by a Lightning Out 2.0 app.
3
+ * Exposed so CLI plugins can derive their flag `options` list from a single source of truth.
4
+ */
5
+ export declare const LIGHTNING_OUT_RUNTIMES: readonly ["LWR_CORE", "CLWR"];
6
+ export type LightningOutRuntime = (typeof LIGHTNING_OUT_RUNTIMES)[number];
7
+ /** Result of normalizing a raw host-domain list. Arrays are index-aligned. */
8
+ export interface NormalizedHostDomains {
9
+ /** Canonical origins (scheme://host[:port]) for allowedDomains + CorsWhitelistOrigin urlPattern. */
10
+ origins: string[];
11
+ /** Filesystem-safe token per origin (index-aligned with `origins`). */
12
+ fileTokens: string[];
13
+ }
14
+ /**
15
+ * Filesystem-/Metadata-API-safe token for an origin. Strips the scheme first
16
+ * (so we never emit a leading "https_" the Metadata API misreads as a namespace
17
+ * prefix), then collapses runs of non-alphanumerics to '_' and trims underscores.
18
+ */
19
+ export declare function originToFileToken(origin: string): string;
20
+ /**
21
+ * Normalize a raw host-domain list into canonical origins + filename tokens.
22
+ * Lowercases scheme/host, strips default ports, rejects wildcards/paths and any
23
+ * scheme other than http/https, dedupes case-insensitively, and throws
24
+ * if two distinct origins collide on the same filename token.
25
+ */
26
+ export declare function normalizeHostDomains(raw: string[]): NormalizedHostDomains;
27
+ /**
28
+ * Validate a Salesforce DeveloperName within a max length. Returns an error
29
+ * string (for the caller's error list) or undefined when valid. ASCII only:
30
+ * starts with a letter, then letters/digits/single underscores, no consecutive
31
+ * or trailing underscore.
32
+ */
33
+ export declare function checkDeveloperName(value: string, field: string, maxLength: number): string | undefined;
34
+ /**
35
+ * True if `ref` is a component reference in kebab ("ns-my-component"), module/slash
36
+ * ("ns/myComponent"), or Aura colon ("ns:MyComponent") form. This is a structural
37
+ * well-formedness check only: it mirrors Core's Aura-enabled component-name validator
38
+ * (setup_lightningout loApplicationEditHelper.validateComponentName). Because this
39
+ * generator is offline it can't read the org's Aura-in-Lightning-Out preference, so it
40
+ * always allows the colon (Aura) form and defers the org-policy decision to deploy time.
41
+ */
42
+ export declare function isValidComponentRef(ref: string): boolean;
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2026, salesforce.com, inc.
4
+ * All rights reserved.
5
+ * Licensed under the BSD 3-Clause license.
6
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.LIGHTNING_OUT_RUNTIMES = void 0;
10
+ exports.originToFileToken = originToFileToken;
11
+ exports.normalizeHostDomains = normalizeHostDomains;
12
+ exports.checkDeveloperName = checkDeveloperName;
13
+ exports.isValidComponentRef = isValidComponentRef;
14
+ const node_url_1 = require("node:url");
15
+ const i18n_1 = require("../i18n");
16
+ /**
17
+ * Runtimes supported by a Lightning Out 2.0 app.
18
+ * Exposed so CLI plugins can derive their flag `options` list from a single source of truth.
19
+ */
20
+ exports.LIGHTNING_OUT_RUNTIMES = ['LWR_CORE', 'CLWR'];
21
+ /**
22
+ * Filesystem-/Metadata-API-safe token for an origin. Strips the scheme first
23
+ * (so we never emit a leading "https_" the Metadata API misreads as a namespace
24
+ * prefix), then collapses runs of non-alphanumerics to '_' and trims underscores.
25
+ */
26
+ function originToFileToken(origin) {
27
+ return origin
28
+ .replace(/^https?:\/\//, '')
29
+ .replace(/[^A-Za-z0-9]+/g, '_')
30
+ .replace(/^_+|_+$/g, '');
31
+ }
32
+ function normalizeOne(raw) {
33
+ const trimmed = (raw !== null && raw !== void 0 ? raw : '').trim();
34
+ if (trimmed.includes('*')) {
35
+ throw new Error(i18n_1.nls.localize('InvalidLightningOutHostDomain', [raw, 'wildcards are not allowed']));
36
+ }
37
+ let u;
38
+ try {
39
+ u = new node_url_1.URL(trimmed);
40
+ }
41
+ catch (_a) {
42
+ throw new Error(i18n_1.nls.localize('InvalidLightningOutHostDomain', [raw, 'not a valid absolute URL']));
43
+ }
44
+ const scheme = u.protocol.replace(':', '').toLowerCase();
45
+ const host = u.hostname.toLowerCase();
46
+ // Mirror Core's LightningOutApp.isValidHostDomain: a host domain is an origin-style
47
+ // allowlist entry, so any http or https origin is accepted (http is not restricted to
48
+ // localhost). Other schemes (ftp/ws/...) are rejected. Since this generator is offline it
49
+ // can't know whether a domain is dev or prod, so it defers any https-in-production policy
50
+ // (e.g. Secure-cookie requirements) to deploy/runtime rather than rejecting http here.
51
+ if (scheme !== 'https' && scheme !== 'http') {
52
+ throw new Error(i18n_1.nls.localize('InvalidLightningOutHostDomain', [raw, 'must use an http or https scheme']));
53
+ }
54
+ if (u.username || u.password) {
55
+ throw new Error(i18n_1.nls.localize('InvalidLightningOutHostDomain', [raw, 'must not contain user info']));
56
+ }
57
+ if ((u.pathname && u.pathname !== '/') || u.search || u.hash) {
58
+ throw new Error(i18n_1.nls.localize('InvalidLightningOutHostDomain', [raw, 'must not contain a path, query, or fragment']));
59
+ }
60
+ const defaultPort = scheme === 'https' ? '443' : '80';
61
+ const port = u.port && u.port !== defaultPort ? `:${u.port}` : '';
62
+ const origin = `${scheme}://${host}${port}`;
63
+ return { origin };
64
+ }
65
+ /**
66
+ * Normalize a raw host-domain list into canonical origins + filename tokens.
67
+ * Lowercases scheme/host, strips default ports, rejects wildcards/paths and any
68
+ * scheme other than http/https, dedupes case-insensitively, and throws
69
+ * if two distinct origins collide on the same filename token.
70
+ */
71
+ function normalizeHostDomains(raw) {
72
+ const origins = [];
73
+ const fileTokens = [];
74
+ const seen = new Set();
75
+ const tokenToOrigin = new Map();
76
+ for (const entry of raw) {
77
+ const { origin } = normalizeOne(entry);
78
+ if (seen.has(origin)) {
79
+ continue;
80
+ }
81
+ const token = originToFileToken(origin);
82
+ const priorOrigin = tokenToOrigin.get(token);
83
+ if (priorOrigin && priorOrigin !== origin) {
84
+ throw new Error(i18n_1.nls.localize('InvalidLightningOutHostDomainCollision', [origin, priorOrigin, token]));
85
+ }
86
+ seen.add(origin);
87
+ tokenToOrigin.set(token, origin);
88
+ origins.push(origin);
89
+ fileTokens.push(token);
90
+ }
91
+ return { origins, fileTokens };
92
+ }
93
+ /**
94
+ * Validate a Salesforce DeveloperName within a max length. Returns an error
95
+ * string (for the caller's error list) or undefined when valid. ASCII only:
96
+ * starts with a letter, then letters/digits/single underscores, no consecutive
97
+ * or trailing underscore.
98
+ */
99
+ function checkDeveloperName(value, field, maxLength) {
100
+ if (!/^[A-Za-z][A-Za-z0-9_]*$/.test(value) || /__/.test(value) || value.endsWith('_')) {
101
+ return i18n_1.nls.localize('InvalidLightningOutName', [field, value]);
102
+ }
103
+ if (value.length > maxLength) {
104
+ return i18n_1.nls.localize('InvalidLightningOutNameLength', [field, String(maxLength), String(value.length)]);
105
+ }
106
+ return undefined;
107
+ }
108
+ /**
109
+ * True if `ref` is a component reference in kebab ("ns-my-component"), module/slash
110
+ * ("ns/myComponent"), or Aura colon ("ns:MyComponent") form. This is a structural
111
+ * well-formedness check only: it mirrors Core's Aura-enabled component-name validator
112
+ * (setup_lightningout loApplicationEditHelper.validateComponentName). Because this
113
+ * generator is offline it can't read the org's Aura-in-Lightning-Out preference, so it
114
+ * always allows the colon (Aura) form and defers the org-policy decision to deploy time.
115
+ */
116
+ function isValidComponentRef(ref) {
117
+ return /^[a-z][a-zA-Z0-9_]*[-:/][A-Za-z][A-Za-z0-9_-]*[A-Za-z0-9]$/.test((ref !== null && ref !== void 0 ? ref : '').trim());
118
+ }
119
+ //# sourceMappingURL=lightningOut.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lightningOut.js","sourceRoot":"","sources":["../../src/utils/lightningOut.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAyBH,8CAKC;AA2CD,oDAqBC;AAQD,gDAQC;AAUD,kDAEC;AAxHD,uCAA+B;AAC/B,kCAA8B;AAE9B;;;GAGG;AACU,QAAA,sBA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IACzG,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,mBAAmB,CAAC,GAAW;IAC7C,OAAO,4DAA4D,CAAC,IAAI,CAAC,CAAC,GAAG,aAAH,GAAG,cAAH,GAAG,GAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAC/F,CAAC"}
@@ -5,6 +5,7 @@ import FlexipageGenerator from '../generators/flexipageGenerator';
5
5
  import LightningAppGenerator from '../generators/lightningAppGenerator';
6
6
  import LightningComponentGenerator from '../generators/lightningComponentGenerator';
7
7
  import UIEmbeddingGenerator from '../generators/uiEmbeddingGenerator';
8
+ import LightningOutGenerator from '../generators/lightningOutGenerator';
8
9
  import LightningEventGenerator from '../generators/lightningEventGenerator';
9
10
  import LightningInterfaceGenerator from '../generators/lightningInterfaceGenerator';
10
11
  import LightningTestGenerator from '../generators/lightningTestGenerator';
@@ -27,7 +28,7 @@ export type GeneratorContext = {
27
28
  /** Absolute path to built-in templates root. Overrides __dirname-based resolution. */
28
29
  readonly templatesRootPath?: string;
29
30
  };
30
- export type Generators = typeof AnalyticsTemplateGenerator | typeof ApexClassGenerator | typeof ApexTriggerGenerator | typeof FlexipageGenerator | typeof LightningAppGenerator | typeof LightningComponentGenerator | typeof LightningEventGenerator | typeof LightningTestGenerator | typeof LightningInterfaceGenerator | typeof DigitalExperienceSiteGenerator | typeof UIEmbeddingGenerator | typeof ProjectGenerator | typeof StaticResourceGenerator | typeof VisualforceComponentGenerator | typeof VisualforcePageGenerator | typeof UIBundleGenerator;
31
+ export type Generators = typeof AnalyticsTemplateGenerator | typeof ApexClassGenerator | typeof ApexTriggerGenerator | typeof FlexipageGenerator | typeof LightningAppGenerator | typeof LightningComponentGenerator | typeof LightningEventGenerator | typeof LightningTestGenerator | typeof LightningInterfaceGenerator | typeof DigitalExperienceSiteGenerator | typeof UIEmbeddingGenerator | typeof LightningOutGenerator | typeof ProjectGenerator | typeof StaticResourceGenerator | typeof VisualforceComponentGenerator | typeof VisualforcePageGenerator | typeof UIBundleGenerator;
31
32
  /**
32
33
  * Available Template types
33
34
  * Each template type must have a corresponding generator class:
@@ -47,11 +48,12 @@ export declare enum TemplateType {
47
48
  LightningTest = 8,
48
49
  DigitalExperienceSite = 9,
49
50
  UIEmbedding = 10,
50
- Project = 11,
51
- VisualforceComponent = 12,
52
- VisualforcePage = 13,
53
- StaticResource = 14,
54
- UIBundle = 15
51
+ LightningOut = 11,
52
+ Project = 12,
53
+ VisualforceComponent = 13,
54
+ VisualforcePage = 14,
55
+ StaticResource = 15,
56
+ UIBundle = 16
55
57
  }
56
58
  export declare const generators: Map<TemplateType, GeneratorClass<any>>;
57
59
  export type CreateOutput = {
@@ -122,6 +124,26 @@ export interface UIEmbeddingOptions extends TemplateOptions {
122
124
  title: string;
123
125
  internal: boolean;
124
126
  }
127
+ export interface LightningOutEcaOptions {
128
+ /** ECA DeveloperName (≤ 80 chars). */
129
+ name: string;
130
+ /** Required contact email. */
131
+ contactEmail: string;
132
+ /** Required absolute https callback/redirect URL. */
133
+ callbackUrl: string;
134
+ }
135
+ export interface LightningOutOptions extends TemplateOptions {
136
+ /** LightningOutApp DeveloperName AND <applicationName> value (≤ 64 chars). */
137
+ appName: string;
138
+ /** LWR_CORE or CLWR. */
139
+ runtime: 'LWR_CORE' | 'CLWR';
140
+ /** Explicit https origins of the external host pages that embed the app. Required, ≥ 1. */
141
+ hostDomains: string[];
142
+ /** Optional component references exposed by the app (LWC "c/x" or Aura "c:X"). */
143
+ components?: string[];
144
+ /** External Client Application (OAuth) settings. */
145
+ eca: LightningOutEcaOptions;
146
+ }
125
147
  export interface ProjectOptions extends TemplateOptions {
126
148
  projectname: string;
127
149
  defaultpackagedir: string;
@@ -15,6 +15,7 @@ const flexipageGenerator_1 = tslib_1.__importDefault(require("../generators/flex
15
15
  const lightningAppGenerator_1 = tslib_1.__importDefault(require("../generators/lightningAppGenerator"));
16
16
  const lightningComponentGenerator_1 = tslib_1.__importDefault(require("../generators/lightningComponentGenerator"));
17
17
  const uiEmbeddingGenerator_1 = tslib_1.__importDefault(require("../generators/uiEmbeddingGenerator"));
18
+ const lightningOutGenerator_1 = tslib_1.__importDefault(require("../generators/lightningOutGenerator"));
18
19
  const lightningEventGenerator_1 = tslib_1.__importDefault(require("../generators/lightningEventGenerator"));
19
20
  const lightningInterfaceGenerator_1 = tslib_1.__importDefault(require("../generators/lightningInterfaceGenerator"));
20
21
  const lightningTestGenerator_1 = tslib_1.__importDefault(require("../generators/lightningTestGenerator"));
@@ -44,11 +45,12 @@ var TemplateType;
44
45
  TemplateType[TemplateType["LightningTest"] = 8] = "LightningTest";
45
46
  TemplateType[TemplateType["DigitalExperienceSite"] = 9] = "DigitalExperienceSite";
46
47
  TemplateType[TemplateType["UIEmbedding"] = 10] = "UIEmbedding";
47
- TemplateType[TemplateType["Project"] = 11] = "Project";
48
- TemplateType[TemplateType["VisualforceComponent"] = 12] = "VisualforceComponent";
49
- TemplateType[TemplateType["VisualforcePage"] = 13] = "VisualforcePage";
50
- TemplateType[TemplateType["StaticResource"] = 14] = "StaticResource";
51
- TemplateType[TemplateType["UIBundle"] = 15] = "UIBundle";
48
+ TemplateType[TemplateType["LightningOut"] = 11] = "LightningOut";
49
+ TemplateType[TemplateType["Project"] = 12] = "Project";
50
+ TemplateType[TemplateType["VisualforceComponent"] = 13] = "VisualforceComponent";
51
+ TemplateType[TemplateType["VisualforcePage"] = 14] = "VisualforcePage";
52
+ TemplateType[TemplateType["StaticResource"] = 15] = "StaticResource";
53
+ TemplateType[TemplateType["UIBundle"] = 16] = "UIBundle";
52
54
  })(TemplateType || (exports.TemplateType = TemplateType = {}));
53
55
  exports.generators = new Map([
54
56
  [TemplateType.AnalyticsTemplate, analyticsTemplateGenerator_1.default],
@@ -62,6 +64,7 @@ exports.generators = new Map([
62
64
  [TemplateType.LightningTest, lightningTestGenerator_1.default],
63
65
  [TemplateType.DigitalExperienceSite, digitalExperienceSiteGenerator_1.default],
64
66
  [TemplateType.UIEmbedding, uiEmbeddingGenerator_1.default],
67
+ [TemplateType.LightningOut, lightningOutGenerator_1.default],
65
68
  [TemplateType.Project, projectGenerator_1.default],
66
69
  [TemplateType.StaticResource, staticResourceGenerator_1.default],
67
70
  [TemplateType.VisualforceComponent, visualforceComponentGenerator_1.default],
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAEH,kHAAkF;AAClF,kGAAkE;AAClE,sGAAsE;AACtE,kGAAkE;AAClE,wGAAwE;AACxE,oHAAoF;AACpF,sGAAsE;AACtE,4GAA4E;AAC5E,oHAAoF;AACpF,0GAA0E;AAC1E,0HAA0F;AAC1F,8FAA8D;AAC9D,4GAA4E;AAC5E,wHAAwF;AACxF,8GAA8E;AAC9E,gGAAgE;AAuChE;;;;;;GAMG;AACH,IAAY,YAiBX;AAjBD,WAAY,YAAY;IACtB,yEAAiB,CAAA;IACjB,yDAAS,CAAA;IACT,6DAAW,CAAA;IACX,yDAAS,CAAA;IACT,+DAAY,CAAA;IACZ,2EAAkB,CAAA;IAClB,mEAAc,CAAA;IACd,2EAAkB,CAAA;IAClB,iEAAa,CAAA;IACb,iFAAqB,CAAA;IACrB,8DAAW,CAAA;IACX,sDAAO,CAAA;IACP,gFAAoB,CAAA;IACpB,sEAAe,CAAA;IACf,oEAAc,CAAA;IACd,wDAAQ,CAAA;AACV,CAAC,EAjBW,YAAY,4BAAZ,YAAY,QAiBvB;AAEY,QAAA,UAAU,GAAG,IAAI,GAAG,CAAoC;IACnE,CAAC,YAAY,CAAC,iBAAiB,EAAE,oCAA0B,CAAC;IAC5D,CAAC,YAAY,CAAC,SAAS,EAAE,4BAAkB,CAAC;IAC5C,CAAC,YAAY,CAAC,WAAW,EAAE,8BAAoB,CAAC;IAChD,CAAC,YAAY,CAAC,SAAS,EAAE,4BAAkB,CAAC;IAC5C,CAAC,YAAY,CAAC,YAAY,EAAE,+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,sDAAO,CAAA;IACP,gFAAoB,CAAA;IACpB,sEAAe,CAAA;IACf,oEAAc,CAAA;IACd,wDAAQ,CAAA;AACV,CAAC,EAlBW,YAAY,4BAAZ,YAAY,QAkBvB;AAEY,QAAA,UAAU,GAAG,IAAI,GAAG,CAAoC;IACnE,CAAC,YAAY,CAAC,iBAAiB,EAAE,oCAA0B,CAAC;IAC5D,CAAC,YAAY,CAAC,SAAS,EAAE,4BAAkB,CAAC;IAC5C,CAAC,YAAY,CAAC,WAAW,EAAE,8BAAoB,CAAC;IAChD,CAAC,YAAY,CAAC,SAAS,EAAE,4BAAkB,CAAC;IAC5C,CAAC,YAAY,CAAC,YAAY,EAAE,+BAAqB,CAAC;IAClD,CAAC,YAAY,CAAC,kBAAkB,EAAE,qCAA2B,CAAC;IAC9D,CAAC,YAAY,CAAC,cAAc,EAAE,iCAAuB,CAAC;IACtD,CAAC,YAAY,CAAC,kBAAkB,EAAE,qCAA2B,CAAC;IAC9D,CAAC,YAAY,CAAC,aAAa,EAAE,gCAAsB,CAAC;IACpD,CAAC,YAAY,CAAC,qBAAqB,EAAE,wCAA8B,CAAC;IACpE,CAAC,YAAY,CAAC,WAAW,EAAE,8BAAoB,CAAC;IAChD,CAAC,YAAY,CAAC,YAAY,EAAE,+BAAqB,CAAC;IAClD,CAAC,YAAY,CAAC,OAAO,EAAE,0BAAgB,CAAC;IACxC,CAAC,YAAY,CAAC,cAAc,EAAE,iCAAuB,CAAC;IACtD,CAAC,YAAY,CAAC,oBAAoB,EAAE,uCAA6B,CAAC;IAClE,CAAC,YAAY,CAAC,eAAe,EAAE,kCAAwB,CAAC;IACxD,CAAC,YAAY,CAAC,QAAQ,EAAE,2BAAiB,CAAC;CAC3C,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/templates",
3
- "version": "66.15.0",
3
+ "version": "66.16.2",
4
4
  "description": "Salesforce JS library for templates",
5
5
  "bugs": "https://github.com/forcedotcom/salesforcedx-templates/issues",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/forcedotcom/salesforcedx-templates.git"
9
+ },
6
10
  "main": "lib/index.js",
7
11
  "author": "Salesforce",
8
12
  "homepage": "https://github.com/forcedotcom/salesforcedx-templates",