@atlaspack/transformer-webmanifest 2.14.5-canary.2 → 2.14.5-canary.200

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,234 @@
1
1
  # @atlaspack/transformer-webmanifest
2
2
 
3
+ ## 2.14.31
4
+
5
+ ### Patch Changes
6
+
7
+ - [#785](https://github.com/atlassian-labs/atlaspack/pull/785) [`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922) Thanks [@matt-koko](https://github.com/matt-koko)! - We need to re-publish every package in Atlaspack with the corrected types field.
8
+
9
+ - Updated dependencies [[`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922)]:
10
+ - @atlaspack/diagnostic@2.14.4
11
+ - @atlaspack/plugin@2.14.31
12
+ - @atlaspack/utils@2.19.3
13
+
14
+ ## 2.14.30
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies []:
19
+ - @atlaspack/utils@2.19.2
20
+ - @atlaspack/plugin@2.14.30
21
+
22
+ ## 2.14.29
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies []:
27
+ - @atlaspack/utils@2.19.1
28
+ - @atlaspack/plugin@2.14.29
29
+
30
+ ## 2.14.28
31
+
32
+ ### Patch Changes
33
+
34
+ - [#758](https://github.com/atlassian-labs/atlaspack/pull/758) [`c940954`](https://github.com/atlassian-labs/atlaspack/commit/c940954d27d657c3c93cd328dfb394778da46eab) Thanks [@marcins](https://github.com/marcins)! - Type fixes
35
+
36
+ - Updated dependencies [[`f0349a6`](https://github.com/atlassian-labs/atlaspack/commit/f0349a6b9b04755088f121095ca6301a2ada3767)]:
37
+ - @atlaspack/utils@2.19.0
38
+ - @atlaspack/plugin@2.14.28
39
+
40
+ ## 2.14.27
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies []:
45
+ - @atlaspack/utils@2.18.4
46
+ - @atlaspack/plugin@2.14.27
47
+
48
+ ## 2.14.26
49
+
50
+ ### Patch Changes
51
+
52
+ - [#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
53
+
54
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd), [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2)]:
55
+ - @atlaspack/diagnostic@2.14.3
56
+ - @atlaspack/plugin@2.14.26
57
+ - @atlaspack/utils@2.18.3
58
+
59
+ ## 2.14.25
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies []:
64
+ - @atlaspack/utils@2.18.2
65
+ - @atlaspack/plugin@2.14.25
66
+
67
+ ## 2.14.24
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies []:
72
+ - @atlaspack/utils@2.18.1
73
+ - @atlaspack/plugin@2.14.24
74
+
75
+ ## 2.14.23
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
80
+ - @atlaspack/utils@2.18.0
81
+ - @atlaspack/plugin@2.14.23
82
+
83
+ ## 2.14.22
84
+
85
+ ### Patch Changes
86
+
87
+ - [#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
88
+
89
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94)]:
90
+ - @atlaspack/diagnostic@2.14.2
91
+ - @atlaspack/plugin@2.14.22
92
+ - @atlaspack/utils@2.17.4
93
+
94
+ ## 2.14.21
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies []:
99
+ - @atlaspack/utils@2.17.3
100
+ - @atlaspack/plugin@2.14.21
101
+
102
+ ## 2.14.20
103
+
104
+ ### Patch Changes
105
+
106
+ - [#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
107
+
108
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
109
+ - @atlaspack/plugin@2.14.20
110
+ - @atlaspack/utils@2.17.2
111
+
112
+ ## 2.14.19
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies []:
117
+ - @atlaspack/utils@2.17.1
118
+ - @atlaspack/plugin@2.14.19
119
+
120
+ ## 2.14.18
121
+
122
+ ### Patch Changes
123
+
124
+ - Updated dependencies [[`dbb4072`](https://github.com/atlassian-labs/atlaspack/commit/dbb40721ebeb45990a14ba04e6b44e7f836fb32d), [`de23e0c`](https://github.com/atlassian-labs/atlaspack/commit/de23e0ce49d5504fe3947ac26640a3d951087da3), [`18a57cf`](https://github.com/atlassian-labs/atlaspack/commit/18a57cf8a4789b2de5ad8e2676f317a26cc91417), [`a5ed1b4`](https://github.com/atlassian-labs/atlaspack/commit/a5ed1b414498560f393ff491af4da25b6e8dde56)]:
125
+ - @atlaspack/utils@2.17.0
126
+ - @atlaspack/plugin@2.14.18
127
+
128
+ ## 2.14.17
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies []:
133
+ - @atlaspack/utils@2.16.1
134
+ - @atlaspack/plugin@2.14.17
135
+
136
+ ## 2.14.16
137
+
138
+ ### Patch Changes
139
+
140
+ - Updated dependencies [[`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
141
+ - @atlaspack/utils@2.16.0
142
+ - @atlaspack/plugin@2.14.16
143
+
144
+ ## 2.14.15
145
+
146
+ ### Patch Changes
147
+
148
+ - Updated dependencies []:
149
+ - @atlaspack/utils@2.15.3
150
+ - @atlaspack/plugin@2.14.15
151
+
152
+ ## 2.14.14
153
+
154
+ ### Patch Changes
155
+
156
+ - Updated dependencies []:
157
+ - @atlaspack/utils@2.15.2
158
+ - @atlaspack/plugin@2.14.14
159
+
160
+ ## 2.14.13
161
+
162
+ ### Patch Changes
163
+
164
+ - Updated dependencies []:
165
+ - @atlaspack/utils@2.15.1
166
+ - @atlaspack/plugin@2.14.13
167
+
168
+ ## 2.14.12
169
+
170
+ ### Patch Changes
171
+
172
+ - Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
173
+ - @atlaspack/utils@2.15.0
174
+ - @atlaspack/plugin@2.14.12
175
+
176
+ ## 2.14.11
177
+
178
+ ### Patch Changes
179
+
180
+ - Updated dependencies []:
181
+ - @atlaspack/utils@2.14.11
182
+ - @atlaspack/plugin@2.14.11
183
+
184
+ ## 2.14.10
185
+
186
+ ### Patch Changes
187
+
188
+ - Updated dependencies []:
189
+ - @atlaspack/plugin@2.14.10
190
+ - @atlaspack/utils@2.14.10
191
+
192
+ ## 2.14.9
193
+
194
+ ### Patch Changes
195
+
196
+ - Updated dependencies []:
197
+ - @atlaspack/utils@2.14.9
198
+ - @atlaspack/plugin@2.14.9
199
+
200
+ ## 2.14.8
201
+
202
+ ### Patch Changes
203
+
204
+ - Updated dependencies []:
205
+ - @atlaspack/utils@2.14.8
206
+ - @atlaspack/plugin@2.14.8
207
+
208
+ ## 2.14.7
209
+
210
+ ### Patch Changes
211
+
212
+ - Updated dependencies []:
213
+ - @atlaspack/utils@2.14.7
214
+ - @atlaspack/plugin@2.14.7
215
+
216
+ ## 2.14.6
217
+
218
+ ### Patch Changes
219
+
220
+ - Updated dependencies []:
221
+ - @atlaspack/utils@2.14.6
222
+ - @atlaspack/plugin@2.14.6
223
+
224
+ ## 2.14.5
225
+
226
+ ### Patch Changes
227
+
228
+ - Updated dependencies []:
229
+ - @atlaspack/utils@2.14.5
230
+ - @atlaspack/plugin@2.14.5
231
+
3
232
  ## 2.14.4
4
233
 
5
234
  ### Patch Changes
@@ -41,6 +41,7 @@ function _utils() {
41
41
  }
42
42
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
43
43
  // https://developer.mozilla.org/en-US/docs/Web/Manifest
44
+
44
45
  const RESOURCES_SCHEMA = {
45
46
  type: 'array',
46
47
  items: {
@@ -0,0 +1,3 @@
1
+ import { Transformer } from '@atlaspack/plugin';
2
+ declare const _default: Transformer<unknown>;
3
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-webmanifest",
3
- "version": "2.14.5-canary.2+88fcaf47c",
3
+ "version": "2.14.5-canary.200+10ee3fa5b",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,15 +9,20 @@
9
9
  "type": "git",
10
10
  "url": "https://github.com/atlassian-labs/atlaspack.git"
11
11
  },
12
- "main": "lib/WebManifestTransformer.js",
13
- "source": "src/WebManifestTransformer.js",
12
+ "main": "./lib/WebManifestTransformer.js",
13
+ "source": "./src/WebManifestTransformer.ts",
14
+ "types": "./lib/types/WebManifestTransformer.d.ts",
14
15
  "engines": {},
15
16
  "dependencies": {
16
- "@atlaspack/diagnostic": "2.14.1-canary.70+88fcaf47c",
17
- "@atlaspack/plugin": "2.14.5-canary.2+88fcaf47c",
18
- "@atlaspack/utils": "2.14.5-canary.2+88fcaf47c",
17
+ "@atlaspack/diagnostic": "2.14.1-canary.268+10ee3fa5b",
18
+ "@atlaspack/plugin": "2.14.5-canary.200+10ee3fa5b",
19
+ "@atlaspack/utils": "2.14.5-canary.200+10ee3fa5b",
19
20
  "@mischnic/json-sourcemap": "^0.1.0"
20
21
  },
21
22
  "type": "commonjs",
22
- "gitHead": "88fcaf47c77a6b7a16003028dd65a4b7a1f19dd7"
23
- }
23
+ "scripts": {
24
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src",
25
+ "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
26
+ },
27
+ "gitHead": "10ee3fa5b75a92acde8973673d9b3c5b6f3958e5"
28
+ }
@@ -1,4 +1,3 @@
1
- // @flow
2
1
  // https://developer.mozilla.org/en-US/docs/Web/Manifest
3
2
  import type {SchemaEntity} from '@atlaspack/utils';
4
3
 
@@ -15,7 +14,7 @@ const RESOURCES_SCHEMA = {
15
14
  properties: {
16
15
  src: {
17
16
  type: 'string',
18
- __validate: (s) => {
17
+ __validate: (s: string) => {
19
18
  if (s.length === 0) {
20
19
  return 'Must not be empty';
21
20
  }
@@ -24,7 +23,7 @@ const RESOURCES_SCHEMA = {
24
23
  },
25
24
  required: ['src'],
26
25
  },
27
- };
26
+ } as const;
28
27
  const MANIFEST_SCHEMA: SchemaEntity = {
29
28
  type: 'object',
30
29
  properties: {
@@ -51,7 +50,7 @@ const MANIFEST_SCHEMA: SchemaEntity = {
51
50
  },
52
51
  };
53
52
 
54
- export default (new Transformer({
53
+ export default new Transformer({
55
54
  async transform({asset}) {
56
55
  const source = await asset.getCode();
57
56
  const {data, pointers} = parse(source);
@@ -63,7 +62,7 @@ export default (new Transformer({
63
62
  'Invalid webmanifest',
64
63
  );
65
64
 
66
- function addResourceListToAsset(list, parent) {
65
+ function addResourceListToAsset(list: any, parent: string) {
67
66
  if (list) {
68
67
  invariant(Array.isArray(list));
69
68
  for (let i = 0; i < list.length; i++) {
@@ -101,4 +100,4 @@ export default (new Transformer({
101
100
  asset.setCode(JSON.stringify(data));
102
101
  return [asset];
103
102
  },
104
- }): Transformer);
103
+ }) as Transformer<unknown>;
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": ["src"]
4
+ }