@stencil/core 2.10.0 → 2.11.0-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/cli/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI (CommonJS) v2.10.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI (CommonJS) v2.11.0-0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  'use strict';
5
5
 
@@ -230,6 +230,11 @@ const pathComponents = (path, rootLength) => {
230
230
  return [root, ...rest];
231
231
  };
232
232
 
233
+ /**
234
+ * Validates that a component tag meets required naming conventions to be used for a web component
235
+ * @param tag the tag to validate
236
+ * @returns an error message if the tag has an invalid name, undefined if the tag name passes all checks
237
+ */
233
238
  const validateComponentTag = (tag) => {
234
239
  if (tag !== tag.trim()) {
235
240
  return `Tag can not contain white spaces`;
@@ -485,7 +490,7 @@ const getNpmConfigEnvArgs = (sys) => {
485
490
  const dependencies = [
486
491
  {
487
492
  name: "@stencil/core",
488
- version: "2.10.0",
493
+ version: "2.11.0-0",
489
494
  main: "compiler/stencil.js",
490
495
  resources: [
491
496
  "package.json",
package/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI v2.10.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI v2.11.0-0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  const toLowerCase = (str) => str.toLowerCase();
5
5
  const dashToPascalCase = (str) => toLowerCase(str)
@@ -206,6 +206,11 @@ const pathComponents = (path, rootLength) => {
206
206
  return [root, ...rest];
207
207
  };
208
208
 
209
+ /**
210
+ * Validates that a component tag meets required naming conventions to be used for a web component
211
+ * @param tag the tag to validate
212
+ * @returns an error message if the tag has an invalid name, undefined if the tag name passes all checks
213
+ */
209
214
  const validateComponentTag = (tag) => {
210
215
  if (tag !== tag.trim()) {
211
216
  return `Tag can not contain white spaces`;
@@ -461,7 +466,7 @@ const getNpmConfigEnvArgs = (sys) => {
461
466
  const dependencies = [
462
467
  {
463
468
  name: "@stencil/core",
464
- version: "2.10.0",
469
+ version: "2.11.0-0",
465
470
  main: "compiler/stencil.js",
466
471
  resources: [
467
472
  "package.json",
package/cli/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/cli",
3
- "version": "2.10.0",
3
+ "version": "2.11.0-0",
4
4
  "description": "Stencil CLI.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/compiler",
3
- "version": "2.10.0",
3
+ "version": "2.11.0-0",
4
4
  "description": "Stencil Compiler.",
5
5
  "main": "./stencil.js",
6
6
  "types": "./stencil.d.ts",