Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apibuilder-js

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apibuilder-js - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

dist/type/definition/ApiBuilderUnion.d.ts

@@ -31,3 +31,3 @@ import { ApiBuilderAttributeConfig } from './ApiBuilderAttribute';

readonly plural: string;
readonly discriminator: string | undefined;
readonly discriminator: string;
readonly description: string | undefined;

@@ -34,0 +34,0 @@ readonly deprecation: ApiBuilderDeprecationConfig | undefined;

@@ -73,3 +73,3 @@ "use strict";

get: function () {
return this.config.discriminator;
return this.config.discriminator || 'discriminator';
},

@@ -76,0 +76,0 @@ enumerable: true,

@@ -25,2 +25,3 @@ import { ApiBuilderAttributeConfig } from './ApiBuilderAttribute';

readonly type: import("./ApiBuilderType").ApiBuilderType;
readonly typeName: string;
readonly description: string | undefined;

@@ -27,0 +28,0 @@ readonly deprecation: ApiBuilderDeprecationConfig | undefined;

@@ -20,2 +20,9 @@ "use strict";

});
Object.defineProperty(ApiBuilderUnionType.prototype, "typeName", {
get: function () {
return this.config.type;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ApiBuilderUnionType.prototype, "description", {

@@ -22,0 +29,0 @@ get: function () {

{
"name": "apibuilder-js",
"version": "0.0.3",
"version": "0.0.4",
"description": "A reference implementation of API Builder for JavaScript",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -85,3 +85,3 @@ import { map } from 'lodash';

get discriminator() {
return this.config.discriminator;
return this.config.discriminator || 'discriminator';
}

@@ -88,0 +88,0 @@

@@ -36,2 +36,6 @@ import { ApiBuilderAttributeConfig } from './ApiBuilderAttribute';

get typeName() {
return this.config.type;
}
get description() {

@@ -38,0 +42,0 @@ return this.config.description;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc