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

@balena/sbvr-types

Package Overview
Dependencies
Maintainers
3
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/sbvr-types - npm Package Compare versions

Comparing version 5.2.0 to 6.0.0-build-otaviojacobi-change-contents-for-snake-case-aaa12269901e364533cf2aa45a958948ce0339de-1

5

CHANGELOG.md

@@ -7,2 +7,7 @@ # Change Log

# v6.0.0
## (2023-08-08)
* Change contents to snake_case [Otávio Jacobi]
# v5.2.0

@@ -9,0 +14,0 @@ ## (2023-08-08)

4

out/types/web-resource.d.ts

@@ -5,4 +5,4 @@ import type { CastNode, ExtractJSONPathAsTextNode, ReferencedFieldNode } from '@balena/abstract-sql-compiler';

href: string;
contentType?: string;
contentDisposition?: string;
content_type?: string;
content_disposition?: string;
size?: number;

@@ -9,0 +9,0 @@ };

@@ -15,4 +15,4 @@ "use strict";

<Property Name="href" Nullable="false" Type="Edm.String"/>\
<Property Name="contentType" Nullable="true" Type="Edm.String"/>\
<Property Name="contentDisposition" Nullable="true" Type="Edm.String"/>\
<Property Name="content_type" Nullable="true" Type="Edm.String"/>\
<Property Name="content_disposition" Nullable="true" Type="Edm.String"/>\
<Property Name="size" Nullable="true" Type="Edm.Int64"/>\

@@ -37,3 +37,3 @@ </ComplexType>`,

referencedField,
['TextArray', ['EmbeddedText', 'contentType']],
['TextArray', ['EmbeddedText', 'content_type']],
],

@@ -43,3 +43,3 @@ 'Content Disposition': (referencedField) => [

referencedField,
['TextArray', ['EmbeddedText', 'contentDisposition']],
['TextArray', ['EmbeddedText', 'content_disposition']],
],

@@ -79,4 +79,4 @@ Size: (referencedField) => [

href: refData.href,
contentType: refData.contentType,
contentDisposition: refData.contentDisposition,
content_type: refData.content_type,
content_disposition: refData.content_disposition,
size: refData.size,

@@ -102,8 +102,8 @@ };

}
if (value.contentType != null && typeof value.contentType !== 'string') {
throw new Error('contentType must be a string or undefined');
if (value.content_type != null && typeof value.content_type !== 'string') {
throw new Error('content_type must be a string or undefined');
}
if (value.contentDisposition != null &&
typeof value.contentDisposition !== 'string') {
throw new Error('contentDisposition must be a string or undefined');
if (value.content_disposition != null &&
typeof value.content_disposition !== 'string') {
throw new Error('content_disposition must be a string or undefined');
}

@@ -110,0 +110,0 @@ if (value.size != null && !Number.isInteger(value.size)) {

{
"name": "@balena/sbvr-types",
"version": "5.2.0",
"version": "6.0.0-build-otaviojacobi-change-contents-for-snake-case-aaa12269901e364533cf2aa45a958948ce0339de-1",
"description": "SBVR type definitions.",

@@ -58,4 +58,4 @@ "main": "out",

"versionist": {
"publishedAt": "2023-08-08T20:56:02.926Z"
"publishedAt": "2023-08-08T21:37:05.368Z"
}
}

@@ -11,4 +11,4 @@ import * as TypeUtils from '../type-utils';

href: string;
contentType?: string;
contentDisposition?: string;
content_type?: string;
content_disposition?: string;
size?: number;

@@ -27,4 +27,4 @@ };

<Property Name="href" Nullable="false" Type="Edm.String"/>\
<Property Name="contentType" Nullable="true" Type="Edm.String"/>\
<Property Name="contentDisposition" Nullable="true" Type="Edm.String"/>\
<Property Name="content_type" Nullable="true" Type="Edm.String"/>\
<Property Name="content_disposition" Nullable="true" Type="Edm.String"/>\
<Property Name="size" Nullable="true" Type="Edm.Int64"/>\

@@ -54,3 +54,3 @@ </ComplexType>`,

referencedField,
['TextArray', ['EmbeddedText', 'contentType']],
['TextArray', ['EmbeddedText', 'content_type']],
],

@@ -62,3 +62,3 @@ 'Content Disposition': (

referencedField,
['TextArray', ['EmbeddedText', 'contentDisposition']],
['TextArray', ['EmbeddedText', 'content_disposition']],
],

@@ -104,4 +104,4 @@ Size: (referencedField: ReferencedFieldNode): CastNode => [

href: refData.href,
contentType: refData.contentType,
contentDisposition: refData.contentDisposition,
content_type: refData.content_type,
content_disposition: refData.content_disposition,
size: refData.size,

@@ -134,10 +134,10 @@ };

}
if (value.contentType != null && typeof value.contentType !== 'string') {
throw new Error('contentType must be a string or undefined');
if (value.content_type != null && typeof value.content_type !== 'string') {
throw new Error('content_type must be a string or undefined');
}
if (
value.contentDisposition != null &&
typeof value.contentDisposition !== 'string'
value.content_disposition != null &&
typeof value.content_disposition !== 'string'
) {
throw new Error('contentDisposition must be a string or undefined');
throw new Error('content_disposition must be a string or undefined');
}

@@ -144,0 +144,0 @@ if (value.size != null && !Number.isInteger(value.size)) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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