@brandlab-digital/site-core 3.3.0 → 3.3.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.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # `@brandlab-digital/site-core`
2
+
3
+ Proprietary software © Brandlab Digital Marketing. All rights reserved. Published for Brandlab client sites.
@@ -1,4 +1,4 @@
1
- /** Canonical Brandlab entity IDs preserve meaningful ampersands such as h&r-kitchens. */
1
+ /** Canonical Brandlab entity IDs preserve meaningful ampersands, such as example&co-builders. */
2
2
  export declare const BRANDLAB_CANONICAL_ENTITY_ID_PATTERN: RegExp;
3
3
  export declare const BRANDLAB_CANONICAL_ENTITY_ID_MAX_LENGTH = 100;
4
4
  export declare function isBrandlabCanonicalEntityId(value: unknown): value is string;
@@ -1 +1 @@
1
- {"version":3,"file":"entity-id.d.ts","sourceRoot":"","sources":["../src/entity-id.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,eAAO,MAAM,oCAAoC,QAChB,CAAA;AACjC,eAAO,MAAM,uCAAuC,MAAM,CAAA;AAE1D,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAI3E;AAED,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,OAAO,EACd,KAAK,SAAc,GAClB,OAAO,CAAC,KAAK,IAAI,MAAM,CAMzB"}
1
+ {"version":3,"file":"entity-id.d.ts","sourceRoot":"","sources":["../src/entity-id.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,eAAO,MAAM,oCAAoC,QAChB,CAAA;AACjC,eAAO,MAAM,uCAAuC,MAAM,CAAA;AAE1D,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAI3E;AAED,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,OAAO,EACd,KAAK,SAAc,GAClB,OAAO,CAAC,KAAK,IAAI,MAAM,CAMzB"}
package/dist/entity-id.js CHANGED
@@ -1,4 +1,4 @@
1
- /** Canonical Brandlab entity IDs preserve meaningful ampersands such as h&r-kitchens. */
1
+ /** Canonical Brandlab entity IDs preserve meaningful ampersands, such as example&co-builders. */
2
2
  export const BRANDLAB_CANONICAL_ENTITY_ID_PATTERN = /^[a-z0-9]+(?:[&-][a-z0-9]+)*$/;
3
3
  export const BRANDLAB_CANONICAL_ENTITY_ID_MAX_LENGTH = 100;
4
4
  export function isBrandlabCanonicalEntityId(value) {
@@ -1 +1 @@
1
- {"version":3,"file":"entity-id.js","sourceRoot":"","sources":["../src/entity-id.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,MAAM,CAAC,MAAM,oCAAoC,GAC/C,+BAA+B,CAAA;AACjC,MAAM,CAAC,MAAM,uCAAuC,GAAG,GAAG,CAAA;AAE1D,MAAM,UAAU,2BAA2B,CAAC,KAAc;IACxD,OAAO,OAAO,KAAK,KAAK,QAAQ;QAC9B,KAAK,CAAC,MAAM,IAAI,uCAAuC;QACvD,oCAAoC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACpD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,KAAc,EACd,KAAK,GAAG,WAAW;IAEnB,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CACb,GAAG,KAAK,gBAAgB,uCAAuC,yFAAyF,CACzJ,CAAA;IACH,CAAC;AACH,CAAC","sourcesContent":["/** Canonical Brandlab entity IDs preserve meaningful ampersands such as h&r-kitchens. */\nexport const BRANDLAB_CANONICAL_ENTITY_ID_PATTERN =\n /^[a-z0-9]+(?:[&-][a-z0-9]+)*$/\nexport const BRANDLAB_CANONICAL_ENTITY_ID_MAX_LENGTH = 100\n\nexport function isBrandlabCanonicalEntityId(value: unknown): value is string {\n return typeof value === 'string' &&\n value.length <= BRANDLAB_CANONICAL_ENTITY_ID_MAX_LENGTH &&\n BRANDLAB_CANONICAL_ENTITY_ID_PATTERN.test(value)\n}\n\nexport function assertBrandlabCanonicalEntityId(\n value: unknown,\n field = 'projectId',\n): asserts value is string {\n if (!isBrandlabCanonicalEntityId(value)) {\n throw new Error(\n `${field} must be a 1–${BRANDLAB_CANONICAL_ENTITY_ID_MAX_LENGTH} character lowercase canonical entity ID using letters, numbers, ampersands or hyphens.`,\n )\n }\n}\n"]}
1
+ {"version":3,"file":"entity-id.js","sourceRoot":"","sources":["../src/entity-id.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,MAAM,CAAC,MAAM,oCAAoC,GAC/C,+BAA+B,CAAA;AACjC,MAAM,CAAC,MAAM,uCAAuC,GAAG,GAAG,CAAA;AAE1D,MAAM,UAAU,2BAA2B,CAAC,KAAc;IACxD,OAAO,OAAO,KAAK,KAAK,QAAQ;QAC9B,KAAK,CAAC,MAAM,IAAI,uCAAuC;QACvD,oCAAoC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACpD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,KAAc,EACd,KAAK,GAAG,WAAW;IAEnB,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CACb,GAAG,KAAK,gBAAgB,uCAAuC,yFAAyF,CACzJ,CAAA;IACH,CAAC;AACH,CAAC","sourcesContent":["/** Canonical Brandlab entity IDs preserve meaningful ampersands, such as example&co-builders. */\nexport const BRANDLAB_CANONICAL_ENTITY_ID_PATTERN =\n /^[a-z0-9]+(?:[&-][a-z0-9]+)*$/\nexport const BRANDLAB_CANONICAL_ENTITY_ID_MAX_LENGTH = 100\n\nexport function isBrandlabCanonicalEntityId(value: unknown): value is string {\n return typeof value === 'string' &&\n value.length <= BRANDLAB_CANONICAL_ENTITY_ID_MAX_LENGTH &&\n BRANDLAB_CANONICAL_ENTITY_ID_PATTERN.test(value)\n}\n\nexport function assertBrandlabCanonicalEntityId(\n value: unknown,\n field = 'projectId',\n): asserts value is string {\n if (!isBrandlabCanonicalEntityId(value)) {\n throw new Error(\n `${field} must be a 1–${BRANDLAB_CANONICAL_ENTITY_ID_MAX_LENGTH} character lowercase canonical entity ID using letters, numbers, ampersands or hyphens.`,\n )\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@brandlab-digital/site-core",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
+ "license": "UNLICENSED",
4
5
  "repository": {
5
6
  "type": "git",
6
7
  "url": "git+https://github.com/RomieDandan/brandlab.git",
@@ -12,6 +13,9 @@
12
13
  "files": [
13
14
  "dist"
14
15
  ],
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
15
19
  "scripts": {
16
20
  "build": "rm -rf dist && tsc -p tsconfig.json",
17
21
  "test": "vitest run",