packtory 0.0.39 → 0.0.41

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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Christian Rackerseder <github@echooff.de>"
5
5
  ],
6
6
  "dependencies": {
7
- "@arethetypeswrong/core": "0.18.3",
7
+ "@arethetypeswrong/core": "0.18.4",
8
8
  "@cyclonedx/cyclonedx-library": "10.1.0",
9
9
  "@jridgewell/gen-mapping": "0.3.13",
10
10
  "@jridgewell/trace-mapping": "0.3.31",
@@ -57,10 +57,6 @@
57
57
  "./common/sort-values.js": {
58
58
  "import": "./common/sort-values.js"
59
59
  },
60
- "./common/typed-diff.js": {
61
- "import": "./common/typed-diff.js",
62
- "types": "./common/typed-diff.d.ts"
63
- },
64
60
  "./config/packtory-config-schema.js": {
65
61
  "import": "./config/packtory-config-schema.js"
66
62
  },
@@ -117,5 +113,5 @@
117
113
  "./tar/tarball-builder.js"
118
114
  ],
119
115
  "type": "module",
120
- "version": "0.0.39"
116
+ "version": "0.0.41"
121
117
  }
@@ -1,4 +1,4 @@
1
- import type { createStructuredPatch } from '../../common/typed-diff.ts';
1
+ import type { StructuredPatch } from 'diff';
2
2
  import type { ArtifactEntry } from '../../progress/progress-broadcaster.ts';
