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

starhs-models

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

starhs-models - npm Package Compare versions

Comparing version 4.3.0 to 4.4.0

dist/link.js

12

dist/index.js

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

});
exports.ProfileType = exports.Profile = exports.StaRHsStatusType = exports.StaRHsStatus = exports.StaRHType = exports.StaRH = exports.ModelType = exports.Model = undefined;
exports.LinkType = exports.Link = exports.ListType = exports.List = exports.ProfileType = exports.Profile = exports.StaRHsStatusType = exports.StaRHsStatus = exports.StaRHType = exports.StaRH = exports.ModelType = exports.Model = undefined;

@@ -17,2 +17,6 @@ var _starh = require('./starh');

var _list = require('./list');
var _link = require('./link');
exports.Model = _model.Model;

@@ -25,2 +29,6 @@ exports.ModelType = _model.ModelType;

exports.Profile = _profile.Profile;
exports.ProfileType = _profile.ProfileType;
exports.ProfileType = _profile.ProfileType;
exports.List = _list.List;
exports.ListType = _list.ListType;
exports.Link = _link.Link;
exports.LinkType = _link.LinkType;

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

});
exports.ModelType = exports.Model = undefined;
exports.ModelType = exports.ModelJSONType = exports.Model = undefined;

@@ -90,2 +90,3 @@ 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; }; }();

value: function fromJSON(data) {
ModelJSONType(data);
return new Model({

@@ -103,4 +104,10 @@ $context: new _uri2.default(data.$context),

var ModelJSONType = exports.ModelJSONType = (0, _tcomb.struct)({
$context: _tcomb.String,
$createdAt: (0, _tcomb.maybe)(_tcomb.String),
$updatedAt: (0, _tcomb.maybe)(_tcomb.String),
$deletedAt: (0, _tcomb.maybe)(_tcomb.String)
}, 'ModelJSONType');
var ModelType = exports.ModelType = (0, _tcomb.irreducible)('ModelType', function (x) {
return x instanceof Model;
});

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

});
exports.ProfileType = exports.Profile = undefined;
exports.ProfileType = exports.ProfileJSONType = exports.Profile = undefined;

@@ -101,2 +101,3 @@ 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; }; }();

value: function fromJSON(data) {
ProfileJSONType(data);
var email = data.email,

@@ -129,4 +130,10 @@ firstname = data.firstname,

var ProfileJSONType = exports.ProfileJSONType = (0, _tcomb.struct)({
email: _tcomb.String,
firstname: _tcomb.String,
lastname: _tcomb.String,
avatar: _tcomb.String
}, 'ProfileJSONType');
var ProfileType = exports.ProfileType = (0, _tcomb.irreducible)('ProfileType', function (x) {
return x instanceof Profile;
});

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

});
exports.PersonType = exports.StaRHType = exports.StaRH = undefined;
exports.PersonType = exports.StaRHType = exports.StaRHJSONType = exports.PersonJSONType = exports.StaRH = undefined;

@@ -94,2 +94,3 @@ 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; }; }();

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

@@ -123,2 +124,12 @@ from: {

var PersonJSONType = exports.PersonJSONType = (0, _tcomb.struct)({
name: _tcomb.String,
avatar: (0, _tcomb.maybe)(_tcomb.String)
}, 'PersonJSONType');
var StaRHJSONType = exports.StaRHJSONType = (0, _tcomb.struct)({
from: PersonJSONType,
to: PersonJSONType,
amount: _tcomb.Number,
message: _tcomb.String
}, 'StaRHJSONType');
var StaRHType = exports.StaRHType = (0, _tcomb.irreducible)('StaRHType', function (x) {

@@ -125,0 +136,0 @@ return x instanceof StaRH;

2

package.json
{
"name": "starhs-models",
"version": "4.3.0",
"version": "4.4.0",
"description": "Shared models for the staRHs API",

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

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