@atlaspack/utils 2.12.1-dev.3567 → 2.13.1-canary.3630

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 ADDED
@@ -0,0 +1,16 @@
1
+ # @atlaspack/utils
2
+
3
+ ## 2.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#335](https://github.com/atlassian-labs/atlaspack/pull/335) [`b4dbd4d`](https://github.com/atlassian-labs/atlaspack/commit/b4dbd4d5b23d1b7aa3fcdf59cc7bc8bedd3a59cf) Thanks [@yamadapc](https://github.com/yamadapc)! - Initial changeset release
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`b4dbd4d`](https://github.com/atlassian-labs/atlaspack/commit/b4dbd4d5b23d1b7aa3fcdf59cc7bc8bedd3a59cf)]:
12
+ - @atlaspack/codeframe@2.13.0
13
+ - @atlaspack/diagnostic@2.13.0
14
+ - @atlaspack/logger@2.13.0
15
+ - @atlaspack/markdown-ansi@2.13.0
16
+ - @atlaspack/rust@2.13.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/utils",
3
- "version": "2.12.1-dev.3567+c06f4487e",
3
+ "version": "2.13.1-canary.3630+10a6f37ef",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -29,11 +29,11 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@atlaspack/codeframe": "2.12.1-dev.3567+c06f4487e",
33
- "@atlaspack/diagnostic": "2.12.1-dev.3567+c06f4487e",
34
- "@atlaspack/logger": "2.12.1-dev.3567+c06f4487e",
35
- "@atlaspack/markdown-ansi": "2.12.1-dev.3567+c06f4487e",
36
- "@atlaspack/rust": "2.12.1-dev.3567+c06f4487e",
32
+ "@atlaspack/codeframe": "2.13.1-canary.3630+10a6f37ef",
33
+ "@atlaspack/diagnostic": "2.13.1-canary.3630+10a6f37ef",
34
+ "@atlaspack/logger": "2.13.1-canary.3630+10a6f37ef",
35
+ "@atlaspack/markdown-ansi": "2.13.1-canary.3630+10a6f37ef",
36
+ "@atlaspack/rust": "2.13.1-canary.3630+10a6f37ef",
37
37
  "@parcel/source-map": "^2.1.1",
38
38
  "chalk": "^4.1.0",
39
39
  "nullthrows": "^1.1.1"
@@ -63,5 +63,5 @@
63
63
  "./src/openInBrowser.js": false,
64
64
  "@atlaspack/markdown-ansi": false
65
65
  },
66
- "gitHead": "c06f4487ebddc632957147c8b585a97e149062a1"
66
+ "gitHead": "10a6f37ef063d0227ebb26310383e899dbd9b1e6"
67
67
  }
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import assert from 'assert';
2
3
  import {
3
4
  matchSourceMappingURL,
@@ -46,6 +47,8 @@ describe('loadSourceMap', () => {
46
47
  let contents = fs.readFileSync(filename, 'utf-8');
47
48
 
48
49
  let foundMap = await loadSourceMapUrl(fs, filename, contents);
50
+ if (!foundMap) return assert.fail();
51
+
49
52
  assert.equal(foundMap.url, 'file://referenced-min.js.map');
50
53
  assert.equal(
51
54
  foundMap.filename,
@@ -65,6 +68,8 @@ describe('loadSourceMap', () => {
65
68
  let contents = fs.readFileSync(filename, 'utf-8');
66
69
 
67
70
  let foundMap = await loadSourceMapUrl(fs, filename, contents);
71
+ if (!foundMap) return assert.fail();
72
+
68
73
  assert.equal(
69
74
  foundMap.url,
70
75
  'data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmb28uanMiLCJiYXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O1VBQ0c7Ozs7Ozs7Ozs7Ozs7O3NCQ0RIO3NCQUNBIn0=',
@@ -88,7 +93,7 @@ describe('loadSourceMap', () => {
88
93
  projectRoot: __dirname,
89
94
  });
90
95
 
91
- assert(!!map);
96
+ if (!map) return assert.fail();
92
97
 
93
98
  let parsedMap = map.getMap();
94
99
  assert.deepEqual(parsedMap.sources, ['input/sourcemap/referenced.js']);
@@ -184,7 +189,7 @@ describe('loadSourceMap', () => {
184
189
  projectRoot: __dirname,
185
190
  });
186
191
 
187
- assert(!!map);
192
+ if (!map) return assert.fail();
188
193
 
189
194
  let parsedMap = map.getMap();
190
195
  assert.deepEqual(parsedMap.sources, ['input/sourcemap/referenced.js']);
@@ -199,7 +204,7 @@ describe('loadSourceMap', () => {
199
204
  projectRoot: __dirname,
200
205
  });
201
206
 
202
- assert(!!map);
207
+ if (!map) return assert.fail();
203
208
 
204
209
  let parsedMap = map.getMap();
205
210
  assert.deepEqual(parsedMap.sources, ['input/source.js']);