npm-pkgbuild 8.3.14 → 8.3.17

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": "8.3.14",
3
+ "version": "8.3.17",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -50,8 +50,8 @@
50
50
  "expression-expander": "^7.0.16",
51
51
  "globby": "^13.1.0",
52
52
  "ini": "^3.0.0",
53
- "iterable-string-interceptor": "^1.0.15",
54
- "key-value-transformer": "^2.1.1",
53
+ "iterable-string-interceptor": "^2.0.0",
54
+ "key-value-transformer": "^3.0.0",
55
55
  "node-fetch": "^3.2.3",
56
56
  "npm-package-walker": "^5.0.6",
57
57
  "npm-packlist": "^5.0.0",
@@ -152,7 +152,7 @@ const toBeSkipped = new RegExp(
152
152
  "CHANGES(\\.md)?",
153
153
  "HISTORY(\\.md)?",
154
154
  "DOCUMENTATION(\\.md)?",
155
- "LICEN[SC]E(\\-\\w+(\\.txt)?|\\.md|\\.txt|\\.BSD|\\.APACHE2|\\.MIT|\\.terms)?",
155
+ "LICEN[SC]E(\\-\\w+)?(\\.txt|\\.md|\\.BSD|\\.APACHE2|\\.MIT|\\.terms)?",
156
156
  "README(.*\\.md|\\.txt)?",
157
157
  "INSTALL(.*\\.md)?",
158
158
  "\\.armv6\\.node",
@@ -110,7 +110,8 @@ program
110
110
  ".txt",
111
111
  ".webmanifest",
112
112
  ".service",
113
- ".socket"
113
+ ".socket",
114
+ ".rules"
114
115
  ]),
115
116
  context.expand(properties)
116
117
  //properties
@@ -22,6 +22,16 @@ import {
22
22
  packageNameMapping
23
23
  } from "../util.mjs";
24
24
 
25
+
26
+
27
+ function* keyValueLines(key, value, options) {
28
+ yield `${keyPrefix(key)}${options.keyValueSeparator}${
29
+ Array.isArray(value)
30
+ ? "(" + value.map(v => quote(v)).join(" ") + ")"
31
+ : quote(value)
32
+ }${options.lineEnding}`;
33
+ }
34
+
25
35
  /**
26
36
  * @type KeyValueTransformOptions
27
37
  * Options to describe key value pair separated by an equal sign '='
@@ -35,16 +45,9 @@ export const pkgKeyValuePairOptions = {
35
45
  return [m[2], m[3] ? m[3].split(/\s*,\s*/) : m[4]];
36
46
  }
37
47
  },
38
- keyValueLines: keyValueLines3
48
+ keyValueLines
39
49
  };
40
50
 
41
- function* keyValueLines3(key, value, lineEnding) {
42
- yield `${keyPrefix(key)}=${
43
- Array.isArray(value)
44
- ? "(" + value.map(v => quote(v)).join(" ") + ")"
45
- : quote(value)
46
- }${lineEnding}`;
47
- }
48
51
 
49
52
  function keyPrefix(key) {
50
53
  const f = fields[key];