@ucdjs/pipelines-loader 0.0.1-beta.5 → 0.0.1-beta.6

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/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as LocalSource, i as LoadedPipelineFile, n as GitLabSource, o as PipelineLoadError, r as LoadPipelinesResult, s as PipelineSource, t as GitHubSource } from "./types-Br8gGmsN.mjs";
2
- import { FindRemotePipelineFilesOptions, LoadRemotePipelinesOptions, findRemotePipelineFiles, loadRemotePipelines } from "./remote.mjs";
2
+ import { i as loadRemotePipelines, n as LoadRemotePipelinesOptions, r as findRemotePipelineFiles, t as FindRemotePipelineFilesOptions } from "./remote-PQ_FXnt1.mjs";
3
3
 
4
4
  //#region src/loader.d.ts
5
5
  declare function loadPipelineFile(filePath: string): Promise<LoadedPipelineFile>;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import "./bundle-dlu7M3TU.mjs";
1
+ import "./insecure-lzOoh_sk.mjs";
2
2
  import { findRemotePipelineFiles, loadRemotePipelines } from "./remote.mjs";
3
3
  import { pathToFileURL } from "node:url";
4
4
  import { isPipelineDefinition } from "@ucdjs/pipelines-core";
@@ -1,4 +1,5 @@
1
1
  import { t as __exportAll } from "./chunk-DQk6qfdC.mjs";
2
+ import { isPipelineDefinition } from "@ucdjs/pipelines-core";
2
3
  import path from "node:path";
3
4
  import { build } from "rolldown";
4
5
  import { parseSync } from "oxc-parser";
@@ -317,4 +318,29 @@ function identifierForLocalFile(filePath) {
317
318
  }
318
319
 
319
320
  //#endregion
320
- export { gitlab_exports as a, github_exports as c, fetchFile as i, listFiles$1 as l, createDataUrl as n, listFiles as o, identifierForLocalFile as r, fetchFile$1 as s, bundleRemoteModule as t, formatRemoteIdentifierFromParts as u };
321
+ //#region src/insecure.ts
322
+ async function loadPipelineFromContent(content, filename, options = {}) {
323
+ const module = await import(createDataUrl(await bundleRemoteModule({
324
+ content,
325
+ identifier: options.identifier ?? identifierForLocalFile(path.resolve(filename)),
326
+ customFetch: options.customFetch
327
+ })));
328
+ const pipelines = [];
329
+ const exportNames = [];
330
+ const exportedModule = module;
331
+ for (const [name, value] of Object.entries(exportedModule)) {
332
+ if (name === "default") continue;
333
+ if (isPipelineDefinition(value)) {
334
+ pipelines.push(value);
335
+ exportNames.push(name);
336
+ }
337
+ }
338
+ return {
339
+ filePath: filename,
340
+ pipelines,
341
+ exportNames
342
+ };
343
+ }
344
+
345
+ //#endregion
346
+ export { fetchFile$1 as a, formatRemoteIdentifierFromParts as c, listFiles as i, fetchFile as n, github_exports as o, gitlab_exports as r, listFiles$1 as s, loadPipelineFromContent as t };
package/dist/insecure.mjs CHANGED
@@ -1,30 +1,3 @@
1
- import { n as createDataUrl, r as identifierForLocalFile, t as bundleRemoteModule } from "./bundle-dlu7M3TU.mjs";
2
- import { isPipelineDefinition } from "@ucdjs/pipelines-core";
3
- import path from "node:path";
1
+ import { t as loadPipelineFromContent } from "./insecure-lzOoh_sk.mjs";
4
2
 
5
- //#region src/insecure.ts
6
- async function loadPipelineFromContent(content, filename, options = {}) {
7
- const module = await import(createDataUrl(await bundleRemoteModule({
8
- content,
9
- identifier: options.identifier ?? identifierForLocalFile(path.resolve(filename)),
10
- customFetch: options.customFetch
11
- })));
12
- const pipelines = [];
13
- const exportNames = [];
14
- const exportedModule = module;
15
- for (const [name, value] of Object.entries(exportedModule)) {
16
- if (name === "default") continue;
17
- if (isPipelineDefinition(value)) {
18
- pipelines.push(value);
19
- exportNames.push(name);
20
- }
21
- }
22
- return {
23
- filePath: filename,
24
- pipelines,
25
- exportNames
26
- };
27
- }
28
-
29
- //#endregion
30
3
  export { loadPipelineFromContent };
@@ -1,3 +1,5 @@
1
+ import { n as GitLabSource, r as LoadPipelinesResult, t as GitHubSource } from "./types-Br8gGmsN.mjs";
2
+
1
3
  //#region src/remote/types.d.ts
