@octane-xplat/patches 0.16.1 → 0.17.1
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/package.json +1 -1
- package/patches/@nativescript-community__octane@0.2.5.patch +335 -174
- package/patches/@nativescript-community__vite-octane@0.2.1.patch +35 -4
- package/patches/{@nativescript__vite@8.0.17.patch → @nativescript__vite@8.0.20.patch} +171 -164
- package/patches/{octane@0.11.0.patch → octane@0.14.0.patch} +320 -415
- package/patches/shaders@4.0.0.patch +60 -0
- package/patches/@nativescript-community__ui-image@5.0.17.patch +0 -30
- package/patches/@triniwiz__nativescript-masonkit@1.0.0-beta.110.patch +0 -13
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
diff --git a/dist/core/std-ClftfWpF.js b/dist/core/std-ClftfWpF.js
|
|
2
|
+
index e700af08e6d387f67d476cbf39a9c983526d39f4..cdb55567aa0e22d090e3130fc43c155efd0720fc 100644
|
|
3
|
+
--- a/dist/core/std-ClftfWpF.js
|
|
4
|
+
+++ b/dist/core/std-ClftfWpF.js
|
|
5
|
+
@@ -1,5 +1,25 @@
|
|
6
|
+
import { d as markCustomWgslUsed, i as debugWarn, r as debugError, t as GpuUnavailableError } from "./support-D3W86vgR.js";
|
|
7
|
+
import { a as transformColor, c as transformPosition, l as transformStrokePosition, n as setColorSpaceMode, o as transformColorSpace, s as transformEdges, t as colorSpaceOptions, u as Color } from "./transformations-P50Uo_Ju.js";
|
|
8
|
+
+// Engines without Unicode data — V8 built without ICU (as embedded by NativeScript on iOS and Android,
|
|
9
|
+
+// nodejs-mobile, or `node --without-intl`) — reject every `\p{…}` escape. A regex literal containing one
|
|
10
|
+
+// is an early SyntaxError that fails the whole module at parse time, so property escapes are only built
|
|
11
|
+
+// here, through `new RegExp`, with a fallback when the engine rejects them.
|
|
12
|
+
+function propertyEscape(property, fallback) {
|
|
13
|
+
+ const escape = `\\p{${property}}`;
|
|
14
|
+
+ try {
|
|
15
|
+
+ new RegExp(escape, "u");
|
|
16
|
+
+ return escape;
|
|
17
|
+
+ } catch {
|
|
18
|
+
+ return fallback;
|
|
19
|
+
+ }
|
|
20
|
+
+}
|
|
21
|
+
+// Every non-ASCII code point except WGSL's non-ASCII blank spaces (U+0085, U+200E, U+200F, U+2028, U+2029).
|
|
22
|
+
+const nonAsciiNonBlank = "\\u0080-\\u0084\\u0086-\\u200D\\u2010-\\u2027\\u202A-\\u{10FFFF}";
|
|
23
|
+
+const strictXidStart = propertyEscape("XID_Start", "A-Za-z");
|
|
24
|
+
+const strictXidContinue = propertyEscape("XID_Continue", "0-9A-Za-z_");
|
|
25
|
+
+const looseXidStart = propertyEscape("XID_Start", `A-Za-z${nonAsciiNonBlank}`);
|
|
26
|
+
+const looseXidContinue = propertyEscape("XID_Continue", `0-9A-Za-z_${nonAsciiNonBlank}`);
|
|
27
|
+
+const wgslIdentRegex = new RegExp(`^(([_${strictXidStart}][${strictXidContinue}]+)|([${strictXidStart}]))$`, "u");
|
|
28
|
+
var __defProp$1 = Object.defineProperty;
|
|
29
|
+
var __export$1 = (all$1) => {
|
|
30
|
+
let target = {};
|
|
31
|
+
@@ -3327,7 +3347,7 @@ function validateIdentifier(ident) {
|
|
32
|
+
success: false,
|
|
33
|
+
error: `Identifiers cannot start with double underscores.`
|
|
34
|
+
};
|
|
35
|
+
- if (!/^(([_\p{XID_Start}][\p{XID_Continue}]+)|([\p{XID_Start}]))$/u.test(ident)) return {
|
|
36
|
+
+ if (!wgslIdentRegex.test(ident)) return {
|
|
37
|
+
success: false,
|
|
38
|
+
error: `Not compliant with WGSL guidelines.`
|
|
39
|
+
};
|
|
40
|
+
@@ -5782,9 +5802,9 @@ function addReturnTypeToExternals(implementation, returnType, core) {
|
|
41
|
+
const outputName = matched ? matched[1]?.trim() : void 0;
|
|
42
|
+
if (isWgslStruct(returnType) && outputName && !/\s/g.test(outputName)) core.setExternals("out", { [outputName]: returnType });
|
|
43
|
+
}
|
|
44
|
+
-const anyIdent = /([$_\p{XID_Start}][$\p{XID_Continue}]*)/u;
|
|
45
|
+
+const anyIdent = new RegExp(`([$_${looseXidStart}][$${looseXidContinue}]*)`, "u");
|
|
46
|
+
var anyPropChain = new RegExp(`(${anyIdent.source})(\\.${anyIdent.source})*`, "ug");
|
|
47
|
+
-const boundedPropChain = new RegExp(`(?<![\\p{XID_Continue}\\$.])${anyPropChain.source}(?![\\p{XID_Continue}\\$])`, "ug");
|
|
48
|
+
+const boundedPropChain = new RegExp(`(?<![${looseXidContinue}\\$.])${anyPropChain.source}(?![${looseXidContinue}\\$])`, "ug");
|
|
49
|
+
function replaceExternalsInWgsl(ctx$1, externalMap, wgsl$1) {
|
|
50
|
+
const keys = Object.keys(externalMap);
|
|
51
|
+
if (keys.length === 0) return wgsl$1;
|
|
52
|
+
@@ -11513,7 +11533,7 @@ function createShelllessImpl(argTypes, implementation) {
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
var splitRegex = new RegExp(`[${[...blankSpaces].join("")}]+`, "ug");
|
|
56
|
+
-var separatorNeededRegex = /[.\p{XID_Continue}]/u;
|
|
57
|
+
+var separatorNeededRegex = new RegExp(`[.${looseXidContinue}]`, "u");
|
|
58
|
+
function minify(code) {
|
|
59
|
+
const tokens = stripWGSLComments(code).split(splitRegex).filter((token) => token !== "");
|
|
60
|
+
let result = "";
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
diff --git a/index.ios.js b/index.ios.js
|
|
2
|
-
index 55c24ed3cbcd7eb0b17ddd3ea86f4ba72bf5e8fb..c4d2344fffbcea691c25099548e09a15355795d1 100644
|
|
3
|
-
--- a/index.ios.js
|
|
4
|
-
+++ b/index.ios.js
|
|
5
|
-
@@ -108,6 +108,16 @@ function getContextFromOptions(options) {
|
|
6
|
-
if (transformers.length > 0) {
|
|
7
|
-
context.setValueForKey(SDImagePipelineTransformer.transformerWithTransformers(transformers), SDWebImageContextImageTransformer);
|
|
8
|
-
}
|
|
9
|
-
+ if (options.headers) {
|
|
10
|
-
+ const requestModifier = SDWebImageDownloaderRequestModifier.requestModifierWithBlock((request) => {
|
|
11
|
-
+ const newRequest = request.mutableCopy();
|
|
12
|
-
+ Object.keys(options.headers).forEach((k) => {
|
|
13
|
-
+ newRequest.addValueForHTTPHeaderField(options.headers[k], k);
|
|
14
|
-
+ });
|
|
15
|
-
+ return newRequest.copy();
|
|
16
|
-
+ });
|
|
17
|
-
+ context.setValueForKey(requestModifier, SDWebImageContextDownloadRequestModifier);
|
|
18
|
-
+ }
|
|
19
|
-
return context;
|
|
20
|
-
}
|
|
21
|
-
// This is not the best solution as their might be a lot of corner cases
|
|
22
|
-
@@ -177,6 +187,8 @@ export class ImagePipeline {
|
|
23
|
-
prefetchToCacheType(uri, cacheType, options = {}) {
|
|
24
|
-
return new Promise((resolve, reject) => {
|
|
25
|
-
const context = getContextFromOptions(options);
|
|
26
|
-
+ context.setObjectForKey(cacheType, SDWebImageContextStoreCacheType);
|
|
27
|
-
+ context.setObjectForKey(cacheType, SDWebImageContextOriginalStoreCacheType);
|
|
28
|
-
SDWebImagePrefetcher.sharedImagePrefetcher.context = context;
|
|
29
|
-
SDWebImagePrefetcher.sharedImagePrefetcher.prefetchURLsProgressCompleted([getUri(uri)], null, (finished, skipped) => {
|
|
30
|
-
if (finished && !skipped) {
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
diff --git a/list/index.ios.js b/list/index.ios.js
|
|
2
|
-
index d683fa030ea4adb1b442405458055256319e0adc..97f1953ffbc8ca9e809953c2024e17cd32beb1bb 100644
|
|
3
|
-
--- a/list/index.ios.js
|
|
4
|
-
+++ b/list/index.ios.js
|
|
5
|
-
@@ -42,7 +42,7 @@ var ListDelegateImpl = (function (_super) {
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
- ListDelegateImpl.ObjCProtocols = [MasonListDelegate];
|
|
10
|
-
+ ListDelegateImpl.ObjCProtocols = typeof MasonListDelegate !== "undefined" ? [MasonListDelegate] : [];
|
|
11
|
-
return ListDelegateImpl;
|
|
12
|
-
}(NSObject));
|
|
13
|
-
const listState_ = Symbol('[[listState]]');
|