@bscotch/yy 2.5.0 → 2.6.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/dist/cli.js DELETED
@@ -1,17 +0,0 @@
1
- import { ok } from 'assert';
2
- import { Yy } from './Yy.js';
3
- const [command, ...args] = process.argv.slice(2);
4
- if (command === 'diff') {
5
- const [firstYyFile, secondYyFile] = args;
6
- ok(firstYyFile, 'First Yy file must be specified');
7
- ok(secondYyFile, 'Second Yy file must be specified');
8
- const firstYy = Yy.readSync(firstYyFile);
9
- const secondYy = Yy.readSync(secondYyFile);
10
- const diff = Yy.diff(firstYy, secondYy);
11
- console.log(JSON.stringify(diff, null, 2));
12
- }
13
- else {
14
- console.error(`Unknown command: ${command}`);
15
- process.exit(1);
16
- }
17
- //# sourceMappingURL=cli.js.map
package/dist/cli.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAEjD,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,IAAI,CAAC;IACzC,EAAE,CAAC,WAAW,EAAE,iCAAiC,CAAC,CAAC;IACnD,EAAE,CAAC,YAAY,EAAE,kCAAkC,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IACzC,MAAM,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACxC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC7C,CAAC;KAAM,CAAC;IACN,OAAO,CAAC,KAAK,CAAC,oBAAoB,OAAO,EAAE,CAAC,CAAC;IAC7C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC"}