New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rss/common

Package Overview
Dependencies
Maintainers
1
Versions
895
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rss/common - npm Package Compare versions

Comparing version 0.1.47 to 0.1.48

dist/constant/chemical/attachment-type.constant.js

1

dist/constant/assessment/assessment-status.constant.js

@@ -8,3 +8,4 @@ "use strict";

DRAFT: 'DRAFT',
EXPIRED: 'EXPIRED',
OWNER_REVIEW: 'OWNER_REVIEW'
};

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

EDIT_LOCATIONS: 'EDIT_LOCATIONS',
EXPIRED: 'EXPIRED',
READ: 'READ',

@@ -16,0 +17,0 @@ RECOMPLETE: 'RECOMPLETE',

10

dist/helper/assessment.helper.js

@@ -12,3 +12,3 @@ "use strict";

exports.isAssessmentFormComplete = isAssessmentFormComplete;
exports["default"] = void 0;
exports.default = void 0;

@@ -21,7 +21,7 @@ var _edgeEvent = _interopRequireDefault(require("../constant/relationship/edge-event.constant"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function hasCertifiedOrAcknowledged(events) {
return !!events.find(function (e) {
return [_edgeEvent["default"].ACKNOWLEDGED, _edgeEvent["default"].CERTIFIED].includes(e.event);
return [_edgeEvent.default.ACKNOWLEDGED, _edgeEvent.default.CERTIFIED].includes(e.event);
});

@@ -63,3 +63,3 @@ }

var hasLocations = _relationship["default"].hasAnyOfTypes(relationships, [_nodeType["default"].ROOM]);
var hasLocations = _relationship.default.hasAnyOfTypes(relationships, [_nodeType.default.ROOM]);

@@ -78,2 +78,2 @@ var incompleteSections = filterIncompleteSections(template, assessment);

};
exports["default"] = _default;
exports.default = _default;

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

this.notes = null;
this.expirationDate = null;
this.fillObject(opt);

@@ -55,2 +56,3 @@ }

this.notes = opt.notes || {};
this.expirationDate = opt.expirationDate ? new Date(opt.expirationDate) : null;
}

@@ -81,3 +83,3 @@ }, {

status: {
"enum": [Object.keys(ASSESSMENT_STATUS), null]
enum: [Object.keys(ASSESSMENT_STATUS), null]
},

@@ -107,2 +109,5 @@ campusCode: {

type: ['object']
},
expirationDate: {
type: ['object', 'null']
}

@@ -109,0 +114,0 @@ },

@@ -252,3 +252,3 @@ "use strict";

units: {
"enum": UNITS.map(function (unit) {
enum: UNITS.map(function (unit) {
return unit.value;

@@ -255,0 +255,0 @@ })

@@ -23,3 +23,3 @@ "use strict";

this.name = null;
this["class"] = null;
this.class = null;
this.key = null;

@@ -37,3 +37,3 @@

this.name = opt.name || null;
this["class"] = opt["class"] || null;
this.class = opt.class || null;
this.key = opt.key || null;

@@ -60,3 +60,3 @@ }

},
"class": {
class: {
type: ['string', 'null']

@@ -63,0 +63,0 @@ },

@@ -63,3 +63,3 @@ "use strict";

anyOf: [{
"enum": UNITS.map(function (unit) {
enum: UNITS.map(function (unit) {
return unit.value;

@@ -66,0 +66,0 @@ })

@@ -65,6 +65,6 @@ "use strict";

permission: {
"enum": ['OWNER', 'READ', 'WRITE']
enum: ['OWNER', 'READ', 'WRITE']
},
type: {
"enum": ['CAMPUS', 'GROUP', 'PERSON', 'TENANT', 'SYSTEM']
enum: ['CAMPUS', 'GROUP', 'PERSON', 'TENANT', 'SYSTEM']
}

@@ -71,0 +71,0 @@ },

@@ -63,3 +63,3 @@ "use strict";

role: {
"enum": roleEnums
enum: roleEnums
},

@@ -66,0 +66,0 @@ campusCode: {

@@ -104,3 +104,3 @@ "use strict";

type: {
"enum": Object.keys(LIBRARY_TYPE)
enum: Object.keys(LIBRARY_TYPE)
},

@@ -107,0 +107,0 @@ name: {

@@ -605,6 +605,6 @@ "use strict";

name: band.split(' Liquefied')[0],
"class": []
class: []
}, {
name: 'Liquefied Gas',
"class": []
class: []
}];

@@ -615,3 +615,3 @@

name: 'Cryogenic',
"class": []
class: []
}];

@@ -622,3 +622,3 @@

name: 'Flammable Gas',
"class": []
class: []
});

@@ -628,6 +628,6 @@ } else if (band.match('Oxidizing')) {

name: 'Oxidizing Gas',
"class": []
class: []
});
} else if (band.match('Inert')) {
cryogenic[0]["class"].push('Inert');
cryogenic[0].class.push('Inert');
}

