@hubspot/cms-dev-server 0.16.11 → 0.16.12

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.
@@ -113,7 +113,7 @@ function noncePlaceholderPlugin() {
113
113
  };
114
114
  }
115
115
  var traverse = _traverse.default;
116
- var CMS_MODULE_COMPONENT_NAME = "UnstableModule";
116
+ var CMS_MODULE_COMPONENT_NAME = "Module";
117
117
  function findCmsModules(cmsModules = {}) {
118
118
  let config;
119
119
  return {
@@ -133,7 +133,7 @@ function findCmsModules(cmsModules = {}) {
133
133
  sourceType: "module",
134
134
  plugins: ["jsx", "typescript"]
135
135
  });
136
- let unstableModuleLocalName = CMS_MODULE_COMPONENT_NAME;
136
+ let moduleLocalImportName = CMS_MODULE_COMPONENT_NAME;
137
137
  const pluginError = this.error.bind(this);
138
138
  traverse(sourceAst, {
139
139
  ImportDeclaration(path4) {
@@ -146,13 +146,13 @@ function findCmsModules(cmsModules = {}) {
146
146
  if (t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, {
147
147
  name: CMS_MODULE_COMPONENT_NAME
148
148
  })) {
149
- unstableModuleLocalName = specifier.local.name;
149
+ moduleLocalImportName = specifier.local.name;
150
150
  }
151
151
  }
152
152
  },
153
153
  JSXOpeningElement(path4) {
154
154
  if (!t.isJSXIdentifier(path4.node.name, {
155
- name: unstableModuleLocalName
155
+ name: moduleLocalImportName
156
156
  }) || path4.node.attributes.length !== 2) {
157
157
  return null;
158
158
  }
package/dist/index.js CHANGED
@@ -106,7 +106,7 @@ function noncePlaceholderPlugin() {
106
106
  };
107
107
  }
108
108
  var traverse = _traverse.default;
109
- var CMS_MODULE_COMPONENT_NAME = "UnstableModule";
109
+ var CMS_MODULE_COMPONENT_NAME = "Module";
110
110
  function findCmsModules(cmsModules = {}) {
111
111
  let config;
112
112
  return {
@@ -126,7 +126,7 @@ function findCmsModules(cmsModules = {}) {
126
126
  sourceType: "module",
127
127
  plugins: ["jsx", "typescript"]
128
128
  });
129
- let unstableModuleLocalName = CMS_MODULE_COMPONENT_NAME;
129
+ let moduleLocalImportName = CMS_MODULE_COMPONENT_NAME;
130
130
  const pluginError = this.error.bind(this);
131
131
  traverse(sourceAst, {
132
132
  ImportDeclaration(path2) {
@@ -139,13 +139,13 @@ function findCmsModules(cmsModules = {}) {
139
139
  if (t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, {
140
140
  name: CMS_MODULE_COMPONENT_NAME
141
141
  })) {
142
- unstableModuleLocalName = specifier.local.name;
142
+ moduleLocalImportName = specifier.local.name;
143
143
  }
144
144
  }
145
145
  },
146
146
  JSXOpeningElement(path2) {
147
147
  if (!t.isJSXIdentifier(path2.node.name, {
148
- name: unstableModuleLocalName
148
+ name: moduleLocalImportName
149
149
  }) || path2.node.attributes.length !== 2) {
150
150
  return null;
151
151
  }
@@ -637,7 +637,7 @@ function noncePlaceholderPlugin() {
637
637
  };
638
638
  }
639
639
  var traverse = _traverse.default;
640
- var CMS_MODULE_COMPONENT_NAME = "UnstableModule";
640
+ var CMS_MODULE_COMPONENT_NAME = "Module";
641
641
  function findCmsModules(cmsModules = {}) {
642
642
  let config;
643
643
  return {
@@ -657,7 +657,7 @@ function findCmsModules(cmsModules = {}) {
657
657
  sourceType: "module",
658
658
  plugins: ["jsx", "typescript"]
659
659
  });
660
- let unstableModuleLocalName = CMS_MODULE_COMPONENT_NAME;
660
+ let moduleLocalImportName = CMS_MODULE_COMPONENT_NAME;
661
661
  const pluginError = this.error.bind(this);
662
662
  traverse(sourceAst, {
663
663
  ImportDeclaration(path2) {
@@ -670,13 +670,13 @@ function findCmsModules(cmsModules = {}) {
670
670
  if (t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, {
671
671
  name: CMS_MODULE_COMPONENT_NAME
672
672
  })) {
673
- unstableModuleLocalName = specifier.local.name;
673
+ moduleLocalImportName = specifier.local.name;
674
674
  }
675
675
  }
676
676
  },
677
677
  JSXOpeningElement(path2) {
678
678
  if (!t.isJSXIdentifier(path2.node.name, {
679
- name: unstableModuleLocalName
679
+ name: moduleLocalImportName
680
680
  }) || path2.node.attributes.length !== 2) {
681
681
  return null;
682
682
  }
package/dist/run.js CHANGED
@@ -602,7 +602,7 @@ function noncePlaceholderPlugin() {
602
602
  };
603
603
  }
604
604
  var traverse = _traverse.default;
605
- var CMS_MODULE_COMPONENT_NAME = "UnstableModule";
605
+ var CMS_MODULE_COMPONENT_NAME = "Module";
606
606
  function findCmsModules(cmsModules = {}) {
607
607
  let config;
608
608
  return {
@@ -622,7 +622,7 @@ function findCmsModules(cmsModules = {}) {
622
622
  sourceType: "module",
623
623
  plugins: ["jsx", "typescript"]
624
624
  });
625
- let unstableModuleLocalName = CMS_MODULE_COMPONENT_NAME;
625
+ let moduleLocalImportName = CMS_MODULE_COMPONENT_NAME;
626
626
  const pluginError = this.error.bind(this);
627
627
  traverse(sourceAst, {
628
628
  ImportDeclaration(path11) {
@@ -635,13 +635,13 @@ function findCmsModules(cmsModules = {}) {
635
635
  if (t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, {
636
636
  name: CMS_MODULE_COMPONENT_NAME
637
637
  })) {
638
- unstableModuleLocalName = specifier.local.name;
638
+ moduleLocalImportName = specifier.local.name;
639
639
  }
640
640
  }
641
641
  },
642
642
  JSXOpeningElement(path11) {
643
643
  if (!t.isJSXIdentifier(path11.node.name, {
644
- name: unstableModuleLocalName
644
+ name: moduleLocalImportName
645
645
  }) || path11.node.attributes.length !== 2) {
646
646
  return null;
647
647
  }
@@ -1233,7 +1233,7 @@ function trackUsage(action) {
1233
1233
  eventName: EVENT_NAME,
1234
1234
  action,
1235
1235
  nodeVersion: getNodeVersionData(),
1236
- version: "0.16.11",
1236
+ version: "0.16.12",
1237
1237
  os: getPlatform()
1238
1238
  };
1239
1239
  const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
@@ -629,7 +629,7 @@ function findCmsModules(cmsModules = {}) {
629
629
  sourceType: "module",
630
630
  plugins: ["jsx", "typescript"]
631
631
  });
632
- let unstableModuleLocalName = CMS_MODULE_COMPONENT_NAME;
632
+ let moduleLocalImportName = CMS_MODULE_COMPONENT_NAME;
633
633
  const pluginError = this.error.bind(this);
634
634
  traverse(sourceAst, {
635
635
  ImportDeclaration(path3) {
@@ -642,13 +642,13 @@ function findCmsModules(cmsModules = {}) {
642
642
  if (t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, {
643
643
  name: CMS_MODULE_COMPONENT_NAME
644
644
  })) {
645
- unstableModuleLocalName = specifier.local.name;
645
+ moduleLocalImportName = specifier.local.name;
646
646
  }
647
647
  }
648
648
  },
649
649
  JSXOpeningElement(path3) {
650
650
  if (!t.isJSXIdentifier(path3.node.name, {
651
- name: unstableModuleLocalName
651
+ name: moduleLocalImportName
652
652
  }) || path3.node.attributes.length !== 2) {
653
653
  return null;
654
654
  }
@@ -1000,7 +1000,7 @@ ${indentString}`);
1000
1000
  )}`;
1001
1001
  };
1002
1002
  traverse = _traverse.default;
1003
- CMS_MODULE_COMPONENT_NAME = "UnstableModule";
1003
+ CMS_MODULE_COMPONENT_NAME = "Module";
1004
1004
  promiseForNewWritableStream = () => {
1005
1005
  const chunks = [];
1006
1006
  const writableStream = new stream.Writable();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cms-dev-server",
3
- "version": "0.16.11",
3
+ "version": "0.16.12",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "engines": {
@@ -29,7 +29,7 @@
29
29
  "@babel/parser": "^7.25.3",
30
30
  "@babel/traverse": "^7.25.3",
31
31
  "@babel/types": "^7.25.2",
32
- "@hubspot/cms-components": "^0.16.11",
32
+ "@hubspot/cms-components": "^0.16.12",
33
33
  "@hubspot/local-dev-lib": "^1.9.0",
34
34
  "@inquirer/select": "^2.0.0",
35
35
  "@originjs/vite-plugin-commonjs": "^1.0.3",
@@ -114,5 +114,5 @@
114
114
  "publishConfig": {
115
115
  "access": "public"
116
116
  },
117
- "gitHead": "f8df76a740be05aee1509dec671bc89f3a7d38e0"
117
+ "gitHead": "bb2aca9b128d24aec8a21b867f19b5a16ab7df06"
118
118
  }