expo-test-runner 0.6.1 → 0.6.2
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 +6 -0
- package/build/Paths.js +4 -4
- package/build/Paths.js.map +1 -1
- package/package.json +4 -6
- package/src/Paths.ts +4 -4
package/CHANGELOG.md
CHANGED
package/build/Paths.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { randomBytes } from 'crypto';
|
|
2
|
+
import { mkdirSync, realpathSync } from 'fs';
|
|
3
|
+
import { tmpdir } from 'os';
|
|
2
4
|
import { join } from 'path';
|
|
3
|
-
import tempDir from 'temp-dir';
|
|
4
|
-
import uniqueString from 'unique-string';
|
|
5
5
|
export const SelfPath = join(__dirname, '..');
|
|
6
6
|
export function temporaryDirectory() {
|
|
7
|
-
const directory = join(
|
|
7
|
+
const directory = join(realpathSync(tmpdir()), randomBytes(16).toString('hex'));
|
|
8
8
|
mkdirSync(directory);
|
|
9
9
|
return directory;
|
|
10
10
|
}
|
package/build/Paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Paths.ts"],"sourcesContent":[null],"names":["mkdirSync","
|
|
1
|
+
{"version":3,"sources":["Paths.ts"],"sourcesContent":[null],"names":["randomBytes","mkdirSync","realpathSync","tmpdir","join","SelfPath","__dirname","temporaryDirectory","directory","toString"],"mappings":"AAAA,SAASA,WAAW,QAAQ,SAAS;AACrC,SAASC,SAAS,EAAEC,YAAY,QAAQ,KAAK;AAC7C,SAASC,MAAM,QAAQ,KAAK;AAC5B,SAASC,IAAI,QAAQ,OAAO;AAE5B,OAAO,MAAMC,WAAWD,KAAKE,WAAW,MAAM;AAE9C,OAAO,SAASC;IACd,MAAMC,YAAYJ,KAAKF,aAAaC,WAAWH,YAAY,IAAIS,QAAQ,CAAC;IACxER,UAAUO;IACV,OAAOA;AACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-test-runner",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Script that enchants test experience.",
|
|
5
5
|
"homepage": "https://github.com/expo/expo/tree/main/packages/expo-test-runner#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -24,14 +24,12 @@
|
|
|
24
24
|
"chalk": "^4.1.2",
|
|
25
25
|
"commander": "^7.2.0",
|
|
26
26
|
"dot": "^2.0.0-beta.1",
|
|
27
|
-
"fetch-nodeshim": "^0.4.10"
|
|
28
|
-
"temp-dir": "~2.0.0",
|
|
29
|
-
"unique-string": "~2.0.0"
|
|
27
|
+
"fetch-nodeshim": "^0.4.10"
|
|
30
28
|
},
|
|
31
29
|
"devDependencies": {
|
|
32
30
|
"@babel/core": "^7.23.7",
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
31
|
+
"@expo/internal-scripts": "58.0.6",
|
|
32
|
+
"@types/node": "^22.14.0"
|
|
35
33
|
},
|
|
36
34
|
"scripts": {
|
|
37
35
|
"build": "expo-build src",
|
package/src/Paths.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { randomBytes } from 'crypto';
|
|
2
|
+
import { mkdirSync, realpathSync } from 'fs';
|
|
3
|
+
import { tmpdir } from 'os';
|
|
2
4
|
import { join } from 'path';
|
|
3
|
-
import tempDir from 'temp-dir';
|
|
4
|
-
import uniqueString from 'unique-string';
|
|
5
5
|
|
|
6
6
|
export const SelfPath = join(__dirname, '..');
|
|
7
7
|
|
|
8
8
|
export function temporaryDirectory() {
|
|
9
|
-
const directory = join(
|
|
9
|
+
const directory = join(realpathSync(tmpdir()), randomBytes(16).toString('hex'));
|
|
10
10
|
mkdirSync(directory);
|
|
11
11
|
return directory;
|
|
12
12
|
}
|