@@ -640,3 +640,3 @@

name: 'Flammable Liquid',
"class": band.split(': ')[1].split(',').map(function (i) {
class: band.split(': ')[1].split(',').map(function (i) {
return i.trim();

@@ -649,3 +649,3 @@ })

name: 'Oxidizers',
"class": ["Class ".concat(band.split(': ')[1])]
class: ["Class ".concat(band.split(': ')[1])]
}];

@@ -656,3 +656,3 @@

name: band.split(': ')[0],
"class": [band.split(': ')[1]]
class: [band.split(': ')[1]]
}];

@@ -663,3 +663,3 @@

name: band,
"class": []
class: []
}];

@@ -666,0 +666,0 @@ }

@@ -13,3 +13,3 @@ "use strict";

var FileReference = require('./file-reference');
var FileReference = require('../procedure/file-reference');

@@ -16,0 +16,0 @@ var Card =

@@ -208,3 +208,3 @@ "use strict";

type: 'string',
"enum": Object.keys(DOCUMENT_STATUS)
enum: Object.keys(DOCUMENT_STATUS)
},

@@ -211,0 +211,0 @@ createdBy: {

@@ -80,2 +80,19 @@ "use strict";

}, {
key: "getLabel",
value: function getLabel() {
var _this$details = this.details,
partyType = _this$details.partyType,
partyId = _this$details.partyId,
partyName = _this$details.partyName,
memberId = _this$details.memberId,
memberName = _this$details.memberName;
return {
partyType: partyType,
partyId: partyId,
partyName: partyName,
memberId: memberId,
memberName: memberName
};
}
}, {
key: "validate",

@@ -82,0 +99,0 @@ value: function validate() {

@@ -119,3 +119,3 @@ "use strict";

type: 'string',
"enum": ['TABLE', 'VERTICAL']
enum: ['TABLE', 'VERTICAL']
}

@@ -122,0 +122,0 @@ }

@@ -58,3 +58,3 @@ "use strict";

type: 'string',
"enum": ['TEXT', 'DATE', 'NUMBER']
enum: ['TEXT', 'DATE', 'NUMBER']
}

@@ -61,0 +61,0 @@ }

@@ -77,3 +77,3 @@ "use strict";

type: 'string',
"enum": TEMPLATE_TYPES
enum: TEMPLATE_TYPES
}

@@ -80,0 +80,0 @@ },

@@ -94,3 +94,3 @@ "use strict";

type: 'string',
"enum": TEMPLATE_TYPES
enum: TEMPLATE_TYPES
}

@@ -100,3 +100,3 @@ },

type: 'string',
"enum": Object.keys(TEMPLATE_STATUS)
enum: Object.keys(TEMPLATE_STATUS)
},

