Socket
Socket
Sign inDemoInstall

rheactor-models

Package Overview
Dependencies
4
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.1.0

4

dist/aggregate.js

@@ -89,3 +89,3 @@ 'use strict';

$version: newVersion || this.$version + 1,
$updatedAt: updatedAt || new Date().toISOString()
$updatedAt: (updatedAt || new Date()).toISOString()
}));

@@ -107,3 +107,3 @@ }

$deleted: true,
$deletedAt: deletedAt || new Date().toISOString()
$deletedAt: (deletedAt || new Date()).toISOString()
}));

@@ -110,0 +110,0 @@ }

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

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
var _tcomb = require('tcomb');

@@ -15,7 +19,15 @@

var _model = require('./model');
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var $context = new _rheactorValueObjects.URIValue('https://github.com/ResourcefulHumans/rheactor-models#Status');
var Status = exports.Status = function () {
var Status = exports.Status = function (_Model) {
_inherits(Status, _Model);
/**

@@ -29,9 +41,11 @@ * @param {String} status

var _this = _possibleConstructorReturn(this, (Status.__proto__ || Object.getPrototypeOf(Status)).call(this, { $context: $context }));
(0, _tcomb.String)(status);
(0, _tcomb.Date)(time);
(0, _tcomb.String)(version);
this.status = status;
this.time = time;
this.version = version;
this.$context = this.constructor.$context;
_this.status = status;
_this.time = time;
_this.version = version;
return _this;
}

@@ -47,8 +61,7 @@

value: function toJSON() {
return {
return _extends(_get(Status.prototype.__proto__ || Object.getPrototypeOf(Status.prototype), 'toJSON', this).call(this), {
status: this.status,
time: this.time.toISOString(),
version: this.version,
$context: this.$context.toString()
};
version: this.version
});
}

@@ -97,3 +110,3 @@

return Status;
}();
}(_model.Model);

@@ -100,0 +113,0 @@ var StatusJSONType = exports.StatusJSONType = (0, _tcomb.struct)({

{
"name": "rheactor-models",
"description": "A collection of models",
"version": "3.0.1",
"version": "3.1.0",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc