@lightdash/common 0.2251.5 → 0.2252.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.
@@ -1,2 +1,10 @@
1
+ /**
2
+ * Regex to detect Slack IDs: C (public channel), G (private channel), U/W (user/DM)
3
+ * @example
4
+ * const isSlackId = SLACK_ID_REGEX.test('C1234567890');
5
+ * const isSlackId = SLACK_ID_REGEX.test('G1234567890');
6
+ * const isSlackId = SLACK_ID_REGEX.test('U1234567890');
7
+ * const isSlackId = SLACK_ID_REGEX.test('W1234567890');
8
+ */
1
9
  export declare const SLACK_ID_REGEX: RegExp;
2
10
  //# sourceMappingURL=slack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"slack.d.ts","sourceRoot":"","sources":["../../../src/utils/slack.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc,QAA0B,CAAC"}
1
+ {"version":3,"file":"slack.d.ts","sourceRoot":"","sources":["../../../src/utils/slack.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,QAA0B,CAAC"}
@@ -1,3 +1,10 @@
1
- // Regex to detect Slack IDs: C (public channel), G (private channel), U/W (user/DM)
1
+ /**
2
+ * Regex to detect Slack IDs: C (public channel), G (private channel), U/W (user/DM)
3
+ * @example
4
+ * const isSlackId = SLACK_ID_REGEX.test('C1234567890');
5
+ * const isSlackId = SLACK_ID_REGEX.test('G1234567890');
6
+ * const isSlackId = SLACK_ID_REGEX.test('U1234567890');
7
+ * const isSlackId = SLACK_ID_REGEX.test('W1234567890');
8
+ */
2
9
  export const SLACK_ID_REGEX = /^[CGUW][A-Z0-9]{8,}$/i;
3
10
  //# sourceMappingURL=slack.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"slack.js","sourceRoot":"","sources":["../../../src/utils/slack.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,MAAM,CAAC,MAAM,cAAc,GAAG,uBAAuB,CAAC"}
1
+ {"version":3,"file":"slack.js","sourceRoot":"","sources":["../../../src/utils/slack.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.2251.5",
3
+ "version": "0.2252.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",