@nestia/editor 0.6.0-dev.20241030-3 → 0.6.0-dev.20241030-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/lib/index.mjs
CHANGED
|
@@ -10,9 +10,9 @@ import React from "react";
|
|
|
10
10
|
|
|
11
11
|
import { MigrateApplication } from "@nestia/migrate";
|
|
12
12
|
|
|
13
|
-
import prettierEsTreePlugin from "prettier/plugins/estree";
|
|
13
|
+
import * as prettierEsTreePlugin from "prettier/plugins/estree";
|
|
14
14
|
|
|
15
|
-
import prettierTsPlugin from "prettier/plugins/typescript";
|
|
15
|
+
import * as prettierTsPlugin from "prettier/plugins/typescript";
|
|
16
16
|
|
|
17
17
|
import { format } from "prettier/standalone";
|
|
18
18
|
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -46,14 +69,11 @@ var __values = (this && this.__values) || function(o) {
|
|
|
46
69
|
};
|
|
47
70
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
48
71
|
};
|
|
49
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
50
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
|
-
};
|
|
52
72
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
73
|
exports.NestiaEditorComposer = void 0;
|
|
54
74
|
var migrate_1 = require("@nestia/migrate");
|
|
55
|
-
var
|
|
56
|
-
var
|
|
75
|
+
var prettierEsTreePlugin = __importStar(require("prettier/plugins/estree"));
|
|
76
|
+
var prettierTsPlugin = __importStar(require("prettier/plugins/typescript"));
|
|
57
77
|
var standalone_1 = require("prettier/standalone");
|
|
58
78
|
var NestiaEditorComposer;
|
|
59
79
|
(function (NestiaEditorComposer) {
|
|
@@ -114,7 +134,7 @@ var NestiaEditorComposer;
|
|
|
114
134
|
_a = f;
|
|
115
135
|
return [4 /*yield*/, (0, standalone_1.format)(f.content, {
|
|
116
136
|
parser: "typescript",
|
|
117
|
-
plugins: [
|
|
137
|
+
plugins: [prettierEsTreePlugin, prettierTsPlugin],
|
|
118
138
|
})];
|
|
119
139
|
case 5:
|
|
120
140
|
_a.content = _c.sent();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestiaEditorComposer.js","sourceRoot":"","sources":["../../src/internal/NestiaEditorComposer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"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AC;;;aAClC;IA5CD,CA4CC,CAAC;AACN,CAAC,EAnFgB,oBAAoB,oCAApB,oBAAoB,QAmFpC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MigrateApplication } from "@nestia/migrate";
|
|
2
2
|
import { OpenApiV3, OpenApiV3_1, SwaggerV2 } from "@samchon/openapi";
|
|
3
|
-
import prettierEsTreePlugin from "prettier/plugins/estree";
|
|
4
|
-
import prettierTsPlugin from "prettier/plugins/typescript";
|
|
3
|
+
import * as prettierEsTreePlugin from "prettier/plugins/estree";
|
|
4
|
+
import * as prettierTsPlugin from "prettier/plugins/typescript";
|
|
5
5
|
import { format } from "prettier/standalone";
|
|
6
6
|
import { IValidation } from "typia";
|
|
7
7
|
|