@sdlcworks/components 0.0.3 → 0.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -133,7 +133,7 @@ function sanitizeForAlphaNum(_name, validSpaceRepl) {
133
133
  }
134
134
  function getComponentInfraID(componentName) {
135
135
  const componentNameRand = sanitizeForAlphaNum(crypto.createHash("sha256").update(`${Date.now()}${Math.random()}`).digest("base64"), "-").slice(0, COMPONENT_NAME_RANDCHARS);
136
- return `${sanitizeForAlphaNum(componentName, "-").slice(COMPONENT_NAME_MAXLEN)}${componentNameRand}`;
136
+ return `${sanitizeForAlphaNum(componentName, "-").slice(0, COMPONENT_NAME_MAXLEN)}${componentNameRand}`;
137
137
  }
138
138
  function generateFullResourceName(componentInfraID, name) {
139
139
  let resourceName = sanitizeForAlphaNum(name, "-").slice(RESOURCE_NAME_MAXLEN);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdlcworks/components",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "module": "dist/index.js",
5
5
  "files": [
6
6
  "dist"