2
4
  interface RemoteFileList {
3
5
  files: string[];
@@ -29,4 +31,16 @@ interface GitLabRepoRef {
29
31
  declare function listFiles(repoRef: GitLabRepoRef, options?: RemoteRequestOptions): Promise<RemoteFileList>;
30
32
  declare function fetchFile(repoRef: GitLabRepoRef, filePath: string, options?: RemoteRequestOptions): Promise<string>;
31
33
  //#endregion
32
- export { github_d_exports as n, RemoteFileList as r, gitlab_d_exports as t };
34
+ //#region src/remote.d.ts
35
+ interface FindRemotePipelineFilesOptions {
36
+ pattern?: string;
37
+ customFetch?: typeof fetch;
38
+ }
39
+ declare function findRemotePipelineFiles(source: GitHubSource | GitLabSource, options?: FindRemotePipelineFilesOptions): Promise<RemoteFileList>;
40
+ interface LoadRemotePipelinesOptions {
41
+ throwOnError?: boolean;
42
+ customFetch?: typeof fetch;
43
+ }
44
+ declare function loadRemotePipelines(source: GitHubSource | GitLabSource, filePaths: string[], options?: LoadRemotePipelinesOptions): Promise<LoadPipelinesResult>;
45
+ //#endregion
46
+ export { gitlab_d_exports as a, loadRemotePipelines as i, LoadRemotePipelinesOptions as n, github_d_exports as o, findRemotePipelineFiles as r, FindRemotePipelineFilesOptions as t };
package/dist/remote.d.mts CHANGED
@@ -1,16 +1,3 @@
1
- import { n as GitLabSource, r as LoadPipelinesResult, t as GitHubSource } from "./types-Br8gGmsN.mjs";
2
- import { n as github_d_exports, r as RemoteFileList, t as gitlab_d_exports } from "./gitlab-C8zDC1_j.mjs";
3
-
4
- //#region src/remote.d.ts
5
- interface FindRemotePipelineFilesOptions {
6
- pattern?: string;
7
- customFetch?: typeof fetch;
8
- }
9
- declare function findRemotePipelineFiles(source: GitHubSource | GitLabSource, options?: FindRemotePipelineFilesOptions): Promise<RemoteFileList>;
10
- interface LoadRemotePipelinesOptions {
11
- throwOnError?: boolean;
12
- customFetch?: typeof fetch;
13
- }
14
- declare function loadRemotePipelines(source: GitHubSource | GitLabSource, filePaths: string[], options?: LoadRemotePipelinesOptions): Promise<LoadPipelinesResult>;
15
- //#endregion
1
+ import "./types-Br8gGmsN.mjs";
2
+ import { a as gitlab_d_exports, i as loadRemotePipelines, n as LoadRemotePipelinesOptions, o as github_d_exports, r as findRemotePipelineFiles, t as FindRemotePipelineFilesOptions } from "./remote-PQ_FXnt1.mjs";
16
3
  export { FindRemotePipelineFilesOptions, LoadRemotePipelinesOptions, findRemotePipelineFiles, github_d_exports as github, gitlab_d_exports as gitlab, loadRemotePipelines };
package/dist/remote.mjs CHANGED
@@ -1,5 +1,4 @@
1
- import { a as gitlab_exports, c as github_exports, i as fetchFile$1, l as listFiles, o as listFiles$1, s as fetchFile, u as formatRemoteIdentifierFromParts } from "./bundle-dlu7M3TU.mjs";
2
- import { loadPipelineFromContent } from "./insecure.mjs";
1
+ import { a as fetchFile, c as formatRemoteIdentifierFromParts, i as listFiles$1, n as fetchFile$1, o as github_exports, r as gitlab_exports, s as listFiles, t as loadPipelineFromContent } from "./insecure-lzOoh_sk.mjs";
3
2
  import picomatch from "picomatch";
4
3
 
5
4
  //#region src/remote.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucdjs/pipelines-loader",
3
- "version": "0.0.1-beta.5",
3
+ "version": "0.0.1-beta.6",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "Lucas Nørgård",
@@ -28,15 +28,15 @@
28
28
  "dist"
29
29
  ],
30
30
  "engines": {
31
- "node": ">=22.18"
31
+ "node": ">=24.13"
32
32
  },
33
33
  "dependencies": {
34
- "oxc-parser": "0.112.0",
35
- "oxc-transform": "0.112.0",
34
+ "oxc-parser": "0.114.0",
35
+ "oxc-transform": "0.114.0",
36
36
  "picomatch": "4.0.3",
37
- "rolldown": "1.0.0-rc.4",
37
+ "rolldown": "1.0.0-rc.5",
38
38
  "tinyglobby": "0.2.15",
39
- "@ucdjs/pipelines-core": "0.0.1-beta.5"
39
+ "@ucdjs/pipelines-core": "0.0.1-beta.6"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@luxass/eslint-config": "7.2.0",