@lwc/metadata 15.0.3 → 15.0.4

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.
@@ -75,7 +75,7 @@ function rollupDiagnostics(files) {
75
75
  );
76
76
  }
77
77
  } */
78
- const version = '15.0.2';
78
+ const version = '15.0.3';
79
79
  function collectBundleMetadata(config) {
80
80
  // validateBundleConfig(config);
81
81
  const { namespace, name, type, namespaceMapping, npmModuleMapping, files, enableKomaci, strictCSSTokenCollection, enableLuvio, experimentalComplexExpressions, apiVersion, enableClassReferences, enableCustomDeclarationProperty, enableDeclarationsCollection, } = config;
@@ -230,7 +230,7 @@ type ParentClass = {
230
230
  refId: ID;
231
231
  location: SourceLocation;
232
232
  } | 'unresolved';
233
- type SfdcResourceType = 'accessCheck' | 'apex' | 'apexMethod' | 'apexContinuation' | 'client' | 'community' | 'component' | 'contentAssetUrl' | 'customPermission' | 'dynamicComponent' | 'featureFlag' | 'messageChannel' | 'i18n' | 'gate' | 'label' | 'lds' | 'metric' | 'internal' | 'resourceUrl' | 'schema' | 'site' | 'slds' | 'user' | 'userPermission' | 'komaci' | 'webstore';
233
+ type SfdcResourceType = 'accessCheck' | 'apex' | 'apexMethod' | 'apexContinuation' | 'client' | 'codeHosts' | 'community' | 'component' | 'contentAssetUrl' | 'customPermission' | 'dynamicComponent' | 'featureFlag' | 'messageChannel' | 'i18n' | 'gate' | 'label' | 'lds' | 'metric' | 'internal' | 'resourceUrl' | 'schema' | 'site' | 'slds' | 'user' | 'userPermission' | 'komaci' | 'webstore';
234
234
  interface ModuleReference {
235
235
  name: string;
236
236
  namespacedName?: string;
@@ -0,0 +1,3 @@
1
+ import { CollectionStrategy } from '../main';
2
+ declare const codeHostsCollector: CollectionStrategy;
3
+ export default codeHostsCollector;
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var utils = require('../utils.js');
6
+
7
+ // Copyright (c) 2022, Salesforce, Inc.,
8
+ // All rights reserved.
9
+ // For full license text, see the LICENSE.txt file
10
+ const CODE_HOSTS_PREFIX = '@salesforce/codeHosts';
11
+ const codeHostsCollector = {
12
+ matches(value) {
13
+ return value === CODE_HOSTS_PREFIX;
14
+ },
15
+ collect(value, node, state) {
16
+ // import codeHosts from '@salesforce/codeHosts';
17
+ // Returns a map of namespace -> URL at runtime
18
+ const reference = utils.getModuleReference(value, node.source, state, '@salesforce');
19
+ reference.sfdcResource = { id: '', scoped: 'codeHosts' };
20
+ return reference;
21
+ },
22
+ };
23
+
24
+ exports.default = codeHostsCollector;
25
+ //# sourceMappingURL=code-hosts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-hosts.js","sources":["../../../../../src/script-metadata/module-references/collectors/scoped/code-hosts.ts"],"sourcesContent":[null],"names":["getModuleReference"],"mappings":";;;;;;AAAA;AACA;AACA;AAQA,MAAM,iBAAiB,GAAG,uBAAuB;AAEjD,MAAM,kBAAkB,GAAuB;AAC3C,IAAA,OAAO,CAAC,KAAK,EAAA;QACT,OAAO,KAAK,KAAK,iBAAiB;IACtC,CAAC;AACD,IAAA,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAA;;;AAGtB,QAAA,MAAM,SAAS,GAAoBA,wBAAkB,CACjD,KAAK,EACL,IAAI,CAAC,MAAyB,EAC9B,KAAK,EACL,aAAa,CAChB;AAED,QAAA,SAAS,CAAC,YAAY,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE;AAExD,QAAA,OAAO,SAAS;IACpB,CAAC;;;;;"}
@@ -6,6 +6,7 @@ var main = require('./collectors/main.js');
6
6
  var accessCheck = require('./collectors/scoped/access-check.js');
7
7
  var apex = require('./collectors/scoped/apex.js');
8
8
  var client = require('./collectors/scoped/client.js');
9
+ var codeHosts = require('./collectors/scoped/code-hosts.js');
9
10
  var community = require('./collectors/scoped/community.js');
10
11
  var contentAssetUrl = require('./collectors/scoped/content-asset-url.js');
11
12
  var customPermissions = require('./collectors/scoped/custom-permissions.js');
@@ -35,6 +36,7 @@ const COLLECTORS = [
35
36
  accessCheck.default,
36
37
  apex.default,
37
38
  client.default,
39
+ codeHosts.default,
38
40
  community.default,
39
41
  contentAssetUrl.default,
40
42
  customPermissions.default,
@@ -1 +1 @@
1
- {"version":3,"file":"reference.js","sources":["../../../src/script-metadata/module-references/reference.ts"],"sourcesContent":[null],"names":["accessCheckCollector","apexCollector","clientCollector","communityCollector","contentAssetUrlCollector","customPermissionsCollector","designSystemCollector","featureFlagCollector","gateCollector","i18nCollector","internalCollector","labelCollector","ldsModuleCollector","messageChannelCollector","metricCollector","resourceUrlCollector","schemaCollector","siteCollector","userCollector","userPermissionCollector","localModuleCollector","genericModuleCollector","webstoreCollector","komaciCollector","isUndefined","generateSourceLocation","QUOTE_LENGTH","collectReference"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AAmCA,MAAM,UAAU,GAAG;IACfA,mBAAoB;IACpBC,YAAa;IACbC,cAAe;IACfC,iBAAkB;IAClBC,uBAAwB;IACxBC,yBAA0B;IAC1BC,oBAAqB;IACrBC,mBAAoB;IACpBC,YAAa;IACbC,YAAa;IACbC,gBAAiB;IACjBC,aAAc;IACdC,WAAkB;IAClBC,sBAAuB;IACvBC,cAAe;IACfC,mBAAoB;IACpBC,cAAe;IACfC,YAAa;IACbC,YAAa;IACbC,sBAAuB;IACvBC,mBAAoB;IACpBC,qBAAsB;IACtBC,gBAAiB;IACjBC,cAAe;CAClB;SAEe,qBAAqB,CACjC,IAA6E,EAC7E,KAAkB,EAClB,MAAkB,EAAA;AAElB,IAAA,MAAM,EAAE,qBAAqB,EAAE,GAAG,KAAK;;;AAGvC,IAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAO;AAC3B,IAAA,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,MAAM;IAEzC,IAAI,eAAe,GAAG,qBAAqB,CAAC,GAAG,CAAC,eAAe,CAAC;AAChE,IAAA,IAAI,CAACC,iBAAW,CAAC,eAAe,CAAC,EAAE;AAC/B,QAAA,eAAe,CAAC,SAAS,CAAC,IAAI,CAACC,8BAAsB,CAAC,MAAM,EAAEC,oBAAY,EAAEA,oBAAY,CAAC,CAAC;;AAE1F,QAAAC,qBAAgB,CAAC,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC;IAC7C;SAAO;QACH,eAAe,GAAGA,qBAAgB,CAAC,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC;AAC3D,QAAA,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,eAAe,CAAC;AAC7C,QAAA,qBAAqB,CAAC,GAAG,CAAC,eAAe,EAAE,eAAe,CAAC;IAC/D;AAEA,IAAA,OAAO,eAAe;AAC1B;;;;"}
1
+ {"version":3,"file":"reference.js","sources":["../../../src/script-metadata/module-references/reference.ts"],"sourcesContent":[null],"names":["accessCheckCollector","apexCollector","clientCollector","codeHostsCollector","communityCollector","contentAssetUrlCollector","customPermissionsCollector","designSystemCollector","featureFlagCollector","gateCollector","i18nCollector","internalCollector","labelCollector","ldsModuleCollector","messageChannelCollector","metricCollector","resourceUrlCollector","schemaCollector","siteCollector","userCollector","userPermissionCollector","localModuleCollector","genericModuleCollector","webstoreCollector","komaciCollector","isUndefined","generateSourceLocation","QUOTE_LENGTH","collectReference"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AAoCA,MAAM,UAAU,GAAG;IACfA,mBAAoB;IACpBC,YAAa;IACbC,cAAe;IACfC,iBAAkB;IAClBC,iBAAkB;IAClBC,uBAAwB;IACxBC,yBAA0B;IAC1BC,oBAAqB;IACrBC,mBAAoB;IACpBC,YAAa;IACbC,YAAa;IACbC,gBAAiB;IACjBC,aAAc;IACdC,WAAkB;IAClBC,sBAAuB;IACvBC,cAAe;IACfC,mBAAoB;IACpBC,cAAe;IACfC,YAAa;IACbC,YAAa;IACbC,sBAAuB;IACvBC,mBAAoB;IACpBC,qBAAsB;IACtBC,gBAAiB;IACjBC,cAAe;CAClB;SAEe,qBAAqB,CACjC,IAA6E,EAC7E,KAAkB,EAClB,MAAkB,EAAA;AAElB,IAAA,MAAM,EAAE,qBAAqB,EAAE,GAAG,KAAK;;;AAGvC,IAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAO;AAC3B,IAAA,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,MAAM;IAEzC,IAAI,eAAe,GAAG,qBAAqB,CAAC,GAAG,CAAC,eAAe,CAAC;AAChE,IAAA,IAAI,CAACC,iBAAW,CAAC,eAAe,CAAC,EAAE;AAC/B,QAAA,eAAe,CAAC,SAAS,CAAC,IAAI,CAACC,8BAAsB,CAAC,MAAM,EAAEC,oBAAY,EAAEA,oBAAY,CAAC,CAAC;;AAE1F,QAAAC,qBAAgB,CAAC,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC;IAC7C;SAAO;QACH,eAAe,GAAGA,qBAAgB,CAAC,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC;AAC3D,QAAA,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,eAAe,CAAC;AAC7C,QAAA,qBAAqB,CAAC,GAAG,CAAC,eAAe,EAAE,eAAe,CAAC;IAC/D;AAEA,IAAA,OAAO,eAAe;AAC1B;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/metadata",
3
- "version": "15.0.3",
3
+ "version": "15.0.4",
4
4
  "description": "Extract metadata about Lightning Web Components modules. This software is provided as-is with no support provided.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "@babel/parser": "~7.29.0",
18
18
  "@babel/traverse": "~7.29.0",
19
19
  "@babel/types": "~7.29.0",
20
- "@lwc/sfdc-compiler-utils": "15.0.3",
20
+ "@lwc/sfdc-compiler-utils": "15.0.4",
21
21
  "postcss": "~8.5.6",
22
22
  "postcss-selector-parser": "~7.1.1",
23
23
  "postcss-value-parser": "~4.2.0"