@@ -103,0 +103,0 @@ maxExpirationDays: {

@@ -76,3 +76,3 @@ "use strict";

role: {
"enum": Object.keys(EDGE_ROLE)
enum: Object.keys(EDGE_ROLE)
},

@@ -79,0 +79,0 @@ isActive: {

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

type: {
"enum": Object.values(NODE_TYPE)
enum: Object.values(NODE_TYPE)
}

@@ -92,0 +92,0 @@ },

@@ -111,6 +111,6 @@ "use strict";

status: {
"enum": Object.keys(REMINDER_STATUS)
enum: Object.keys(REMINDER_STATUS)
},
type: {
"enum": Object.keys(REMINDER_TYPE)
enum: Object.keys(REMINDER_TYPE)
},

@@ -117,0 +117,0 @@ details: {

@@ -59,3 +59,3 @@ "use strict";

severity: {
"enum": Object.keys(SEVERITY)
enum: Object.keys(SEVERITY)
},

@@ -62,0 +62,0 @@ link: {

@@ -28,2 +28,3 @@ // constant - assessment

exports.HAZARD_PICTOGRAMS = require('./dist/constant/chemical/hcode-to-pictogram.constant');
exports.INVENTORY_ATTACHMENT_TYPES = require('./dist/constant/chemical/attachment-type.constant');
exports.HCODES = require('./dist/constant/chemical/hcode.constant');

@@ -113,2 +114,3 @@ exports.HCODES_HAZARD_SIGN = require('./dist/constant/chemical/hcode.hazard-sign.constant');

exports.Inventory = require('./dist/model/chemical/inventory');
exports.InventoryAttachment = require('./dist/model/chemical/inventoryAttachment');
exports.InventoryReference = require('./dist/model/chemical/inventory-reference');

@@ -137,3 +139,3 @@ exports.Nfpa = require('./dist/model/chemical/nfpa');

exports.EquipmentCard = require('./dist/model/procedure/equipment-card');
exports.FileReference = require('./dist/model/procedure/file-reference');
exports.FileReference = require('./dist/model/common/file-reference');
exports.InspectCard = require('./dist/model/procedure/inspect-card');

@@ -140,0 +142,0 @@ exports.CardOption = require('./dist/model/procedure/card-option');

{
"name": "@rss/common",
"version": "0.1.47",
"version": "0.1.48",
"description": "common constant, classes, & helper",

@@ -5,0 +5,0 @@ "author": "Risk & Safety Solution",

@@ -6,3 +6,4 @@ module.exports = {

DRAFT: 'DRAFT',
EXPIRED: 'EXPIRED',
OWNER_REVIEW: 'OWNER_REVIEW',
};

@@ -12,2 +12,3 @@ module.exports = {

EDIT_LOCATIONS: 'EDIT_LOCATIONS',
EXPIRED: 'EXPIRED',
READ: 'READ',

@@ -14,0 +15,0 @@ RECOMPLETE: 'RECOMPLETE',

@@ -17,2 +17,2 @@ /* eslint-disable no-useless-escape */

DEFAULT: new RegExp(basePattern),
};
};

@@ -22,2 +22,3 @@ const { ObjectId } = require('bson');

this.notes = null;
this.expirationDate = null;

@@ -40,2 +41,3 @@ this.fillObject(opt);

this.notes = opt.notes || {};
this.expirationDate = opt.expirationDate ? new Date(opt.expirationDate) : null;
}

@@ -66,2 +68,3 @@

notes: { type: ['object'] },
expirationDate: { type: ['object', 'null'] },
},

@@ -68,0 +71,0 @@ required: [

const ObjectId = require('bson').ObjectID;
const tv4 = require('tv4');
const FileReference = require('./file-reference');
const FileReference = require('../procedure/file-reference');

@@ -6,0 +6,0 @@ class Card {

@@ -43,2 +43,7 @@ const ObjectId = require('bson').ObjectID;

getLabel() {
const { partyType, partyId, partyName, memberId, memberName } = this.details;
return { partyType, partyId, partyName, memberId, memberName };
}
validate() {

@@ -45,0 +50,0 @@ return tv4.validateMultiple(this, InspectCard.schema());

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