quicktype-core 23.0.133 → 23.0.135
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/language/Scala3.d.ts +0 -7
- package/dist/language/Scala3.js +1 -51
- package/package.json +1 -1
|
@@ -47,13 +47,6 @@ export declare class UpickleRenderer extends Scala3Renderer {
|
|
|
47
47
|
protected emitClassDefinitionMethods(): void;
|
|
48
48
|
protected emitHeader(): void;
|
|
49
49
|
}
|
|
50
|
-
export declare class Smithy4sRenderer extends Scala3Renderer {
|
|
51
|
-
protected emitHeader(): void;
|
|
52
|
-
protected emitTopLevelArray(t: ArrayType, name: Name): void;
|
|
53
|
-
protected emitTopLevelMap(t: MapType, name: Name): void;
|
|
54
|
-
protected emitEmptyClassDefinition(c: ClassType, className: Name): void;
|
|
55
|
-
protected emitEnumDefinition(e: EnumType, enumName: Name): void;
|
|
56
|
-
}
|
|
57
50
|
export declare class CirceRenderer extends Scala3Renderer {
|
|
58
51
|
seenUnionTypes: Array<string>;
|
|
59
52
|
protected circeEncoderForType(t: Type, _?: boolean, noOptional?: boolean, paramName?: string): Sourcelike;
|
package/dist/language/Scala3.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Scala3TargetLanguage = exports.CirceRenderer = exports.
|
|
3
|
+
exports.Scala3TargetLanguage = exports.CirceRenderer = exports.UpickleRenderer = exports.Scala3Renderer = exports.scala3Options = exports.Framework = void 0;
|
|
4
4
|
const Annotation_1 = require("../Annotation");
|
|
5
5
|
const ConvenienceRenderer_1 = require("../ConvenienceRenderer");
|
|
6
6
|
const Naming_1 = require("../Naming");
|
|
@@ -376,56 +376,6 @@ class UpickleRenderer extends Scala3Renderer {
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
exports.UpickleRenderer = UpickleRenderer;
|
|
379
|
-
class Smithy4sRenderer extends Scala3Renderer {
|
|
380
|
-
emitHeader() {
|
|
381
|
-
if (this.leadingComments !== undefined) {
|
|
382
|
-
this.emitComments(this.leadingComments);
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
this.emitUsageHeader();
|
|
386
|
-
}
|
|
387
|
-
this.ensureBlankLine();
|
|
388
|
-
this.emitLine("namespace ", this._scalaOptions.packageName);
|
|
389
|
-
this.ensureBlankLine();
|
|
390
|
-
}
|
|
391
|
-
emitTopLevelArray(t, name) {
|
|
392
|
-
const elementType = this.scalaType(t.items);
|
|
393
|
-
this.emitLine(["list ", name, " { member : ", elementType, "}"]);
|
|
394
|
-
}
|
|
395
|
-
emitTopLevelMap(t, name) {
|
|
396
|
-
const elementType = this.scalaType(t.values);
|
|
397
|
-
this.emitLine(["map ", name, " { map[ key : String , value : ", elementType, "}"]);
|
|
398
|
-
}
|
|
399
|
-
emitEmptyClassDefinition(c, className) {
|
|
400
|
-
this.emitDescription(this.descriptionForType(c));
|
|
401
|
-
this.emitLine("structure ", className, "{}");
|
|
402
|
-
}
|
|
403
|
-
emitEnumDefinition(e, enumName) {
|
|
404
|
-
this.emitDescription(this.descriptionForType(e));
|
|
405
|
-
this.ensureBlankLine();
|
|
406
|
-
this.emitItem(["enum ", enumName, " { "]);
|
|
407
|
-
let count = e.cases.size;
|
|
408
|
-
this.forEachEnumCase(e, "none", (name, jsonName) => {
|
|
409
|
-
// if (!(jsonName == "")) {
|
|
410
|
-
/* const backticks =
|
|
411
|
-
shouldAddBacktick(jsonName) ||
|
|
412
|
-
jsonName.includes(" ") ||
|
|
413
|
-
!isNaN(parseInt(jsonName.charAt(0)))
|
|
414
|
-
if (backticks) {this.emitItem("`")} else */
|
|
415
|
-
this.emitLine();
|
|
416
|
-
this.emitItem([name, ' = "', jsonName, '"']);
|
|
417
|
-
// if (backticks) {this.emitItem("`")}
|
|
418
|
-
if (--count > 0)
|
|
419
|
-
this.emitItem([","]);
|
|
420
|
-
//} else {
|
|
421
|
-
//--count
|
|
422
|
-
//}
|
|
423
|
-
});
|
|
424
|
-
this.ensureBlankLine();
|
|
425
|
-
this.emitItem(["}"]);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
exports.Smithy4sRenderer = Smithy4sRenderer;
|
|
429
379
|
class CirceRenderer extends Scala3Renderer {
|
|
430
380
|
constructor() {
|
|
431
381
|
super(...arguments);
|