@atlaspack/transformer-webmanifest 2.14.5-canary.19 → 2.14.5-canary.190

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,191 @@
1
1
  # @atlaspack/transformer-webmanifest
2
2
 
3
+ ## 2.14.29
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/utils@2.19.1
9
+ - @atlaspack/plugin@2.14.29
10
+
11
+ ## 2.14.28
12
+
13
+ ### Patch Changes
14
+
15
+ - [#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
16
+
17
+ - Updated dependencies [[`f0349a6`](https://github.com/atlassian-labs/atlaspack/commit/f0349a6b9b04755088f121095ca6301a2ada3767)]:
18
+ - @atlaspack/utils@2.19.0
19
+ - @atlaspack/plugin@2.14.28
20
+
21
+ ## 2.14.27
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies []:
26
+ - @atlaspack/utils@2.18.4
27
+ - @atlaspack/plugin@2.14.27
28
+
29
+ ## 2.14.26
30
+
31
+ ### Patch Changes
32
+
33
+ - [#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
34
+
35
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd), [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2)]:
36
+ - @atlaspack/diagnostic@2.14.3
37
+ - @atlaspack/plugin@2.14.26
38
+ - @atlaspack/utils@2.18.3
39
+
40
+ ## 2.14.25
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies []:
45
+ - @atlaspack/utils@2.18.2
46
+ - @atlaspack/plugin@2.14.25
47
+
48
+ ## 2.14.24
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies []:
53
+ - @atlaspack/utils@2.18.1
54
+ - @atlaspack/plugin@2.14.24
55
+
56
+ ## 2.14.23
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
61
+ - @atlaspack/utils@2.18.0
62
+ - @atlaspack/plugin@2.14.23
63
+
64
+ ## 2.14.22
65
+
66
+ ### Patch Changes
67
+
68
+ - [#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
69
+
70
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94)]:
71
+ - @atlaspack/diagnostic@2.14.2
72
+ - @atlaspack/plugin@2.14.22
73
+ - @atlaspack/utils@2.17.4
74
+
75
+ ## 2.14.21
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies []:
80
+ - @atlaspack/utils@2.17.3
81
+ - @atlaspack/plugin@2.14.21
82
+
83
+ ## 2.14.20
84
+
85
+ ### Patch Changes
86
+
87
+ - [#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
88
+
89
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
90
+ - @atlaspack/plugin@2.14.20
91
+ - @atlaspack/utils@2.17.2
92
+
93
+ ## 2.14.19
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies []:
98
+ - @atlaspack/utils@2.17.1
99
+ - @atlaspack/plugin@2.14.19
100
+
101
+ ## 2.14.18
102
+
103
+ ### Patch Changes
104
+
105
+ - 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)]:
106
+ - @atlaspack/utils@2.17.0
107
+ - @atlaspack/plugin@2.14.18
108
+
109
+ ## 2.14.17
110
+
111
+ ### Patch Changes
112
+
113
+ - Updated dependencies []:
114
+ - @atlaspack/utils@2.16.1
115
+ - @atlaspack/plugin@2.14.17
116
+
117
+ ## 2.14.16
118
+
119
+ ### Patch Changes
120
+
121
+ - Updated dependencies [[`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
122
+ - @atlaspack/utils@2.16.0
123
+ - @atlaspack/plugin@2.14.16
124
+
125
+ ## 2.14.15
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies []:
130
+ - @atlaspack/utils@2.15.3
131
+ - @atlaspack/plugin@2.14.15
132
+
133
+ ## 2.14.14
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies []:
138
+ - @atlaspack/utils@2.15.2
139
+ - @atlaspack/plugin@2.14.14
140
+
141
+ ## 2.14.13
142
+
143
+ ### Patch Changes
144
+
145
+ - Updated dependencies []:
146
+ - @atlaspack/utils@2.15.1
147
+ - @atlaspack/plugin@2.14.13
148
+
149
+ ## 2.14.12
150
+
151
+ ### Patch Changes
152
+
153
+ - Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
154
+ - @atlaspack/utils@2.15.0
155
+ - @atlaspack/plugin@2.14.12
156
+
157
+ ## 2.14.11
158
+
159
+ ### Patch Changes
160
+
161
+ - Updated dependencies []:
162
+ - @atlaspack/utils@2.14.11
163
+ - @atlaspack/plugin@2.14.11
164
+
165
+ ## 2.14.10
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies []:
170
+ - @atlaspack/plugin@2.14.10
171
+ - @atlaspack/utils@2.14.10
172
+
173
+ ## 2.14.9
174
+
175
+ ### Patch Changes
176
+
177
+ - Updated dependencies []:
178
+ - @atlaspack/utils@2.14.9
179
+ - @atlaspack/plugin@2.14.9
180
+
181
+ ## 2.14.8
182
+
183
+ ### Patch Changes
184
+
185
+ - Updated dependencies []:
186
+ - @atlaspack/utils@2.14.8
187
+ - @atlaspack/plugin@2.14.8
188
+
3
189
  ## 2.14.7
4
190
 
5
191
  ### 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.19+a63b1da4d",
3
+ "version": "2.14.5-canary.190+7a52bab62",
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/WebManifestTransformer.d.ts",
14
15
  "engines": {},
15
16
  "dependencies": {
16
- "@atlaspack/diagnostic": "2.14.1-canary.87+a63b1da4d",
17
- "@atlaspack/plugin": "2.14.5-canary.19+a63b1da4d",
18
- "@atlaspack/utils": "2.14.5-canary.19+a63b1da4d",
17
+ "@atlaspack/diagnostic": "2.14.1-canary.258+7a52bab62",
18
+ "@atlaspack/plugin": "2.14.5-canary.190+7a52bab62",
19
+ "@atlaspack/utils": "2.14.5-canary.190+7a52bab62",
19
20
  "@mischnic/json-sourcemap": "^0.1.0"
20
21
  },
21
22
  "type": "commonjs",
22
- "gitHead": "a63b1da4d98a7eda8a2130700dc844a56aa8308e"
23
- }
23
+ "scripts": {
24
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src",
25
+ "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
26
+ },
27
+ "gitHead": "7a52bab6281e8edbfa66af248eb6f872c6b4b7bd"
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
+ }