@atlaspack/optimizer-image 3.1.5-canary.137 → 3.1.5-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.
@@ -0,0 +1,3 @@
1
+ import { Optimizer } from '@atlaspack/plugin';
2
+ declare const _default: Optimizer<unknown, unknown>;
3
+ export default _default;
@@ -71,6 +71,7 @@ var _default = exports.default = new (_plugin().Optimizer)({
71
71
  const filepath = (_bundle$getMainEntry = bundle.getMainEntry()) === null || _bundle$getMainEntry === void 0 ? void 0 : _bundle$getMainEntry.filePath;
72
72
  const filename = filepath ? _path().default.relative(_process().default.cwd(), filepath) : 'unknown';
73
73
  logger.warn({
74
+ // @ts-expect-error TS2345
74
75
  message: (0, _diagnostic().md)`Could not optimize image ${filename}: ${err.message}`,
75
76
  stack: err.stack
76
77
  });
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@atlaspack/optimizer-image",
3
- "version": "3.1.5-canary.137+069de478e",
3
+ "version": "3.1.5-canary.139+d2fd84977",
4
4
  "license": "(MIT OR Apache-2.0)",
5
- "main": "lib/ImageOptimizer.js",
6
- "source": "src/ImageOptimizer.js",
5
+ "main": "./lib/ImageOptimizer.js",
6
+ "source": "./src/ImageOptimizer.ts",
7
+ "types": "./lib/ImageOptimizer.d.ts",
7
8
  "publishConfig": {
8
9
  "access": "public"
9
10
  },
@@ -18,15 +19,18 @@
18
19
  "lib"
19
20
  ],
20
21
  "dependencies": {
21
- "@atlaspack/diagnostic": "2.14.1-canary.205+069de478e",
22
- "@atlaspack/plugin": "2.14.5-canary.137+069de478e",
23
- "@atlaspack/rust": "3.2.1-canary.137+069de478e",
24
- "@atlaspack/utils": "2.14.5-canary.137+069de478e",
25
- "@atlaspack/workers": "2.14.5-canary.137+069de478e"
22
+ "@atlaspack/diagnostic": "2.14.1-canary.207+d2fd84977",
23
+ "@atlaspack/plugin": "2.14.5-canary.139+d2fd84977",
24
+ "@atlaspack/rust": "3.2.1-canary.139+d2fd84977",
25
+ "@atlaspack/utils": "2.14.5-canary.139+d2fd84977",
26
+ "@atlaspack/workers": "2.14.5-canary.139+d2fd84977"
26
27
  },
27
28
  "peerDependencies": {
28
29
  "@atlaspack/core": "^2.13.1"
29
30
  },
30
31
  "type": "commonjs",
31
- "gitHead": "069de478e64fb5889f6f2ce023eb510782767fbd"
32
- }
32
+ "scripts": {
33
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src"
34
+ },
35
+ "gitHead": "d2fd849770fe6305e9c694bd97b1bd905abd9d94"
36
+ }