@bufbuild/protoplugin 1.1.1 → 1.2.1
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.
|
@@ -15,11 +15,6 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.findCustomEnumOption = exports.findCustomMessageOption = exports.findCustomScalarOption = exports.literalString = exports.makeJsDoc = exports.getFieldTyping = exports.getFieldIntrinsicDefaultValue = exports.getFieldExplicitDefaultValue = exports.createJsDocBlock = exports.reifyWkt = exports.localName = void 0;
|
|
17
17
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
18
|
-
var target_js_1 = require("./target.js");
|
|
19
|
-
var schema_js_1 = require("./schema.js");
|
|
20
|
-
var runtime_imports_js_1 = require("./runtime-imports.js");
|
|
21
|
-
var generated_file_js_1 = require("./generated-file.js");
|
|
22
|
-
var import_symbol_js_1 = require("./import-symbol.js");
|
|
23
18
|
exports.localName = protobuf_1.codegenInfo.localName, exports.reifyWkt = protobuf_1.codegenInfo.reifyWkt;
|
|
24
19
|
var gencommon_js_1 = require("./gencommon.js");
|
|
25
20
|
Object.defineProperty(exports, "createJsDocBlock", { enumerable: true, get: function () { return gencommon_js_1.createJsDocBlock; } });
|
package/dist/cjs/index.js
CHANGED
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.createEcmaScriptPlugin = exports.runNodeJs = void 0;
|
|
17
|
-
var plugin_js_1 = require("./plugin.js");
|
|
18
|
-
var schema_js_1 = require("./ecmascript/schema.js");
|
|
19
17
|
var run_node_js_1 = require("./run-node.js");
|
|
20
18
|
Object.defineProperty(exports, "runNodeJs", { enumerable: true, get: function () { return run_node_js_1.runNodeJs; } });
|
|
21
19
|
var create_es_plugin_js_1 = require("./create-es-plugin.js");
|
|
@@ -12,11 +12,6 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { codegenInfo } from "@bufbuild/protobuf";
|
|
15
|
-
export {} from "./target.js";
|
|
16
|
-
export {} from "./schema.js";
|
|
17
|
-
export {} from "./runtime-imports.js";
|
|
18
|
-
export {} from "./generated-file.js";
|
|
19
|
-
export {} from "./import-symbol.js";
|
|
20
15
|
export const { localName, reifyWkt } = codegenInfo;
|
|
21
16
|
export { createJsDocBlock, getFieldExplicitDefaultValue, getFieldIntrinsicDefaultValue, getFieldTyping, makeJsDoc, literalString, } from "./gencommon.js";
|
|
22
17
|
export { findCustomScalarOption, findCustomMessageOption, findCustomEnumOption, } from "./custom-options.js";
|
package/dist/esm/index.js
CHANGED
|
@@ -11,7 +11,5 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
export {} from "./plugin.js";
|
|
15
|
-
export {} from "./ecmascript/schema.js";
|
|
16
14
|
export { runNodeJs } from "./run-node.js";
|
|
17
15
|
export { createEcmaScriptPlugin } from "./create-es-plugin.js";
|
|
@@ -24,6 +24,10 @@ export interface GeneratedFile {
|
|
|
24
24
|
*
|
|
25
25
|
* The preamble is always placed at the very top of the generated file,
|
|
26
26
|
* above import statements.
|
|
27
|
+
*
|
|
28
|
+
* A file with a preamble but no other content is still considered empty,
|
|
29
|
+
* and will not be generated unless the plugin option keep_empty_files=true
|
|
30
|
+
* is set.
|
|
27
31
|
*/
|
|
28
32
|
preamble(file: DescFile): void;
|
|
29
33
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bufbuild/protoplugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"license": "(Apache-2.0 AND BSD-3-Clause)",
|
|
5
5
|
"description": "Helps to create your own Protocol Buffers code generators.",
|
|
6
6
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@bufbuild/protobuf": "1.
|
|
38
|
+
"@bufbuild/protobuf": "1.2.1",
|
|
39
39
|
"@typescript/vfs": "^1.4.0",
|
|
40
40
|
"typescript": "4.5.2"
|
|
41
41
|
},
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"dist/**"
|
|
44
44
|
],
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/lz-string": "^1.
|
|
46
|
+
"@types/lz-string": "^1.5.0"
|
|
47
47
|
}
|
|
48
48
|
}
|