libnpmdiff 8.0.7 → 8.0.8

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.
Files changed (2) hide show
  1. package/lib/untar.js +2 -2
  2. package/package.json +9 -9
package/lib/untar.js CHANGED
@@ -37,7 +37,6 @@ const untar = ({ files, refs }, { filterFiles, item, prefix }) => {
37
37
  // should skip reading file when using --name-only option
38
38
  let content
39
39
  try {
40
- entry.setEncoding('utf8')
41
40
  content = entry.concat()
42
41
  } catch (e) {
43
42
  /* istanbul ignore next */
@@ -80,11 +79,12 @@ const readTarballs = async (tarballs, opts = {}) => {
80
79
  }
81
80
 
82
81
  // await to read all content from included files
82
+ // TODO this feels like it could be one in one pass instead of three (values, map, forEach)
83
83
  const allRefs = [...refs.values()]
84
84
  const contents = await Promise.all(allRefs.map(async ref => ref.content))
85
85
 
86
86
  contents.forEach((content, index) => {
87
- allRefs[index].content = content
87
+ allRefs[index].content = content.toString('utf8')
88
88
  })
89
89
 
90
90
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libnpmdiff",
3
- "version": "8.0.7",
3
+ "version": "8.0.8",
4
4
  "description": "The registry diff",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,22 +43,22 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@npmcli/eslint-config": "^5.0.1",
46
- "@npmcli/template-oss": "4.24.4",
46
+ "@npmcli/template-oss": "4.25.1",
47
47
  "tap": "^16.3.8"
48
48
  },
49
49
  "dependencies": {
50
- "@npmcli/arborist": "^9.1.4",
50
+ "@npmcli/arborist": "^9.1.5",
51
51
  "@npmcli/installed-package-contents": "^3.0.0",
52
52
  "binary-extensions": "^3.0.0",
53
- "diff": "^7.0.0",
54
- "minimatch": "^9.0.4",
55
- "npm-package-arg": "^12.0.0",
56
- "pacote": "^21.0.0",
57
- "tar": "^6.2.1"
53
+ "diff": "^8.0.2",
54
+ "minimatch": "^10.0.3",
55
+ "npm-package-arg": "^13.0.0",
56
+ "pacote": "^21.0.2",
57
+ "tar": "^7.5.1"
58
58
  },
59
59
  "templateOSS": {
60
60
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
61
- "version": "4.24.4",
61
+ "version": "4.25.1",
62
62
  "content": "../../scripts/template-oss/index.js"
63
63
  },
64
64
  "tap": {