bussing 0.0.1 → 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.
package/dist/util.js ADDED
@@ -0,0 +1,15 @@
1
+ // Utilidades internas.
2
+ /** Valor de una clave que, por construcción, tiene que estar en el Map. Lanza un error si no está. */
3
+ export function mustGet(map, key) {
4
+ const value = map.get(key);
5
+ if (value === undefined)
6
+ throw new Error(`Error interno: falta la clave ${String(key)}`);
7
+ return value;
8
+ }
9
+ /** Elemento que, por construcción, tiene que existir. Lanza un error si es `undefined`. */
10
+ export function defined(value, what) {
11
+ if (value === undefined)
12
+ throw new Error(`Error interno: falta ${what}`);
13
+ return value;
14
+ }
15
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,uBAAuB;AAEvB,sGAAsG;AACtG,MAAM,UAAU,OAAO,CAAO,GAAsB,EAAE,GAAM;IACxD,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3B,IAAI,KAAK,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACzF,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,OAAO,CAAI,KAAoB,EAAE,IAAY;IACzD,IAAI,KAAK,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,KAAK,CAAC;AACjB,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,65 @@
1
1
  {
2
2
  "name": "bussing",
3
- "version": "0.0.1",
4
- "description": "",
3
+ "version": "0.0.4",
4
+ "description": "Revisa el ambiente local de repositorios después de una tarea: cambios sin commitear o pushear, versiones sin subir o publicar, dependencias cruzadas desactualizadas e instalaciones contaminadas por npm link o devel-sync",
5
+ "author": "ari.dc.uba.ar",
5
6
  "license": "MIT",
6
- "author": "",
7
- "type": "commonjs",
8
- "main": "index.js",
7
+ "type": "module",
8
+ "main": "dist/bussing.js",
9
+ "types": "dist/bussing.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/bussing.d.ts",
13
+ "default": "./dist/bussing.js"
14
+ }
15
+ },
16
+ "bin": {
17
+ "bussing": "dist/bussing-cli.js"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "engines": {
23
+ "node": ">=22.18"
24
+ },
9
25
  "scripts": {
10
- "test": "npm test"
26
+ "build": "tsc",
27
+ "test": "tsc -p test && mocha",
28
+ "test-ci": "tsc -p test && c8 mocha"
29
+ },
30
+ "dependencies": {
31
+ "commendatore": "^0.0.2",
32
+ "guarantee-type": "^0.2.13",
33
+ "js-yaml": "^5.4.3",
34
+ "semver": "^7.8.5",
35
+ "tar": "^7.5.22"
36
+ },
37
+ "devDependencies": {
38
+ "@types/mocha": "^10.0.10",
39
+ "@types/node": "^26.6.5",
40
+ "@types/semver": "^7.8.0",
41
+ "c8": "^12.0.0",
42
+ "mocha": "^12.0.3",
43
+ "qa-control": "^0.12.1",
44
+ "typescript": "^7.0.2"
45
+ },
46
+ "keywords": [
47
+ "git",
48
+ "npm",
49
+ "housekeeping",
50
+ "cli"
51
+ ],
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "git+https://github.com/ari-dc-uba-ar/bussing.git"
55
+ },
56
+ "bugs": {
57
+ "url": "https://github.com/ari-dc-uba-ar/bussing/issues"
58
+ },
59
+ "homepage": "https://github.com/ari-dc-uba-ar/bussing#readme",
60
+ "qa-control": {
61
+ "run-in": "server",
62
+ "type": "cmd-tool",
63
+ "gha": true
11
64
  }
12
65
  }