@atlaspack/compressor-brotli 2.13.7-canary.137 → 2.13.7-canary.139

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaspack/compressor-brotli
2
2
 
3
+ ## 2.13.23
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/plugin@2.14.21
9
+
3
10
  ## 2.13.22
4
11
 
5
12
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ import { Compressor } from '@atlaspack/plugin';
2
+ declare const _default: Compressor;
3
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/compressor-brotli",
3
- "version": "2.13.7-canary.137+069de478e",
3
+ "version": "2.13.7-canary.139+d2fd84977",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
@@ -10,13 +10,17 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/atlassian-labs/atlaspack.git"
12
12
  },
13
- "main": "lib/BrotliCompressor.js",
14
- "source": "src/BrotliCompressor.js",
13
+ "main": "./lib/BrotliCompressor.js",
14
+ "source": "./src/BrotliCompressor.ts",
15
+ "types": "./lib/BrotliCompressor.d.ts",
15
16
  "engines": {
16
17
  "node": ">= 16.0.0"
17
18
  },
18
19
  "dependencies": {
19
- "@atlaspack/plugin": "2.14.5-canary.137+069de478e"
20
+ "@atlaspack/plugin": "2.14.5-canary.139+d2fd84977"
20
21
  },
21
- "gitHead": "069de478e64fb5889f6f2ce023eb510782767fbd"
22
- }
22
+ "scripts": {
23
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src"
24
+ },
25
+ "gitHead": "d2fd849770fe6305e9c694bd97b1bd905abd9d94"
26
+ }
@@ -1,8 +1,7 @@
1
- // @flow strict-local
2
1
  import {Compressor} from '@atlaspack/plugin';
3
2
  import zlib from 'zlib';
4
3
 
5
- export default (new Compressor({
4
+ export default new Compressor({
6
5
  compress({options, stream}) {
7
6
  if (options.mode !== 'production') {
8
7
  return null;
@@ -13,4 +12,4 @@ export default (new Compressor({
13
12
  type: 'br',
14
13
  };
15
14
  },
16
- }): Compressor);
15
+ }) as Compressor;
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": ["src"]
4
+ }