nativescript 8.5.4-dev.1 → 8.5.4-dev.1-next-05-22-2023-5047994157
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/config/test-deps-versions-generated.json +1 -1
- package/lib/common/mobile/device-log-provider.js +6 -2
- package/lib/services/ios-log-filter.js +4 -2
- package/lib/services/xcconfig-service.js +5 -5
- package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/balanced-match/README.md +6 -0
- package/node_modules/balanced-match/index.js +3 -0
- package/node_modules/balanced-match/package.json +3 -4
- package/package.json +1 -1
- package/lib/common/test/definitions/mocha.d.ts +0 -86
- package/node_modules/balanced-match/.npmignore +0 -5
- /package/node_modules/{brace-expansion → rimraf/node_modules/brace-expansion}/LICENSE +0 -0
- /package/node_modules/{brace-expansion → rimraf/node_modules/brace-expansion}/README.md +0 -0
- /package/node_modules/{brace-expansion → rimraf/node_modules/brace-expansion}/index.js +0 -0
- /package/node_modules/{brace-expansion → rimraf/node_modules/brace-expansion}/package.json +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"@jsdevtools/coverage-istanbul-loader":"3.0.5","karma":"6.4.
|
|
1
|
+
{"@jsdevtools/coverage-istanbul-loader":"3.0.5","karma":"6.4.2","karma-coverage":"2.2.0","karma-nativescript-launcher":"0.4.0","mocha":"10.2.0","karma-mocha":"2.0.1","karma-chai":"0.1.0","karma-jasmine":"4.0.2","karma-qunit":"4.1.2","@types/karma-chai":"0.1.3","@types/mocha":"10.0.1","@types/jasmine":"4.3.1","@types/qunit":"2.19.5","nyc":"15.1.0"}
|
|
@@ -14,7 +14,7 @@ class DeviceLogProvider extends device_log_provider_base_1.DeviceLogProviderBase
|
|
|
14
14
|
this.$logSourceMapService = $logSourceMapService;
|
|
15
15
|
this.$timelineProfilerService = $timelineProfilerService;
|
|
16
16
|
this.$options = $options;
|
|
17
|
-
this.consoleLogLevelRegex = /^CONSOLE (LOG|INFO|WARN|ERROR|TRACE|INFO( .+)):\s/;
|
|
17
|
+
this.consoleLogLevelRegex = /^CONSOLE (LOG|INFO|WARN|ERROR|TRACE|INFO( .+)|TIME):\s/;
|
|
18
18
|
this.consoleLevelColor = {
|
|
19
19
|
log: (line) => line,
|
|
20
20
|
info: color_1.color.cyanBright,
|
|
@@ -62,6 +62,7 @@ class DeviceLogProvider extends device_log_provider_base_1.DeviceLogProviderBase
|
|
|
62
62
|
}
|
|
63
63
|
logDataCore(data, deviceIdentifier) {
|
|
64
64
|
var _a, _b, _c;
|
|
65
|
+
data = data.replace(/^JS:\s/, "");
|
|
65
66
|
if ("classicLogs" in ((_a = this.$options.env) !== null && _a !== void 0 ? _a : {})) {
|
|
66
67
|
this.$logger.info(data, { [constants_2.LoggerConfigData.skipNewLine]: true });
|
|
67
68
|
return;
|
|
@@ -103,12 +104,15 @@ class DeviceLogProvider extends device_log_provider_base_1.DeviceLogProviderBase
|
|
|
103
104
|
level = "time";
|
|
104
105
|
timeLabel = timeLabel.replace("INFO ", "").trim() + ": ";
|
|
105
106
|
}
|
|
107
|
+
else if (!level && line.startsWith("Trace:")) {
|
|
108
|
+
level = "trace";
|
|
109
|
+
}
|
|
106
110
|
else {
|
|
107
111
|
level = (_c = level === null || level === void 0 ? void 0 : level.toLowerCase()) !== null && _c !== void 0 ? _c : "log";
|
|
108
112
|
}
|
|
109
113
|
const toLog = [timeLabel !== null && timeLabel !== void 0 ? timeLabel : "", match ? line.replace(match, "") : line]
|
|
110
114
|
.join("")
|
|
111
|
-
.
|
|
115
|
+
.trimEnd();
|
|
112
116
|
toLog.split("\n").forEach((actualLine) => {
|
|
113
117
|
this.printLine(color_1.color[this.getDeviceColor(deviceIdentifier)](" "), this.consoleLevelColor[level](actualLine));
|
|
114
118
|
});
|
|
@@ -6,7 +6,7 @@ class IOSLogFilter {
|
|
|
6
6
|
constructor($loggingLevels) {
|
|
7
7
|
this.$loggingLevels = $loggingLevels;
|
|
8
8
|
this.appOutputRegex = /([^\s\(\)]+)(?:\(([^\s]+)\))?\[[0-9]+\]/;
|
|
9
|
-
this.infoFilterRegex = new RegExp(`^.*(?:<Notice
|
|
9
|
+
this.infoFilterRegex = new RegExp(`^.*(?:<Notice>:[ \t]?|<Error>:[ \t]?|<Warning>:[ \t]?|\\(NativeScript\\)[ \t]?|${this.appOutputRegex.source}:[ \t]?){1}`);
|
|
10
10
|
this.postFilterRegex = /^\((.+)\) \[com\.apple.+\]/;
|
|
11
11
|
this.filterActive = true;
|
|
12
12
|
this.partialLine = null;
|
|
@@ -47,7 +47,9 @@ class IOSLogFilter {
|
|
|
47
47
|
if (filteredLineInfo && filteredLineInfo.length > 0) {
|
|
48
48
|
currentLine = currentLine.replace(filteredLineInfo[0], "");
|
|
49
49
|
}
|
|
50
|
-
currentLine = currentLine
|
|
50
|
+
currentLine = currentLine
|
|
51
|
+
.replace(/^\s*CONSOLE/, "CONSOLE")
|
|
52
|
+
.trimEnd();
|
|
51
53
|
const postFilterMatch = this.postFilterRegex.exec(currentLine);
|
|
52
54
|
if (postFilterMatch && (postFilterMatch === null || postFilterMatch === void 0 ? void 0 : postFilterMatch[1]) !== "NativeScript") {
|
|
53
55
|
continue;
|
|
@@ -38,12 +38,12 @@ class XcconfigService {
|
|
|
38
38
|
const escapedDestinationFile = destinationFile.replace(/'/g, "\\'");
|
|
39
39
|
const escapedSourceFile = sourceFile.replace(/'/g, "\\'");
|
|
40
40
|
const mergeScript = `require 'xcodeproj';
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
userConfig = Xcodeproj::Config.new('${escapedDestinationFile}')
|
|
42
|
+
existingConfig = Xcodeproj::Config.new('${escapedSourceFile}')
|
|
43
|
+
userConfig.attributes.each do |key,|
|
|
44
|
+
existingConfig.attributes.delete(key) if (userConfig.attributes.key?(key) && existingConfig.attributes.key?(key))
|
|
45
45
|
end
|
|
46
|
-
|
|
46
|
+
userConfig.merge(existingConfig).save_as(Pathname.new('${escapedDestinationFile}'))`;
|
|
47
47
|
yield this.$childProcess.exec(`ruby -e "${mergeScript}"`);
|
|
48
48
|
});
|
|
49
49
|
}
|
|
@@ -66,6 +66,12 @@ With [npm](https://npmjs.org) do:
|
|
|
66
66
|
npm install balanced-match
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
+
## Security contact information
|
|
70
|
+
|
|
71
|
+
To report a security vulnerability, please use the
|
|
72
|
+
[Tidelift security contact](https://tidelift.com/security).
|
|
73
|
+
Tidelift will coordinate the fix and disclosure.
|
|
74
|
+
|
|
69
75
|
## License
|
|
70
76
|
|
|
71
77
|
(MIT)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balanced-match",
|
|
3
3
|
"description": "Match balanced character pairs, like \"{\" and \"}\"",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git://github.com/juliangruber/balanced-match.git"
|
|
@@ -9,10 +9,9 @@
|
|
|
9
9
|
"homepage": "https://github.com/juliangruber/balanced-match",
|
|
10
10
|
"main": "index.js",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"test": "
|
|
13
|
-
"bench": "
|
|
12
|
+
"test": "tape test/test.js",
|
|
13
|
+
"bench": "matcha test/bench.js"
|
|
14
14
|
},
|
|
15
|
-
"dependencies": {},
|
|
16
15
|
"devDependencies": {
|
|
17
16
|
"matcha": "^0.7.0",
|
|
18
17
|
"tape": "^4.6.0"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nativescript",
|
|
3
3
|
"preferGlobal": true,
|
|
4
|
-
"version": "8.5.4-dev.1",
|
|
4
|
+
"version": "8.5.4-dev.1-next-05-22-2023-5047994157",
|
|
5
5
|
"author": "NativeScript <support@nativescript.org>",
|
|
6
6
|
"description": "Command-line interface for building NativeScript projects",
|
|
7
7
|
"bin": {
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
// Type definitions for mocha 1.9.0
|
|
2
|
-
// Project: http://visionmedia.github.io/mocha/
|
|
3
|
-
// Definitions by: Kazi Manzur Rashid <https://github.com/kazimanzurrashid/>
|
|
4
|
-
// DefinitelyTyped: https://github.com/borisyankov/DefinitelyTyped
|
|
5
|
-
|
|
6
|
-
interface Mocha {
|
|
7
|
-
// Setup mocha with the given setting options.
|
|
8
|
-
setup(options: MochaSetupOptions): Mocha;
|
|
9
|
-
|
|
10
|
-
//Run tests and invoke `fn()` when complete.
|
|
11
|
-
run(callback?: () => void): void;
|
|
12
|
-
|
|
13
|
-
// Set reporter as function
|
|
14
|
-
reporter(reporter: () => void): Mocha;
|
|
15
|
-
|
|
16
|
-
// Set reporter, defaults to "dot"
|
|
17
|
-
reporter(reporter: string): Mocha;
|
|
18
|
-
|
|
19
|
-
// Enable growl support.
|
|
20
|
-
growl(): Mocha;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface MochaSetupOptions {
|
|
24
|
-
//milliseconds to wait before considering a test slow
|
|
25
|
-
slow?: number;
|
|
26
|
-
|
|
27
|
-
// timeout in milliseconds
|
|
28
|
-
timeout?: number;
|
|
29
|
-
|
|
30
|
-
// ui name "bdd", "tdd", "exports" etc
|
|
31
|
-
ui?: string;
|
|
32
|
-
|
|
33
|
-
//array of accepted globals
|
|
34
|
-
globals?: any[];
|
|
35
|
-
|
|
36
|
-
// reporter instance (function or string), defaults to `mocha.reporters.Dot`
|
|
37
|
-
reporter?: any;
|
|
38
|
-
|
|
39
|
-
// bail on the first test failure
|
|
40
|
-
bail?: Boolean;
|
|
41
|
-
|
|
42
|
-
// ignore global leaks
|
|
43
|
-
ignoreLeaks?: Boolean;
|
|
44
|
-
|
|
45
|
-
// grep string or regexp to filter tests with
|
|
46
|
-
grep?: any;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare module mocha {
|
|
50
|
-
interface Done {
|
|
51
|
-
(error?: Error): void;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
declare var describe: {
|
|
56
|
-
(description: string, spec: () => void): void;
|
|
57
|
-
only(description: string, spec: () => void): void;
|
|
58
|
-
skip(description: string, spec: () => void): void;
|
|
59
|
-
timeout(ms: number): void;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
declare var it: {
|
|
63
|
-
(expectation: string, assertion?: () => void): void;
|
|
64
|
-
(expectation: string, assertion?: (done: mocha.Done) => void): void;
|
|
65
|
-
only(expectation: string, assertion?: () => void): void;
|
|
66
|
-
only(expectation: string, assertion?: (done: mocha.Done) => void): void;
|
|
67
|
-
skip(expectation: string, assertion?: () => void): void;
|
|
68
|
-
skip(expectation: string, assertion?: (done: mocha.Done) => void): void;
|
|
69
|
-
timeout(ms: number): void;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
declare function before(action: () => void): void;
|
|
73
|
-
|
|
74
|
-
declare function before(action: (done: mocha.Done) => void): void;
|
|
75
|
-
|
|
76
|
-
declare function after(action: () => void): void;
|
|
77
|
-
|
|
78
|
-
declare function after(action: (done: mocha.Done) => void): void;
|
|
79
|
-
|
|
80
|
-
declare function beforeEach(action: () => void): void;
|
|
81
|
-
|
|
82
|
-
declare function beforeEach(action: (done: mocha.Done) => void): void;
|
|
83
|
-
|
|
84
|
-
declare function afterEach(action: () => void): void;
|
|
85
|
-
|
|
86
|
-
declare function afterEach(action: (done: mocha.Done) => void): void;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|