@atlaspack/transformer-webmanifest 2.14.5-canary.17 → 2.14.5-canary.170

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