npm-pkgbuild 15.3.21 → 15.3.23

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "15.3.21",
3
+ "version": "15.3.23",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -51,38 +51,38 @@
51
51
  "tsc:types": "tsc -d --allowJs --declarationDir dist --emitDeclarationOnly ./src/extract-from-package.mjs"
52
52
  },
53
53
  "dependencies": {
54
- "@npmcli/arborist": "^7.5.2",
55
- "@vercel/nft": "^0.27.0",
54
+ "@npmcli/arborist": "^7.5.3",
55
+ "@vercel/nft": "^0.27.2",
56
56
  "aggregate-async-iterator": "^1.2.1",
57
57
  "commander": "^12.1.0",
58
58
  "compare-versions": "^6.1.0",
59
- "content-entry": "^11.0.0",
59
+ "content-entry": "^10.0.1",
60
60
  "content-entry-filesystem": "^6.0.0",
61
61
  "content-entry-transform": "^1.4.29",
62
- "execa": "^9.1.0",
62
+ "execa": "^9.3.0",
63
63
  "expression-expander": "^7.2.5",
64
- "globby": "^14.0.1",
64
+ "globby": "^14.0.2",
65
65
  "ini": "^4.1.3",
66
66
  "iterable-string-interceptor": "^3.0.0",
67
67
  "key-value-transformer": "^3.2.3",
68
- "npm-package-walker": "^7.0.1",
68
+ "npm-package-walker": "^7.0.2",
69
69
  "npm-packlist": "^8.0.2",
70
70
  "pacote": "^18.0.6",
71
71
  "pkg-dir": "^8.0.0",
72
72
  "tar-stream": "^3.1.7",
73
- "uti": "^8.6.0"
73
+ "uti": "^8.6.1"
74
74
  },
75
75
  "devDependencies": {
76
- "@types/node": "^20.12.12",
76
+ "@types/node": "^20.14.9",
77
77
  "ava": "^6.1.3",
78
- "c8": "^9.1.0",
78
+ "c8": "^10.1.2",
79
79
  "documentation": "^14.0.3",
80
- "semantic-release": "^23.1.1",
80
+ "semantic-release": "^24.0.0",
81
81
  "stream-buffers": "^3.0.2",
82
- "typescript": "^5.4.5"
82
+ "typescript": "^5.5.2"
83
83
  },
84
84
  "engines": {
85
- "node": ">=20.14.0",
85
+ "node": ">=20.15.0",
86
86
  "bun": ">=1.1"
87
87
  },
88
88
  "repository": {
@@ -85,8 +85,8 @@ export class DEBIAN extends Packager {
85
85
  if (name) {
86
86
  yield new StringContentEntry(
87
87
  name,
88
- f.body.replace(
89
- /\{\{(\w+)\}\}/m,
88
+ f.body.replaceAll(
89
+ /\{\{(\w+)\}\}/mg,
90
90
  (match, key, offset, string) =>
91
91
  properties[key] || "{{" + key + "}}"
92
92
  )
@@ -110,13 +110,22 @@ export class RPM extends Packager {
110
110
  return false;
111
111
  }
112
112
 
113
- async create(sources, transformer, dependencies, publishingDetails, options, expander) {
114
- const { properties, tmpdir, staging, destination } =
115
- await this.prepare(options);
113
+ async create(
114
+ sources,
115
+ transformer,
116
+ dependencies,
117
+ publishingDetails,
118
+ options,
119
+ expander
120
+ ) {
121
+ const { properties, tmpdir, staging, destination } = await this.prepare(
122
+ options
123
+ );
116
124
 
117
125
  properties.Requires = requiresFromDependencies(dependencies);
118
126
 
119
- if(properties.Packager?.length > 1) { // TODO how to write several Packages ?
127
+ if (properties.Packager?.length > 1) {
128
+ // TODO how to write several Packages ?
120
129
  properties.Packager.length = 1;
121
130
  }
122
131
 
@@ -136,8 +145,8 @@ export class RPM extends Packager {
136
145
  if (name) {
137
146
  yield `%${name}\n`;
138
147
 
139
- yield f.body.replace(
140
- /\{\{(\w+)\}\}/m,
148
+ yield f.body.replaceAll(
149
+ /\{\{(\w+)\}\}/gm,
141
150
  (match, key, offset, string) =>
142
151
  properties[key] || "{{" + key + "}}"
143
152
  ) + "\n\n";
@@ -66,7 +66,7 @@ export class Packager {
66
66
  publish(artifact: any, publishingDetails: any, properties: any, logger: any): Promise<void>;
67
67
  #private;
68
68
  }
69
- export type PublishingDetail = import('../publish.mjs').PublishingDetail;
69
+ export type PublishingDetail = import("../publish.mjs").PublishingDetail;
70
70
  export type Field = {
71
71
  /**
72
72
  * interchangeable field name
@@ -87,5 +87,5 @@ export class RPM extends Packager {
87
87
  get packageFileName(): string;
88
88
  create(sources: any, transformer: any, dependencies: any, publishingDetails: any, options: any, expander: any): Promise<string>;
89
89
  }
90
- export type PublishingDetail = import('../publish.mjs').PublishingDetail;
90
+ export type PublishingDetail = import("../publish.mjs").PublishingDetail;
91
91
  import { Packager } from "./packager.mjs";