libnpmdiff 7.0.2 → 7.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.
Files changed (2) hide show
  1. package/lib/untar.js +1 -2
  2. package/package.json +3 -3
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 */
@@ -84,7 +83,7 @@ const readTarballs = async (tarballs, opts = {}) => {
84
83
  const contents = await Promise.all(allRefs.map(async ref => ref.content))
85
84
 
86
85
  contents.forEach((content, index) => {
87
- allRefs[index].content = content
86
+ allRefs[index].content = content.toString('utf8')
88
87
  })
89
88
 
90
89
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libnpmdiff",
3
- "version": "7.0.2",
3
+ "version": "7.0.4",
4
4
  "description": "The registry diff",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,14 +47,14 @@
47
47
  "tap": "^16.3.8"
48
48
  },
49
49
  "dependencies": {
50
- "@npmcli/arborist": "^8.0.2",
50
+ "@npmcli/arborist": "^8.0.4",
51
51
  "@npmcli/installed-package-contents": "^3.0.0",
52
52
  "binary-extensions": "^2.3.0",
53
53
  "diff": "^5.1.0",
54
54
  "minimatch": "^9.0.4",
55
55
  "npm-package-arg": "^12.0.0",
56
56
  "pacote": "^19.0.0",
57
- "tar": "^6.2.1"
57
+ "tar": "^7.5.11"
58
58
  },
59
59
  "templateOSS": {
60
60
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",