@lwc/metadata 2.22.0-2 → 2.23.0-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.
@@ -75,7 +75,7 @@ function rollupDiagnostics(files) {
75
75
  );
76
76
  }
77
77
  } */
78
- const version = '2.22.0-2';
78
+ const version = '2.23.0-1';
79
79
  function collectBundleMetadata(config) {
80
80
  // validateBundleConfig(config);
81
81
  const { namespace, name, type, namespaceMapping, files, enableKomaci } = config;
@@ -30,7 +30,7 @@ var localModule = require('./collectors/local-module.js');
30
30
  var genericModule = require('./collectors/generic-module.js');
31
31
 
32
32
  // Copyright (c) 2022, Salesforce, Inc.,
33
- const PLATFORM_COLLECTORS = [
33
+ const COLLECTORS = [
34
34
  accessCheck["default"],
35
35
  apex["default"],
36
36
  client["default"],
@@ -53,12 +53,8 @@ const PLATFORM_COLLECTORS = [
53
53
  localModule["default"],
54
54
  genericModule["default"],
55
55
  webstore["default"],
56
+ komaci["default"],
56
57
  ];
57
- const INTERNAL_COLLECTORS = [...PLATFORM_COLLECTORS, komaci["default"]];
58
- const COLLECTORS_MAP = {
59
- platform: PLATFORM_COLLECTORS,
60
- internal: INTERNAL_COLLECTORS,
61
- };
62
58
  function gatherModuleReference(node, state, result) {
63
59
  const { moduleReferenceLookup } = state;
64
60
  // The only time node.source is null is when its a ExportNamedDeclaration
@@ -70,7 +66,7 @@ function gatherModuleReference(node, state, result) {
70
66
  moduleReference.locations.push(utils$1.generateSourceLocation(source, utils$1.QUOTE_LENGTH, utils$1.QUOTE_LENGTH));
71
67
  }
72
68
  else {
73
- moduleReference = main.collectReference(COLLECTORS_MAP[state.bundleType], node, state);
69
+ moduleReference = main.collectReference(COLLECTORS, node, state);
74
70
  result.moduleReferences.push(moduleReference);
75
71
  moduleReferenceLookup.set(moduleSpecifier, moduleReference);
76
72
  }
@@ -1 +1 @@
1
- {"version":3,"file":"reference.js","sources":["../../../src/script-metadata/module-references/reference.ts"],"sourcesContent":[null],"names":["accessCheckCollector","apexCollector","clientCollector","commerceCollector","communityCollector","contentAssetUrlCollector","customPermissionsCollector","designSystemCollector","gateCollector","i18nCollector","internalCollector","labelCollector","messageChannelCollector","metricCollector","resourceUrlCollector","schemaCollector","siteCollector","userCollector","userPermissionCollector","localModuleCollector","genericModuleCollector","webstoreCollector","komaciCollector","isUndefined","generateSourceLocation","QUOTE_LENGTH","collectReference"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAqCA,MAAM,mBAAmB,GAAG;IACxBA,sBAAoB;IACpBC,eAAa;IACbC,iBAAe;IACfC,mBAAiB;IACjBC,oBAAkB;IAClBC,0BAAwB;IACxBC,4BAA0B;IAC1BC,uBAAqB;IACrBC,eAAa;IACbC,eAAa;IACbC,mBAAiB;IACjBC,gBAAc;IACdC,yBAAuB;IACvBC,iBAAe;IACfC,sBAAoB;IACpBC,iBAAe;IACfC,eAAa;IACbC,eAAa;IACbC,yBAAuB;IACvBC,sBAAoB;IACpBC,wBAAsB;IACtBC,mBAAiB;CACpB,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,GAAG,mBAAmB,EAAEC,iBAAe,CAAC,CAAC;AAEtE,MAAM,cAAc,GAAmD;AACnE,IAAA,QAAQ,EAAE,mBAAmB;AAC7B,IAAA,QAAQ,EAAE,mBAAmB;CAChC,CAAC;SAEc,qBAAqB,CACjC,IAA6E,EAC7E,KAAkB,EAClB,MAAkB,EAAA;AAElB,IAAA,MAAM,EAAE,qBAAqB,EAAE,GAAG,KAAK,CAAC;;;AAGxC,IAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAO,CAAC;AAC5B,IAAA,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAE1C,IAAI,eAAe,GAAG,qBAAqB,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjE,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,CAAC;AAC9F,KAAA;AAAM,SAAA;AACH,QAAA,eAAe,GAAGC,qBAAgB,CAAC,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AAClF,QAAA,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;AAC9C,QAAA,qBAAqB,CAAC,GAAG,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;AAC/D,KAAA;AAED,IAAA,OAAO,eAAe,CAAC;AAC3B;;;;"}
1
+ {"version":3,"file":"reference.js","sources":["../../../src/script-metadata/module-references/reference.ts"],"sourcesContent":[null],"names":["accessCheckCollector","apexCollector","clientCollector","commerceCollector","communityCollector","contentAssetUrlCollector","customPermissionsCollector","designSystemCollector","gateCollector","i18nCollector","internalCollector","labelCollector","messageChannelCollector","metricCollector","resourceUrlCollector","schemaCollector","siteCollector","userCollector","userPermissionCollector","localModuleCollector","genericModuleCollector","webstoreCollector","komaciCollector","isUndefined","generateSourceLocation","QUOTE_LENGTH","collectReference"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAoCA,MAAM,UAAU,GAAG;IACfA,sBAAoB;IACpBC,eAAa;IACbC,iBAAe;IACfC,mBAAiB;IACjBC,oBAAkB;IAClBC,0BAAwB;IACxBC,4BAA0B;IAC1BC,uBAAqB;IACrBC,eAAa;IACbC,eAAa;IACbC,mBAAiB;IACjBC,gBAAc;IACdC,yBAAuB;IACvBC,iBAAe;IACfC,sBAAoB;IACpBC,iBAAe;IACfC,eAAa;IACbC,eAAa;IACbC,yBAAuB;IACvBC,sBAAoB;IACpBC,wBAAsB;IACtBC,mBAAiB;IACjBC,iBAAe;CAClB,CAAC;SAEc,qBAAqB,CACjC,IAA6E,EAC7E,KAAkB,EAClB,MAAkB,EAAA;AAElB,IAAA,MAAM,EAAE,qBAAqB,EAAE,GAAG,KAAK,CAAC;;;AAGxC,IAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAO,CAAC;AAC5B,IAAA,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAE1C,IAAI,eAAe,GAAG,qBAAqB,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AACjE,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,CAAC;AAC9F,KAAA;AAAM,SAAA;QACH,eAAe,GAAGC,qBAAgB,CAAC,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,QAAA,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;AAC9C,QAAA,qBAAqB,CAAC,GAAG,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;AAC/D,KAAA;AAED,IAAA,OAAO,eAAe,CAAC;AAC3B;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/metadata",
3
- "version": "2.22.0-2",
3
+ "version": "2.23.0-1",
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",
@@ -22,9 +22,9 @@
22
22
  "postcss-value-parser": "~4.2.0"
23
23
  },
24
24
  "peerDependencies": {
25
- "@lwc/sfdc-compiler-utils": "2.22.0-2",
26
- "@lwc/errors": "~2.22.0",
27
- "@lwc/template-compiler": "~2.22.0"
25
+ "@lwc/sfdc-compiler-utils": "2.23.0-1",
26
+ "@lwc/errors": "~2.23.0",
27
+ "@lwc/template-compiler": "~2.23.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/babel__core": "^7.1.19",