3
3
  export declare const previewDiffLineType: {
4
4
  readonly add: "add";
@@ -1 +1 @@
1
- {"version":3,"file":"preview-document-diff.d.ts","sourceRoot":"","sources":["../../../../../source/report/preview/preview-document-diff.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC;AAE3E,eAAO,MAAM,mBAAmB;;;;CAItB;AAEV,KAAK,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC;AAEzF,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,CAAC;CAC9C"}
1
+ {"version":3,"file":"preview-document-diff.d.ts","sourceRoot":"","sources":["../../../../../source/report/preview/preview-document-diff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM;AAE3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC;AAE3E,eAAO,MAAM,mBAAmB;;;;CAItB;AAEV,KAAK,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC;AAEzF,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,CAAC;CAC9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"preview-document-diff.js","sourceRoot":"","sources":["../../../../../source/report/preview/preview-document-diff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAIxD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC;AAgBX,MAAM,UAAU,kBAAkB,CAAC,KAAoB;IACnD,OAAO,CACH,KAAK,CAAC,UAAU,KAAK,SAAS;QAC9B,KAAK,CAAC,MAAM,KAAK,SAAS;QAC1B,KAAK,CAAC,IAAI,KAAK,QAAQ;QACvB,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CACzB,CAAC;AACN,CAAC;AAED,SAAS,cAAc,CAAC,IAAY;IAChC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,OAAO,mBAAmB,CAAC,GAAG,CAAC;IACnC,CAAC;IACD,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,OAAO,mBAAmB,CAAC,MAAM,CAAC;IACtC,CAAC;IACD,OAAO,mBAAmB,CAAC,OAAO,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAoB;IAClD,OAAO;QACH,MAAM,EAAE,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,KAAK;QACrF,KAAK,EAAE,IAAI,CAAC,KAAK;aACZ,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;YACb,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC,CAAC;aACD,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACV,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACtD,CAAC,CAAC;KACT,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"preview-document-diff.js","sourceRoot":"","sources":["../../../../../source/report/preview/preview-document-diff.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGxD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC;AAgBX,MAAM,UAAU,kBAAkB,CAAC,KAAoB;IACnD,OAAO,CACH,KAAK,CAAC,UAAU,KAAK,SAAS;QAC9B,KAAK,CAAC,MAAM,KAAK,SAAS;QAC1B,KAAK,CAAC,IAAI,KAAK,QAAQ;QACvB,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CACzB,CAAC;AACN,CAAC;AAED,SAAS,cAAc,CAAC,IAAY;IAChC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,OAAO,mBAAmB,CAAC,GAAG,CAAC;IACnC,CAAC;IACD,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,OAAO,mBAAmB,CAAC,MAAM,CAAC;IACtC,CAAC;IACD,OAAO,mBAAmB,CAAC,OAAO,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAoB;IAClD,OAAO;QACH,MAAM,EAAE,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,KAAK;QACrF,KAAK,EAAE,IAAI,CAAC,KAAK;aACZ,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;YACb,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC,CAAC;aACD,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACV,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACtD,CAAC,CAAC;KACT,CAAC;AACN,CAAC"}
@@ -1,8 +1,8 @@
1
- import { createStructuredPatch } from "../../common/typed-diff.js";
1
+ import { structuredPatch } from 'diff';
2
2
  import { toPreviewDiffHunk } from "../preview/preview-document-diff.js";
3
3
  const diffContextLines = 3;
4
4
  export function buildFileHunks(path, previousContent, newContent) {
5
- const patch = createStructuredPatch(path, path, previousContent, newContent, undefined, undefined, {
5
+ const patch = structuredPatch(path, path, previousContent, newContent, undefined, undefined, {
6
6
  context: diffContextLines
7
7
  });
8
8
  return patch.hunks.map(toPreviewDiffHunk);
@@ -1 +1 @@
1
- {"version":3,"file":"file-hunks.js","sourceRoot":"","sources":["../../../../../source/report/release-diff/file-hunks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAwB,MAAM,qCAAqC,CAAC;AAE9F,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAE3B,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,eAAuB,EAAE,UAAkB;IACpF,MAAM,KAAK,GAAG,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE;QAC/F,OAAO,EAAE,gBAAgB;KAC5B,CAAC,CAAC;IACH,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAC9C,CAAC"}
1
+ {"version":3,"file":"file-hunks.js","sourceRoot":"","sources":["../../../../../source/report/release-diff/file-hunks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAwB,MAAM,qCAAqC,CAAC;AAE9F,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAE3B,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,eAAuB,EAAE,UAAkB;IACpF,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE;QACzF,OAAO,EAAE,gBAAgB;KAC5B,CAAC,CAAC;IACH,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAC9C,CAAC"}
package/sbom.cdx.json CHANGED
@@ -9,31 +9,31 @@
9
9
  {
10
10
  "type": "application",
11
11
  "name": "packtory",
12
- "version": "0.0.38"
12
+ "version": "0.0.39"
13
13
  }
14
14
  ]
15
15
  },
16
16
  "component": {
17
17
  "type": "library",
18
18
  "name": "packtory",
19
- "version": "0.0.39",
20
- "bom-ref": "pkg:npm/packtory@0.0.39",
21
- "purl": "pkg:npm/packtory@0.0.39"
19
+ "version": "0.0.41",
20
+ "bom-ref": "pkg:npm/packtory@0.0.41",
21
+ "purl": "pkg:npm/packtory@0.0.41"
22
22
  }
23
23
  },
24
24
  "components": [
25
25
  {
26
26
  "type": "library",
27
27
  "name": "@arethetypeswrong/core",
28
- "version": "0.18.3",
29
- "bom-ref": "pkg:npm/@arethetypeswrong/core@0.18.3",
28
+ "version": "0.18.4",
29
+ "bom-ref": "pkg:npm/@arethetypeswrong/core@0.18.4",
30
30
  "scope": "required",
31
31
  "licenses": [
32
32
  {
33
33
  "expression": "MIT"
34
34
  }
35
35
  ],
36
- "purl": "pkg:npm/@arethetypeswrong/core@0.18.3"
36
+ "purl": "pkg:npm/@arethetypeswrong/core@0.18.4"
37
37
  },
38
38
  {
39
39
  "type": "library",
@@ -337,7 +337,7 @@
337
337
  ],
338
338
  "dependencies": [
339
339
  {
340
- "ref": "pkg:npm/@arethetypeswrong/core@0.18.3"
340
+ "ref": "pkg:npm/@arethetypeswrong/core@0.18.4"
341
341
  },
342
342
  {
343
343
  "ref": "pkg:npm/@cyclonedx/cyclonedx-library@10.1.0"
@@ -379,9 +379,9 @@
379
379
  "ref": "pkg:npm/npm-registry-fetch@20.0.1"
380
380
  },
381
381
  {
382
- "ref": "pkg:npm/packtory@0.0.39",
382
+ "ref": "pkg:npm/packtory@0.0.41",
383
383
  "dependsOn": [
384
- "pkg:npm/@arethetypeswrong/core@0.18.3",
384
+ "pkg:npm/@arethetypeswrong/core@0.18.4",
385
385
  "pkg:npm/@cyclonedx/cyclonedx-library@10.1.0",
386
386
  "pkg:npm/@jridgewell/gen-mapping@0.3.13",
387
387
  "pkg:npm/@jridgewell/trace-mapping@0.3.31",
@@ -1,3 +0,0 @@
1
- import { type StructuredPatch, type StructuredPatchOptionsNonabortable } from 'diff';
2
- export {};
3
- //# sourceMappingURL=typed-diff.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typed-diff.d.ts","sourceRoot":"","sources":["../../../../source/common/typed-diff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,eAAe,EAAE,KAAK,kCAAkC,EAAE,MAAM,MAAM"}
@@ -1,5 +0,0 @@
1
- import { structuredPatch } from 'diff';
2
- export function createStructuredPatch(...args) {
3
- return structuredPatch(...args);
4
- }
5
- //# sourceMappingURL=typed-diff.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typed-diff.js","sourceRoot":"","sources":["../../../../source/common/typed-diff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiE,MAAM,MAAM,CAAC;AAYtG,MAAM,UAAU,qBAAqB,CAAC,GAAG,IAAyB;IAC9D,OAAO,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC"}