publ-echo-test 0.0.115 → 0.0.116

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.
@@ -50,4 +50,4 @@ export declare const findGroupBlocks: (blockStructure: Block, targetId: string)
50
50
  export declare const addBulkToTarget: (block: Block, targetId: string, bulkBlockIds: string[]) => Block;
51
51
  export declare const getBlockWorkDirPath: (block: Block, blockId: string) => string | null;
52
52
  export declare function formatBlockIdToCbId(cbId: number): string;
53
- export declare function formatCbIdToBlockId(cbId: string): number | null;
53
+ export declare function formatCbIdToBlockId(cbId: number): string | null;
@@ -238,8 +238,8 @@ export function formatBlockIdToCbId(cbId) {
238
238
  return "CB_".concat(cbId);
239
239
  }
240
240
  export function formatCbIdToBlockId(cbId) {
241
- var match = cbId.match(/^CB_(\d+)$/);
242
- return match ? parseInt(match[1], 10) : null;
241
+ var match = cbId.toString().match(/^CB_(\d+)$/);
242
+ return match ? parseInt(match[1], 10).toString() : null;
243
243
  }
244
244
  // export const findAccessibleChildrenBlocks = (
245
245
  // block: Block,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.115",
3
+ "version": "0.0.116",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",