@alint-js/plugin-simplicity 0.0.28 → 0.0.29

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.
@@ -0,0 +1,35 @@
1
+ import { createRequire } from "node:module";
2
+ //#region \0rolldown/runtime.js
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
+ var __exportAll = (all, no_symbols) => {
11
+ let target = {};
12
+ for (var name in all) __defProp(target, name, {
13
+ get: all[name],
14
+ enumerable: true
15
+ });
16
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
17
+ return target;
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
21
+ key = keys[i];
22
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
23
+ get: ((k) => from[k]).bind(null, key),
24
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
25
+ });
26
+ }
27
+ return to;
28
+ };
29
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
34
+ //#endregion
35
+ export { __toESM as i, __exportAll as n, __require as r, __commonJSMin as t };
@@ -0,0 +1,8 @@
1
+ import { r as tryImport } from "./index-DoHiaFQM-9scNuUlY.mjs";
2
+ //#region ../../node_modules/.pnpm/xsschema@0.5.0-beta.7_@valibot+to-json-schema@1.7.1_valibot@1.4.2_typescript@6.0.3___ef_dd15987b5d347427ac15b31bb7305983/node_modules/xsschema/dist/sury-BoOvxlMw.js
3
+ const getToJsonSchemaFn = async () => {
4
+ const { toJSONSchema } = await tryImport(import("./S-CK_sYI4B.mjs"), "sury");
5
+ return (schema) => toJSONSchema(schema);
6
+ };
7
+ //#endregion
8
+ export { getToJsonSchemaFn };
@@ -0,0 +1,8 @@
1
+ import { r as tryImport } from "./index-DoHiaFQM-9scNuUlY.mjs";
2
+ //#region ../../node_modules/.pnpm/xsschema@0.5.0-beta.7_@valibot+to-json-schema@1.7.1_valibot@1.4.2_typescript@6.0.3___ef_dd15987b5d347427ac15b31bb7305983/node_modules/xsschema/dist/valibot-_ibN3zSD.js
3
+ const getToJsonSchemaFn = async () => {
4
+ const { toJsonSchema } = await tryImport(import("./index.mjs").then((n) => n.t), "@valibot/to-json-schema");
5
+ return (schema) => toJsonSchema(schema);
6
+ };
7
+ //#endregion
8
+ export { getToJsonSchemaFn };
@@ -0,0 +1,28 @@
1
+ import { t as missingDependenciesUrl } from "./index-DoHiaFQM-9scNuUlY.mjs";
2
+ //#region ../../node_modules/.pnpm/xsschema@0.5.0-beta.7_@valibot+to-json-schema@1.7.1_valibot@1.4.2_typescript@6.0.3___ef_dd15987b5d347427ac15b31bb7305983/node_modules/xsschema/dist/zod-DjyNjMBF.js
3
+ const getToJsonSchemaFn = async () => {
4
+ let zodV4toJSONSchema = (_schema) => {
5
+ throw new Error(`xsschema: Missing zod v4 dependencies "zod". see ${missingDependenciesUrl}`);
6
+ };
7
+ let zodV3ToJSONSchema = (_schema) => {
8
+ throw new Error(`xsschema: Missing zod v3 dependencies "zod-to-json-schema". see ${missingDependenciesUrl}`);
9
+ };
10
+ try {
11
+ const { toJSONSchema } = await import("./core-BMoyZMrf.mjs");
12
+ zodV4toJSONSchema = ((schema) => toJSONSchema(schema, { target: "draft-7" }));
13
+ } catch (err) {
14
+ if (err instanceof Error) console.error(err.message);
15
+ }
16
+ try {
17
+ const { zodToJsonSchema } = await import("./esm-Dk08cWwM.mjs");
18
+ zodV3ToJSONSchema = zodToJsonSchema;
19
+ } catch (err) {
20
+ if (err instanceof Error) console.error(err.message);
21
+ }
22
+ return async (schema) => {
23
+ if ("_zod" in schema) return zodV4toJSONSchema(schema);
24
+ else return zodV3ToJSONSchema(schema);
25
+ };
26
+ };
27
+ //#endregion
28
+ export { getToJsonSchemaFn };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alint-js/plugin-simplicity",
3
3
  "type": "module",
4
- "version": "0.0.28",
4
+ "version": "0.0.29",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.mts",
@@ -12,20 +12,19 @@
12
12
  "files": [
13
13
  "dist"
14
14
  ],
15
- "dependencies": {
15
+ "devDependencies": {
16
16
  "@moeru/std": "^0.1.0-beta.18",
17
17
  "minimatch": "^10.2.5",
18
18
  "pathe": "^2.0.3",
19
19
  "tree-sitter-wasms": "^0.1.13",
20
- "valibot": "^1.4.2",
21
- "web-tree-sitter": "^0.24.7",
22
- "@alint-js/core": "0.0.28",
23
- "@alint-js/tools-fs": "0.0.28"
24
- },
25
- "devDependencies": {
26
20
  "tsdown": "^0.22.8",
27
21
  "typescript": "^6.0.3",
28
- "@alint-js/agent-apeira": "0.0.28"
22
+ "valibot": "^1.4.2",
23
+ "web-tree-sitter": "^0.24.7",
24
+ "@alint-js/core": "0.0.29",
25
+ "@alint-js/plugin": "0.0.29",
26
+ "@alint-js/tools-fs": "0.0.29",
27
+ "@alint-js/agent-apeira": "0.0.29"
29
28
  },
30
29
  "scripts": {
31
30
  "build": "tsdown",