compressing 1.6.1 → 1.6.2

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/History.md CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ 1.6.2 / 2022-07-11
3
+ ==================
4
+
5
+ **fixes**
6
+ * [[`96226d3`](http://github.com/node-modules/compressing/commit/96226d363c7c8fa9ef1a8098af646de19e729ce7)] - fix: add `suppressSizeWarning` to types and typo fix (#72) (Zeeko <<zeeko@zeeko.dev>>)
7
+
2
8
  1.6.1 / 2022-07-11
3
9
  ==================
4
10
 
package/index.d.ts CHANGED
@@ -8,6 +8,7 @@ interface streamEntryOpts {
8
8
  relativePath?: string
9
9
  ignoreBase?: boolean
10
10
  size?: number
11
+ suppressSizeWarning?: boolean
11
12
  }
12
13
 
13
14
  interface streamHeader {
@@ -45,7 +45,7 @@ class TarFileStream extends stream.Transform {
45
45
  });
46
46
  } else {
47
47
  if (!opts.suppressSizeWarning) {
48
- console.warn('You should specify the size of streamming data by opts.size to prevent all streaming data from loading into memory. If you are sure about memory cost, pass opts.supressSizeWarning: true to suppress this warning');
48
+ console.warn('You should specify the size of streamming data by opts.size to prevent all streaming data from loading into memory. If you are sure about memory cost, pass opts.suppressSizeWarning: true to suppress this warning');
49
49
  }
50
50
  const buf = [];
51
51
  this.entry = new stream.Writable({
package/lib/tar/stream.js CHANGED
@@ -101,7 +101,7 @@ class TarStream extends BaseStream {
101
101
  entry.pipe(entryStream);
102
102
  } else {
103
103
  if (!opts.suppressSizeWarning) {
104
- console.warn('You should specify the size of streamming data by opts.size to prevent all streaming data from loading into memory. If you are sure about memory cost, pass opts.supressSizeWarning: true to suppress this warning');
104
+ console.warn('You should specify the size of streamming data by opts.size to prevent all streaming data from loading into memory. If you are sure about memory cost, pass opts.suppressSizeWarning: true to suppress this warning');
105
105
  }
106
106
  const buf = [];
107
107
  const collectStream = new stream.Writable({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compressing",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Everything you need for compressing and uncompressing",
5
5
  "main": "index.js",
6
6
  "scripts": {