@atlaspack/packager-wasm 2.14.5-canary.18 → 2.14.5-canary.180
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 +167 -0
- package/lib/WasmPackager.js +2 -0
- package/lib/types/WasmPackager.d.ts +3 -0
- package/lib/wasm-sourcemap.js +1 -0
- package/package.json +10 -5
- package/src/{WasmPackager.js → WasmPackager.ts} +5 -5
- package/tsconfig.json +4 -0
- package/src/wasm-sourcemap.js.flow +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,172 @@
|
|
|
1
1
|
# @atlaspack/packager-wasm
|
|
2
2
|
|
|
3
|
+
## 2.14.29
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @atlaspack/plugin@2.14.29
|
|
9
|
+
|
|
10
|
+
## 2.14.28
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies []:
|
|
15
|
+
- @atlaspack/plugin@2.14.28
|
|
16
|
+
|
|
17
|
+
## 2.14.27
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies []:
|
|
22
|
+
- @atlaspack/plugin@2.14.27
|
|
23
|
+
|
|
24
|
+
## 2.14.26
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- [#742](https://github.com/atlassian-labs/atlaspack/pull/742) [`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd) Thanks [@yamadapc](https://github.com/yamadapc)! - Internal changes and bug fixes to environmentDeduplication flag
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd)]:
|
|
31
|
+
- @atlaspack/plugin@2.14.26
|
|
32
|
+
|
|
33
|
+
## 2.14.25
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Updated dependencies []:
|
|
38
|
+
- @atlaspack/plugin@2.14.25
|
|
39
|
+
|
|
40
|
+
## 2.14.24
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- Updated dependencies []:
|
|
45
|
+
- @atlaspack/plugin@2.14.24
|
|
46
|
+
|
|
47
|
+
## 2.14.23
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Updated dependencies []:
|
|
52
|
+
- @atlaspack/plugin@2.14.23
|
|
53
|
+
|
|
54
|
+
## 2.14.22
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- [#720](https://github.com/atlassian-labs/atlaspack/pull/720) [`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94) Thanks [@alshdavid](https://github.com/alshdavid)! - Migrate to TypeScript
|
|
59
|
+
|
|
60
|
+
- Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94)]:
|
|
61
|
+
- @atlaspack/plugin@2.14.22
|
|
62
|
+
|
|
63
|
+
## 2.14.21
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- Updated dependencies []:
|
|
68
|
+
- @atlaspack/plugin@2.14.21
|
|
69
|
+
|
|
70
|
+
## 2.14.20
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- [#702](https://github.com/atlassian-labs/atlaspack/pull/702) [`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa) Thanks [@alshdavid](https://github.com/alshdavid)! - Fixes to Flow types
|
|
75
|
+
|
|
76
|
+
- Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
|
|
77
|
+
- @atlaspack/plugin@2.14.20
|
|
78
|
+
|
|
79
|
+
## 2.14.19
|
|
80
|
+
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- Updated dependencies []:
|
|
84
|
+
- @atlaspack/plugin@2.14.19
|
|
85
|
+
|
|
86
|
+
## 2.14.18
|
|
87
|
+
|
|
88
|
+
### Patch Changes
|
|
89
|
+
|
|
90
|
+
- Updated dependencies []:
|
|
91
|
+
- @atlaspack/plugin@2.14.18
|
|
92
|
+
|
|
93
|
+
## 2.14.17
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- Updated dependencies []:
|
|
98
|
+
- @atlaspack/plugin@2.14.17
|
|
99
|
+
|
|
100
|
+
## 2.14.16
|
|
101
|
+
|
|
102
|
+
### Patch Changes
|
|
103
|
+
|
|
104
|
+
- Updated dependencies []:
|
|
105
|
+
- @atlaspack/plugin@2.14.16
|
|
106
|
+
|
|
107
|
+
## 2.14.15
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- Updated dependencies []:
|
|
112
|
+
- @atlaspack/plugin@2.14.15
|
|
113
|
+
|
|
114
|
+
## 2.14.14
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- Updated dependencies []:
|
|
119
|
+
- @atlaspack/plugin@2.14.14
|
|
120
|
+
|
|
121
|
+
## 2.14.13
|
|
122
|
+
|
|
123
|
+
### Patch Changes
|
|
124
|
+
|
|
125
|
+
- Updated dependencies []:
|
|
126
|
+
- @atlaspack/plugin@2.14.13
|
|
127
|
+
|
|
128
|
+
## 2.14.12
|
|
129
|
+
|
|
130
|
+
### Patch Changes
|
|
131
|
+
|
|
132
|
+
- Updated dependencies []:
|
|
133
|
+
- @atlaspack/plugin@2.14.12
|
|
134
|
+
|
|
135
|
+
## 2.14.11
|
|
136
|
+
|
|
137
|
+
### Patch Changes
|
|
138
|
+
|
|
139
|
+
- Updated dependencies []:
|
|
140
|
+
- @atlaspack/plugin@2.14.11
|
|
141
|
+
|
|
142
|
+
## 2.14.10
|
|
143
|
+
|
|
144
|
+
### Patch Changes
|
|
145
|
+
|
|
146
|
+
- Updated dependencies []:
|
|
147
|
+
- @atlaspack/plugin@2.14.10
|
|
148
|
+
|
|
149
|
+
## 2.14.9
|
|
150
|
+
|
|
151
|
+
### Patch Changes
|
|
152
|
+
|
|
153
|
+
- Updated dependencies []:
|
|
154
|
+
- @atlaspack/plugin@2.14.9
|
|
155
|
+
|
|
156
|
+
## 2.14.8
|
|
157
|
+
|
|
158
|
+
### Patch Changes
|
|
159
|
+
|
|
160
|
+
- Updated dependencies []:
|
|
161
|
+
- @atlaspack/plugin@2.14.8
|
|
162
|
+
|
|
163
|
+
## 2.14.7
|
|
164
|
+
|
|
165
|
+
### Patch Changes
|
|
166
|
+
|
|
167
|
+
- Updated dependencies []:
|
|
168
|
+
- @atlaspack/plugin@2.14.7
|
|
169
|
+
|
|
3
170
|
## 2.14.6
|
|
4
171
|
|
|
5
172
|
### Patch Changes
|
package/lib/WasmPackager.js
CHANGED
|
@@ -22,11 +22,13 @@ var wasmmap = _interopRequireWildcard(require("./wasm-sourcemap"));
|
|
|
22
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
23
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
// @ts-expect-error TS7016
|
|
25
26
|
var _default = exports.default = new (_plugin().Packager)({
|
|
26
27
|
async package({
|
|
27
28
|
bundle,
|
|
28
29
|
getSourceMapReference
|
|
29
30
|
}) {
|
|
31
|
+
// @ts-expect-error TS2552
|
|
30
32
|
let assets = [];
|
|
31
33
|
bundle.traverseAssets(asset => {
|
|
32
34
|
assets.push(asset);
|
package/lib/wasm-sourcemap.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/packager-wasm",
|
|
3
|
-
"version": "2.14.5-canary.
|
|
3
|
+
"version": "2.14.5-canary.180+58b9fb037",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,14 +9,19 @@
|
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/atlassian-labs/atlaspack.git"
|
|
11
11
|
},
|
|
12
|
-
"main": "lib/WasmPackager.js",
|
|
13
|
-
"source": "src/WasmPackager.
|
|
12
|
+
"main": "./lib/WasmPackager.js",
|
|
13
|
+
"source": "./src/WasmPackager.ts",
|
|
14
|
+
"types": "./lib/types/WasmPackager.d.ts",
|
|
14
15
|
"engines": {
|
|
15
16
|
"node": ">=16.0.0"
|
|
16
17
|
},
|
|
17
18
|
"dependencies": {
|
|
18
|
-
"@atlaspack/plugin": "2.14.5-canary.
|
|
19
|
+
"@atlaspack/plugin": "2.14.5-canary.180+58b9fb037"
|
|
19
20
|
},
|
|
20
21
|
"type": "commonjs",
|
|
21
|
-
"
|
|
22
|
+
"scripts": {
|
|
23
|
+
"check-ts": "tsc --emitDeclarationOnly --rootDir src",
|
|
24
|
+
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
25
|
+
},
|
|
26
|
+
"gitHead": "58b9fb037680a36a0b4af7890f2a03532095b88f"
|
|
22
27
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
|
|
3
1
|
import assert from 'assert';
|
|
4
2
|
import {Packager} from '@atlaspack/plugin';
|
|
3
|
+
// @ts-expect-error TS7016
|
|
5
4
|
import * as wasmmap from './wasm-sourcemap';
|
|
6
5
|
|
|
7
|
-
export default
|
|
6
|
+
export default new Packager({
|
|
8
7
|
async package({bundle, getSourceMapReference}) {
|
|
9
|
-
|
|
8
|
+
// @ts-expect-error TS2552
|
|
9
|
+
let assets: Array<Asset> = [];
|
|
10
10
|
bundle.traverseAssets((asset) => {
|
|
11
11
|
assets.push(asset);
|
|
12
12
|
});
|
|
@@ -36,4 +36,4 @@ export default (new Packager({
|
|
|
36
36
|
return {contents, map};
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
})
|
|
39
|
+
}) as Packager<unknown, unknown>;
|
package/tsconfig.json
ADDED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
|
|
3
|
-
declare module.exports: {|
|
|
4
|
-
/**
|
|
5
|
-
* GetSourceMapURL extracts the source map from a WASM buffer.
|
|
6
|
-
* @returns {String|null} The linked sourcemap URL if present.
|
|
7
|
-
*/
|
|
8
|
-
GetSourceMapURL(buf: Uint8Array): string | null,
|
|
9
|
-
RemoveSourceMapURL(buf: Uint8Array): Uint8Array,
|
|
10
|
-
SetSourceMapURL(
|
|
11
|
-
buf: Uint8Array,
|
|
12
|
-
url: string,
|
|
13
|
-
urlLenOverride?: number,
|
|
14
|
-
): Uint8Array,
|
|
15
|
-
SetSourceMapURLRelativeTo(buf: Uint8Array, relativeURL: string): Uint8Array,
|
|
16
|
-
|};
|