Socket
Socket
Sign inDemoInstall

starhs-models

Package Overview
Dependencies
5
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.0 to 6.0.1

10

dist/profile.js

@@ -8,2 +8,4 @@ '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; }; }();

@@ -19,4 +21,2 @@

var _lodash = require('lodash');
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -44,3 +44,3 @@

var _this = _possibleConstructorReturn(this, (Profile.__proto__ || Object.getPrototypeOf(Profile)).call(this, (0, _lodash.merge)(fields, { $context: $context })));
var _this = _possibleConstructorReturn(this, (Profile.__proto__ || Object.getPrototypeOf(Profile)).call(this, _extends(fields, { $context: $context })));

@@ -71,3 +71,3 @@ (0, _tcomb.String)(firstname);

value: function toJSON() {
return (0, _lodash.merge)(_get(Profile.prototype.__proto__ || Object.getPrototypeOf(Profile.prototype), 'toJSON', this).call(this), {
return _extends(_get(Profile.prototype.__proto__ || Object.getPrototypeOf(Profile.prototype), 'toJSON', this).call(this), {
email: this.email.toString(),

@@ -102,3 +102,3 @@ firstname: this.firstname,

return new Profile((0, _lodash.merge)(_get(Profile.__proto__ || Object.getPrototypeOf(Profile), 'fromJSON', this).call(this, data), {
return new Profile(_extends(_get(Profile.__proto__ || Object.getPrototypeOf(Profile), 'fromJSON', this).call(this, data), {
email: new _rheactorValueObjects.EmailValue(email),

@@ -105,0 +105,0 @@ firstname: firstname,

@@ -8,2 +8,4 @@ '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; }; }();

@@ -19,4 +21,2 @@

var _lodash = require('lodash');
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -47,3 +47,3 @@

var _this = _possibleConstructorReturn(this, (StaRH.__proto__ || Object.getPrototypeOf(StaRH)).call(this, (0, _lodash.merge)(fields, { $context: $context })));
var _this = _possibleConstructorReturn(this, (StaRH.__proto__ || Object.getPrototypeOf(StaRH)).call(this, _extends(fields, { $context: $context })));

@@ -69,3 +69,3 @@ PersonType(from);

value: function toJSON() {
return (0, _lodash.merge)(_get(StaRH.prototype.__proto__ || Object.getPrototypeOf(StaRH.prototype), 'toJSON', this).call(this), {
return _extends(_get(StaRH.prototype.__proto__ || Object.getPrototypeOf(StaRH.prototype), 'toJSON', this).call(this), {
from: {

@@ -93,3 +93,3 @@ name: this.from.name,

StaRHJSONType(data);
return new StaRH((0, _lodash.merge)(_get(StaRH.__proto__ || Object.getPrototypeOf(StaRH), 'fromJSON', this).call(this, data), {
return new StaRH(_extends(_get(StaRH.__proto__ || Object.getPrototypeOf(StaRH), 'fromJSON', this).call(this, data), {
from: {

@@ -96,0 +96,0 @@ name: data.from.name,

@@ -8,2 +8,4 @@ '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; }; }();

@@ -19,4 +21,2 @@

var _lodash = require('lodash');
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -42,3 +42,3 @@

var _this = _possibleConstructorReturn(this, (StaRHsStatus.__proto__ || Object.getPrototypeOf(StaRHsStatus)).call(this, (0, _lodash.merge)(fields, { $context: $context })));
var _this = _possibleConstructorReturn(this, (StaRHsStatus.__proto__ || Object.getPrototypeOf(StaRHsStatus)).call(this, _extends(fields, { $context: $context })));

@@ -72,3 +72,3 @@ var cycleShared = fields.cycleShared,

value: function toJSON() {
return (0, _lodash.merge)(_get(StaRHsStatus.prototype.__proto__ || Object.getPrototypeOf(StaRHsStatus.prototype), 'toJSON', this).call(this), {
return _extends(_get(StaRHsStatus.prototype.__proto__ || Object.getPrototypeOf(StaRHsStatus.prototype), 'toJSON', this).call(this), {
cycleShared: this.cycleShared,

@@ -91,3 +91,3 @@ cycleReceived: this.cycleReceived,

StaRHsStatusJSONType(data);
return new StaRHsStatus((0, _lodash.merge)(_get(StaRHsStatus.__proto__ || Object.getPrototypeOf(StaRHsStatus), 'fromJSON', this).call(this, data), data));
return new StaRHsStatus(_extends(_get(StaRHsStatus.__proto__ || Object.getPrototypeOf(StaRHsStatus), 'fromJSON', this).call(this, data), data));
}

@@ -94,0 +94,0 @@

{
"name": "starhs-models",
"version": "6.0.0",
"version": "6.0.1",
"description": "Shared models for the staRHs API",

@@ -37,2 +37,3 @@ "main": "dist/index.js",

"babel-cli": "^6.18.0",
"babel-plugin-transform-object-assign": "^6.8.0",
"babel-preset-env": "^1.1.1",

@@ -39,0 +40,0 @@ "babel-preset-es2015": "^6.18.0",

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