Socket
Socket
Sign inDemoInstall

@ausgaben/models

Package Overview
Dependencies
4
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

25

dist/checking-account.js

@@ -34,4 +34,4 @@ 'use strict';

var CheckingAccount = exports.CheckingAccount = function (_Aggregate) {
_inherits(CheckingAccount, _Aggregate);
var CheckingAccount = exports.CheckingAccount = function (_ImmutableAggregate) {
_inherits(CheckingAccount, _ImmutableAggregate);

@@ -48,3 +48,3 @@ function CheckingAccount(fields) {

_this.identifier = NonEmptyStringType(identifier, ['CheckingAccount', 'identifier:AggregateId']);
_this.identifier = NonEmptyStringType(identifier, ['CheckingAccount', 'identifier:ImmutableAggregateId']);
_this.name = NonEmptyStringType(name, ['CheckingAccount', 'name:String']);

@@ -83,15 +83,2 @@ _this.monthly = (0, _tcomb.Boolean)(monthly, ['CheckingAccount', 'monthly:Boolean']);

}, {
key: 'is',
/**
* Returns true if x is of type CheckingAccount
*
* @param {object} x
* @returns {boolean}
*/
value: function is(x) {
return x instanceof CheckingAccount || _models.Aggregate.is(x) && '$context' in x && _valueObjects.URIValue.is(x.$context) && $context.equals(x.$context);
}
}, {
key: '$context',

@@ -104,3 +91,3 @@ get: function get() {

return CheckingAccount;
}(_models.Aggregate);
}(_models.ImmutableAggregate);

@@ -119,2 +106,4 @@ var CheckingAccountJSONType = exports.CheckingAccountJSONType = (0, _tcomb.struct)({

}, 'CheckingAccountJSONType');
var CheckingAccountType = exports.CheckingAccountType = (0, _tcomb.irreducible)('CheckingAccountType', CheckingAccount.is);
var CheckingAccountType = exports.CheckingAccountType = (0, _tcomb.irreducible)('CheckingAccountType', function (x) {
return x instanceof CheckingAccount;
});

@@ -35,4 +35,4 @@ 'use strict';

var Periodical = exports.Periodical = function (_Aggregate) {
_inherits(Periodical, _Aggregate);
var Periodical = exports.Periodical = function (_ImmutableAggregate) {
_inherits(Periodical, _ImmutableAggregate);

@@ -133,16 +133,3 @@ function Periodical(fields) {

}
/**
* Returns true if x is of type Periodical
*
* @param {object} x
* @returns {boolean}
*/
}, {
key: 'is',
value: function is(x) {
return x instanceof Periodical || _models.Aggregate.is(x) && '$context' in x && _valueObjects.URIValue.is(x.$context) && $context.equals(x.$context);
}
}, {
key: '$context',

@@ -155,3 +142,3 @@ get: function get() {

return Periodical;
}(_models.Aggregate);
}(_models.ImmutableAggregate);

@@ -184,2 +171,4 @@ var PeriodicalJSONType = exports.PeriodicalJSONType = (0, _tcomb.struct)({

}, 'PeriodicalJSONType');
var PeriodicalType = exports.PeriodicalType = (0, _tcomb.irreducible)('PeriodicalType', Periodical.is);
var PeriodicalType = exports.PeriodicalType = (0, _tcomb.irreducible)('PeriodicalType', function (x) {
return x instanceof Periodical;
});

@@ -74,16 +74,3 @@ 'use strict';

}
/**
* Returns true if x is of type Report
*
* @param {object} x
* @returns {boolean}
*/
}, {
key: 'is',
value: function is(x) {
return x instanceof Report || '$context' in x && _valueObjects.URIValue.is(x.$context) && $context.equals(x.$context);
}
}, {
key: '$context',

@@ -105,2 +92,4 @@ get: function get() {

}, 'ReportJSONType');
var ReportType = exports.ReportType = (0, _tcomb.irreducible)('ReportType', Report.is);
var ReportType = exports.ReportType = (0, _tcomb.irreducible)('ReportType', function (x) {
return x instanceof Report;
});

@@ -35,4 +35,4 @@ 'use strict';

var Spending = exports.Spending = function (_Aggregate) {
_inherits(Spending, _Aggregate);
var Spending = exports.Spending = function (_ImmutableAggregate) {
_inherits(Spending, _ImmutableAggregate);

@@ -85,16 +85,3 @@ function Spending(fields) {

}
/**
* Returns true if x is of type Spending
*
* @param {object} x
* @returns {boolean}
*/
}, {
key: 'is',
value: function is(x) {
return x instanceof Spending || _models.Aggregate.is(x) && '$context' in x && _valueObjects.URIValue.is(x.$context) && $context.equals(x.$context);
}
}, {
key: '$context',

@@ -107,3 +94,3 @@ get: function get() {

return Spending;
}(_models.Aggregate);
}(_models.ImmutableAggregate);

@@ -124,2 +111,4 @@ var SpendingJSONType = exports.SpendingJSONType = (0, _tcomb.struct)({

}, 'SpendingJSONType');
var SpendingType = exports.SpendingType = (0, _tcomb.irreducible)('SpendingType', Spending.is);
var SpendingType = exports.SpendingType = (0, _tcomb.irreducible)('SpendingType', function (x) {
return x instanceof Spending;
});

@@ -18,4 +18,2 @@ 'use strict';

var _models = require('@rheactorjs/models');
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -27,2 +25,5 @@

var _require = require('@rheactorjs/models'),
Model = _require.Model;
var $context = new _valueObjects.URIValue('https://github.com/ausgaben/ausgaben-rheactor/wiki/JsonLD#Title');

@@ -66,15 +67,2 @@ var NonEmptyStringType = (0, _tcomb.refinement)(_tcomb.String, function (s) {

}, {
key: 'is',
/**
* Returns true if x is of type Title
*
* @param {object} x
* @returns {boolean}
*/
value: function is(x) {
return x instanceof Title || '$context' in x && _valueObjects.URIValue.is(x.$context) && $context.equals(x.$context);
}
}, {
key: '$context',

@@ -87,3 +75,3 @@ get: function get() {

return Title;
}(_models.Model);
}(Model);

@@ -93,2 +81,4 @@ var TitleJSONType = exports.TitleJSONType = (0, _tcomb.struct)({

}, 'TitleJSONType');
var TitleType = exports.TitleType = (0, _tcomb.irreducible)('TitleType', Title.is);
var TitleType = exports.TitleType = (0, _tcomb.irreducible)('TitleType', function (x) {
return x instanceof Title;
});

@@ -1,1 +0,49 @@

{"name":"@ausgaben/models","description":"A collection of models","version":"2.0.0","main":"dist/index.js","scripts":{"lint":"standard","precommit":"npm run lint && npm test","commitmsg":"validate-commit-msg","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/ausgaben/models.git"},"author":"Markus Tacker <m@coderbyheart.com>","license":"MIT","bugs":{"url":"https://github.com/ausgaben/models/issues"},"homepage":"https://github.com/ausgaben/models#readme","dependencies":{"@rheactorjs/errors":"1.x","@rheactorjs/models":"^2.0.1","@rheactorjs/value-objects":"1.x","tcomb":"^3.2.16"},"devDependencies":{"babel-cli":"^6.23.0","babel-plugin-transform-object-assign":"^6.22.0","babel-preset-env":"^1.2.1","babel-preset-es2015":"^6.22.0","babel-register":"^6.23.0","husky":"^0.14.1","semantic-release":"^8.0.3","standard":"^10.0.2","validate-commit-msg":"^2.11.2"},"files":["dist","README.md"],"engines":{"node":">=6.10.2"}}
{
"name": "@ausgaben/models",
"description": "A collection of models",
"version": "2.0.1",
"main": "dist/index.js",
"scripts": {
"lint": "standard",
"precommit": "npm run lint && npm test",
"commitmsg": "validate-commit-msg",
"semantic-release": "semantic-release"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/ausgaben/models.git"
},
"author": "Markus Tacker <m@coderbyheart.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/ausgaben/models/issues"
},
"homepage": "https://github.com/ausgaben/models#readme",
"dependencies": {
"@rheactorjs/errors": "^1.0.2",
"@rheactorjs/models": "^3.0.0",
"@rheactorjs/value-objects": "^1.0.4",
"tcomb": "^3.2.24"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-transform-object-assign": "^6.22.0",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "^6.22.0",
"babel-register": "^6.26.0",
"husky": "^0.14.3",
"semantic-release": "^11.0.2",
"standard": "^10.0.2",
"validate-commit-msg": "^2.11.2"
},
"files": [
"dist",
"README.md"
],
"engines": {
"node": ">=6.10.2"
}
}

@@ -8,5 +8,5 @@ # models

[![semantic-release](https://img.shields.io/badge/semver-semantic%20release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Test Coverage](https://codeclimate.com/github/ausgaben/models/badges/coverage.svg)](https://codeclimate.com/github/ausgaben/models/coverage)
[![Code Climate](https://codeclimate.com/github/ausgaben/models/badges/gpa.svg)](https://codeclimate.com/github/ausgaben/models)
[![Maintainability](https://api.codeclimate.com/v1/badges/ffa20a1616ec3d377907/maintainability)](https://codeclimate.com/github/ausgaben/models/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/ffa20a1616ec3d377907/test_coverage)](https://codeclimate.com/github/ausgaben/models/test_coverage)
A collection of models.
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc