@parcel/utils 2.0.0-dev.1548 → 2.0.0-dev.1562
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/lib/index.js +106 -106
- package/lib/index.js.map +1 -1
- package/package.json +7 -7
- package/src/alternatives.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/utils",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.1562+298c035e0",
|
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@parcel/codeframe": "2.0.0-dev.
|
|
37
|
-
"@parcel/diagnostic": "2.0.0-dev.
|
|
38
|
-
"@parcel/logger": "2.0.0-dev.
|
|
39
|
-
"@parcel/markdown-ansi": "2.0.0-dev.
|
|
40
|
-
"@parcel/rust": "2.12.1-dev.
|
|
36
|
+
"@parcel/codeframe": "2.0.0-dev.1562+298c035e0",
|
|
37
|
+
"@parcel/diagnostic": "2.0.0-dev.1562+298c035e0",
|
|
38
|
+
"@parcel/logger": "2.0.0-dev.1562+298c035e0",
|
|
39
|
+
"@parcel/markdown-ansi": "2.0.0-dev.1562+298c035e0",
|
|
40
|
+
"@parcel/rust": "2.12.1-dev.3185+298c035e0",
|
|
41
41
|
"@parcel/source-map": "^2.1.1",
|
|
42
42
|
"chalk": "^4.1.0",
|
|
43
43
|
"nullthrows": "^1.1.1"
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"./src/openInBrowser.js": false,
|
|
68
68
|
"@parcel/markdown-ansi": false
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "298c035e0ffb82d7c5579ce233cc35dce2fe1061"
|
|
71
71
|
}
|
package/src/alternatives.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import type {FileSystem} from '@parcel/
|
|
3
|
+
import type {FileSystem} from '@parcel/types';
|
|
4
4
|
import {fuzzySearch} from './schema';
|
|
5
5
|
import {relativePath} from './path';
|
|
6
6
|
import {resolveConfig} from './config';
|
|
@@ -141,5 +141,5 @@ export async function findAlternativeFiles(
|
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
return fuzzySearch(potentialFiles, fileSpecifier).slice(0, 2);
|
|
144
|
+
return fuzzySearch(potentialFiles.sort(), fileSpecifier).slice(0, 2);
|
|
145
145
|
}
|