@octane-xplat/patches 0.10.0 → 0.11.0
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
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
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,3 +1,36 @@
|
|
|
1
|
+
diff --git a/helpers/project.js b/helpers/project.js
|
|
2
|
+
index ef8a029f7e6e66cdeaa344a6af18af28145b8b05..b06cce4f6909d61b538295124ebb1d80a1eb31bf 100644
|
|
3
|
+
--- a/helpers/project.js
|
|
4
|
+
+++ b/helpers/project.js
|
|
5
|
+
@@ -73,7 +73,11 @@ function denoConfigHasWorkspace(dir) {
|
|
6
|
+
* - `lerna.json`
|
|
7
|
+
* - `nx.json` (Nx)
|
|
8
|
+
* - `rush.json` (Rush)
|
|
9
|
+
- * - `turbo.json` (Turborepo)
|
|
10
|
+
+ * - `turbo.json` (Turborepo) — NOT self-declaring: Turborepo scatters
|
|
11
|
+
+ * per-package `turbo.json` task configs (`"extends": ["//"]`) into every
|
|
12
|
+
+ * workspace package, so the file alone marks a package dir, not a root.
|
|
13
|
+
+ * Real turbo roots still resolve through their workspace declaration
|
|
14
|
+
+ * (`pnpm-workspace.yaml`, `lerna.json`, or `package.json#workspaces`)
|
|
15
|
+
* - `deno.json` / `deno.jsonc` containing a `workspace` field
|
|
16
|
+
* - `package.json` containing a `workspaces` field (npm/yarn workspaces)
|
|
17
|
+
*
|
|
18
|
+
@@ -106,6 +110,15 @@ export function findMonorepoWorkspaceRoot(start = getProjectRootPath()) {
|
|
19
|
+
return current;
|
|
20
|
+
continue;
|
|
21
|
+
}
|
|
22
|
+
+ if (marker === 'turbo.json') {
|
|
23
|
+
+ // turbo.json is not self-declaring: Turborepo writes
|
|
24
|
+
+ // per-package task configs (`"extends": ["//"]`) into
|
|
25
|
+
+ // workspace packages, so a lone turbo.json marks a package
|
|
26
|
+
+ // dir, not a root. Every real turbo root still resolves —
|
|
27
|
+
+ // its workspace is declared by pnpm-workspace.yaml,
|
|
28
|
+
+ // lerna.json, or package.json#workspaces.
|
|
29
|
+
+ continue;
|
|
30
|
+
+ }
|
|
31
|
+
if (existsSync(join(current, marker)))
|
|
32
|
+
return current;
|
|
33
|
+
}
|
|
1
34
|
diff --git a/helpers/ts-config-paths.js b/helpers/ts-config-paths.js
|
|
2
35
|
index 27013b5c8f78a72b6e6df903ac36f72fc0d75c1a..53a2e7d489ab91593cbec47ee6fb640fc56c786f 100644
|
|
3
36
|
--- a/helpers/ts-config-paths.js
|