@synopackageland/sdk 0.49.4 → 0.49.5

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/dist/native.js CHANGED
@@ -1,15 +1,16 @@
1
- function t(e) {
1
+ import { D as t } from "./context-DWEbBTIr.js";
2
+ function r(e) {
2
3
  return ["103", "104", "dsm_103", "dsm_104"].indexOf(String(e)) >= 0;
3
4
  }
4
- const r = `function createRootAccess(options) {
5
+ const o = `function createRootAccess(options) {
5
6
  var API = "SYNO.Core.TaskScheduler";
6
- var POLL_MS = 500, MAX_POLL_MS = 1000, RUN_LIMIT_MS = 10 * 60 * 1000;
7
+ var POLL_MS = 500, MAX_POLL_MS = 1000, RUN_LIMIT_MS = ${t};
7
8
  // The task an authorize just read back as exactly ours, for the run that follows.
8
9
  var byOp = {}, running = {}, verified = {};
9
10
  // spec/scheduler/v1: the id each task name was last listed with.
10
11
  var listed = {};
11
12
  var legacy = null, probe = null;
12
- var versionUnsupported = ${t.toString()};
13
+ var versionUnsupported = ${r.toString()};
13
14
  options.tasks.forEach(function (task) { byOp[task.op] = task; });
14
15
 
15
16
  function now() { return options.now ? options.now() : Date.now(); }
@@ -309,7 +310,7 @@ const r = `function createRootAccess(options) {
309
310
  return begin(op).then(readOutput);
310
311
  }
311
312
  };
312
- }`, n = `function createAuthorizationAccess(options) {
313
+ }`, i = `function createAuthorizationAccess(options) {
313
314
  var busy = null;
314
315
  function fail(code) { var error = new Error(code); error.code = code; return error; }
315
316
  function status() { return options.call("authorization.status").then(function (d) {
@@ -345,6 +346,6 @@ const r = `function createRootAccess(options) {
345
346
  }); }};
346
347
  }`;
347
348
  export {
348
- n as AUTHORIZATION_RUNTIME,
349
- r as ROOT_RUNTIME
349
+ i as AUTHORIZATION_RUNTIME,
350
+ o as ROOT_RUNTIME
350
351
  };
@@ -1,4 +1,4 @@
1
- import type { Context } from '../context';
1
+ import { type Context } from '../context';
2
2
  import type { ScopeSelection } from './long-running';
3
3
  import type { CapabilityStatus } from './executor-setup';
4
4
  import { type ConfirmFailure } from './use-executor-setup';
@@ -8,7 +8,7 @@ export interface ScopeDetail {
8
8
  selection?: ScopeSelection | null;
9
9
  mismatch?: boolean;
10
10
  }
11
- export declare const SCOPE_READBACK_MS = 60000, SCOPE_READBACK_POLL_MS = 1000;
11
+ export declare const SCOPE_READBACK_MS = 300000, SCOPE_READBACK_POLL_MS = 1000;
12
12
  export declare function useScopeApproval(props: {
13
13
  readonly admin: boolean;
14
14
  readonly locale?: string;
@@ -1,4 +1,4 @@
1
- import type { Context } from '../context';
1
+ import { type Context } from '../context';
2
2
  /** One inclusive destination range; a single port has equal bounds. */
3
3
  export interface DsmPortRange {
4
4
  first: number;
@@ -20,4 +20,4 @@ export interface DsmPort {
20
20
  * Uses the window's WebAPI channel when present, otherwise same-origin fetch
21
21
  * with the current files token. Missing session, refusal, timeout and malformed
22
22
  * replies return []. Names already use the session language. */
23
- export declare function readDsmPorts(ctx: Pick<Context, 'files' | 'webApi'>): Promise<DsmPort[]>;
23
+ export declare function readDsmPorts(ctx: Pick<Context, 'files' | 'webApi' | 'requestTimeout'>, signal?: AbortSignal): Promise<DsmPort[]>;