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

@stencila/schema

Package Overview
Dependencies
Maintainers
2
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stencila/schema - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

dist/OperatingSystem.d.ts

1

dist/CreativeWork.d.ts

@@ -16,2 +16,3 @@ import { Date, Number, Text, URL } from './dataTypes';

version: Number | Text;
keywords: Text;
}

@@ -33,2 +33,3 @@ "use strict";

this.version = '';
this.keywords = '';
}

@@ -64,2 +65,6 @@ };

], CreativeWork.prototype, "version", void 0);
__decorate([
decorators_1.property('schema:keywords'),
__metadata("design:type", String)
], CreativeWork.prototype, "keywords", void 0);
CreativeWork = __decorate([

@@ -66,0 +71,0 @@ decorators_1.type('schema:CreativeWork')

@@ -6,2 +6,3 @@ export { Boolean, Date, DateTime, Number, Float, Integer, Text, URL, Time } from './dataTypes';

export { default as Organization } from './Organization';
export { default as OperatingSystem } from './OperatingSystem';
export { default as Person } from './Person';

@@ -8,0 +9,0 @@ export { default as SoftwareApplication } from './SoftwareApplication';

@@ -11,2 +11,4 @@ "use strict";

exports.Organization = Organization_1.default;
var OperatingSystem_1 = require("./OperatingSystem");
exports.OperatingSystem = OperatingSystem_1.default;
var Person_1 = require("./Person");

@@ -13,0 +15,0 @@ exports.Person = Person_1.default;

import CreativeWork from './CreativeWork';
import SoftwarePackage from './SoftwarePackage';
import ComputerLanguage from './ComputerLanguage';
import OperatingSystem from './OperatingSystem';
import { Text } from './dataTypes';
export default class SoftwareApplication extends CreativeWork {

@@ -10,2 +13,8 @@ /**

softwareRequirements: Array<SoftwarePackage | SoftwareApplication>;
applicationCategories: Array<Text | URL>;
applicationSubCategories: Array<Text | URL>;
operatingSystems: Array<OperatingSystem>;
programmingLanguages: Array<ComputerLanguage>;
runtimePlatform: Text;
codeRepository: Text | URL;
}

@@ -26,8 +26,38 @@ "use strict";

this.softwareRequirements = [];
this.applicationCategories = [];
this.applicationSubCategories = [];
this.operatingSystems = [];
this.programmingLanguages = [];
this.runtimePlatform = '';
this.codeRepository = '';
}
};
__decorate([
decorators_1.property('schema:softwareRequirements'),
decorators_1.property('schema:softwareRequirements', 'list'),
__metadata("design:type", Array)
], SoftwareApplication.prototype, "softwareRequirements", void 0);
__decorate([
decorators_1.property('schema:applicationCategory', 'list'),
__metadata("design:type", Array)
], SoftwareApplication.prototype, "applicationCategories", void 0);
__decorate([
decorators_1.property('schema:applicationSubCategory', 'list'),
__metadata("design:type", Array)
], SoftwareApplication.prototype, "applicationSubCategories", void 0);
__decorate([
decorators_1.property('schema:operatingSystem', 'list'),
__metadata("design:type", Array)
], SoftwareApplication.prototype, "operatingSystems", void 0);
__decorate([
decorators_1.property('schema:programmingLanguage', 'list'),
__metadata("design:type", Array)
], SoftwareApplication.prototype, "programmingLanguages", void 0);
__decorate([
decorators_1.property('schema:runtimePlatform'),
__metadata("design:type", String)
], SoftwareApplication.prototype, "runtimePlatform", void 0);
__decorate([
decorators_1.property('schema:codeRepository'),
__metadata("design:type", Object)
], SoftwareApplication.prototype, "codeRepository", void 0);
SoftwareApplication = __decorate([

@@ -34,0 +64,0 @@ decorators_1.type('schema:SoftwareApplication')

2

package.json
{
"name": "@stencila/schema",
"version": "0.2.1",
"version": "0.2.2",
"description": "Stencila type schema and other specifications",

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

@@ -33,2 +33,5 @@ import { Date, Number, Text, URL } from './dataTypes'

version: Number | Text = ''
@property('schema:keywords')
keywords: Text = ''
}

@@ -7,2 +7,3 @@ export { Boolean, Date, DateTime, Number, Float, Integer, Text, URL, Time } from './dataTypes'

export { default as Organization } from './Organization'
export { default as OperatingSystem } from './OperatingSystem'
export { default as Person } from './Person'

@@ -9,0 +10,0 @@ export { default as SoftwareApplication } from './SoftwareApplication'

import { type, property } from './decorators'
import CreativeWork from './CreativeWork'
import SoftwarePackage from './SoftwarePackage'
import ComputerLanguage from './ComputerLanguage'
import OperatingSystem from './OperatingSystem'
import { Text } from './dataTypes'

@@ -13,5 +16,22 @@ @type('schema:SoftwareApplication')

*/
@property('schema:softwareRequirements')
@property('schema:softwareRequirements', 'list')
softwareRequirements: Array<SoftwarePackage | SoftwareApplication> = []
@property('schema:applicationCategory', 'list')
applicationCategories: Array<Text | URL> = []
@property('schema:applicationSubCategory', 'list')
applicationSubCategories: Array<Text | URL> = []
@property('schema:operatingSystem', 'list')
operatingSystems: Array<OperatingSystem> = []
@property('schema:programmingLanguage', 'list')
programmingLanguages: Array<ComputerLanguage> = []
@property('schema:runtimePlatform')
runtimePlatform: Text = ''
@property('schema:codeRepository')
codeRepository: Text | URL = ''
}
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