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

mos-connection

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mos-connection - npm Package Compare versions

Comparing version 2.0.0-0 to 2.0.0-1

7

CHANGELOG.md

@@ -5,3 +5,3 @@ # Changelog

## [2.0.0-0](https://github.com/nrkno/tv-automation-mos-connection/compare/1.0.7...2.0.0-0) (2022-05-30)
## [2.0.0-1](https://github.com/nrkno/sofie-mos-connection/compare/1.0.7...2.0.0-1) (2022-06-01)

@@ -22,3 +22,8 @@

* more helpful messages for "Unknown response" errors ([4a91fa5](https://github.com/nrkno/tv-automation-mos-connection/commit/4a91fa53661060cc62c528294540752c5b4dde78))
* bug in roElementAction command for REPLACE and SWAP items ([42034d9](https://github.com/nrkno/sofie-mos-connection/commit/42034d9b92dfac0801a8fe6f64b1ebc0c32cd483))
* bug in roListAll message ([b4b79c8](https://github.com/nrkno/sofie-mos-connection/commit/b4b79c899a47ebfa231600c0dd16a0ebd7df79f2))
* typedoc ([d71c354](https://github.com/nrkno/sofie-mos-connection/commit/d71c354f7eb2c4463dda5056e015174c93c5704f))
* update unit tests & fix prsing-issue in requestMachineInfo response ([2b73347](https://github.com/nrkno/sofie-mos-connection/commit/2b733478cc03f9bfbcf65f9783cde6e4ffef3e6c))
### [1.0.7](https://github.com/nrkno/tv-automation-mos-connection/compare/1.0.5-1...1.0.7) (2022-05-13)

@@ -25,0 +30,0 @@

@@ -678,2 +678,3 @@ import { IProfiles } from './config/connectionConfig';

}
/** http://mosprotocol.com/wp-content/MOS-Protocol-Documents/MOS-Protocol-2.8.4-Current.htm#mosObj */
export interface IMOSObject {

@@ -680,0 +681,0 @@ ID?: MosString128;

35

dist/MosDevice.js

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

async dispose() {
this._currentConnection = null;
const ps = [];

@@ -491,16 +492,24 @@ if (this._primaryConnection)

const list = {
manufacturer: listMachInfo.manufacturer,
model: listMachInfo.model,
hwRev: listMachInfo.hwRev,
swRev: listMachInfo.swRev,
DOM: listMachInfo.DOM,
SN: listMachInfo.SN,
ID: listMachInfo.ID,
time: listMachInfo.time,
opTime: listMachInfo.opTime,
mosRev: listMachInfo.mosRev,
supportedProfiles: this.supportedProfiles,
defaultActiveX: this.defaultActiveX,
mosExternalMetaData: this.mosExternalMetaData,
manufacturer: new mosString128_1.MosString128(listMachInfo.manufacturer),
model: new mosString128_1.MosString128(listMachInfo.model),
hwRev: new mosString128_1.MosString128(listMachInfo.hwRev),
swRev: new mosString128_1.MosString128(listMachInfo.swRev),
DOM: !(0, lib_1.isEmpty)(listMachInfo.DOM) ? new mosTime_1.MosTime(listMachInfo.DOM) : undefined,
SN: new mosString128_1.MosString128(listMachInfo.SN),
ID: new mosString128_1.MosString128(listMachInfo.ID),
time: new mosTime_1.MosTime(listMachInfo.time),
opTime: new mosTime_1.MosTime(listMachInfo.opTime),
mosRev: new mosString128_1.MosString128(listMachInfo.mosRev),
supportedProfiles: {
deviceType: listMachInfo.supportedProfiles.deviceType,
},
defaultActiveX: listMachInfo.defaultActiveX,
mosExternalMetaData: listMachInfo.mosExternalMetaData,
};
if (Array.isArray(listMachInfo.supportedProfiles.mosProfile)) {
for (const mosProfile of listMachInfo.supportedProfiles.mosProfile) {
// @ts-expect-error hack
list.supportedProfiles[`profile${mosProfile.attributes.number}`] = mosProfile.text === 'YES';
}
}
return list;

@@ -507,0 +516,0 @@ }

@@ -22,3 +22,3 @@ import { MosTime } from '../../dataTypes/mosTime';

/** Date of Manufacture. */
DOM: MosTime;
DOM: MosTime | undefined;
/** Serial Number: text serial number. 128 chars max. ex: '927748927' */

@@ -25,0 +25,0 @@ SN: MosString128;

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

const root = XMLBuilder.create('roElementAction');
root.att('operation', 'INSERT');
root.att('operation', 'REPLACE');
(0, Utils_1.addTextElement)(root, 'roID', this.Action.RunningOrderID);

@@ -203,3 +203,3 @@ const xmlTarget = (0, Utils_1.addTextElement)(root, 'element_target');

const root = XMLBuilder.create('roElementAction');
root.att('operation', 'DELETE');
root.att('operation', 'SWAP');
(0, Utils_1.addTextElement)(root, 'roID', this.Action.RunningOrderID);

@@ -206,0 +206,0 @@ const xmlTarget = (0, Utils_1.addTextElement)(root, 'element_target');

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

const MosMessage_1 = require("../MosMessage");
const Utils_1 = require("../../utils/Utils");
const xmlConversion_1 = require("./xmlConversion");
class ROListAll extends MosMessage_1.MosMessage {

@@ -19,4 +19,3 @@ /** */

const xmlRO = XMLBuilder.create('ro');
(0, Utils_1.addTextElement)(root, 'roID', RO.ID);
(0, Utils_1.addTextElement)(root, 'roSlug', RO.Slug);
xmlConversion_1.XMLRunningOrderBase.toXML(xmlRO, RO);
root.importDocument(xmlRO);

@@ -23,0 +22,0 @@ });

{
"name": "mos-connection",
"version": "2.0.0-0",
"version": "2.0.0-1",
"description": "MOS compliant TCP/IP Socket connection.",

@@ -10,8 +10,8 @@ "main": "dist/index.js",

"type": "git",
"url": "git+https://github.com/nrkno/tv-automation-mos-connection.git"
"url": "git+https://github.com/nrkno/sofie-mos-connection.git"
},
"bugs": {
"url": "https://github.com/nrkno/tv-automation-mos-connection/issues"
"url": "https://github.com/nrkno/sofie-mos-connection/issues"
},
"homepage": "https://github.com/nrkno/tv-automation-mos-connection#readme",
"homepage": "https://github.com/nrkno/sofie-mos-connection#readme",
"author": {

@@ -35,3 +35,3 @@ "name": "Jesper Stærkær",

"info": "npm-scripts-info",
"build": "trash dist && yarn build:main",
"build": "rimraf dist && yarn build:main",
"build:main": "tsc -p tsconfig.build.json",

@@ -46,3 +46,2 @@ "eslint": "eslint --ext .ts --ext .js --ext .tsx --ext .jsx --ignore-pattern dist",

"cov-open": "open-cli coverage/lcov-report/index.html",
"send-coverage": "codecov",
"docs": "yarn docs:html && open-cli docs/index.html",

@@ -52,3 +51,2 @@ "docs:test": "yarn docs:html",

"docs:json": "typedoc --json docs/typedoc.json src/index.ts",
"docs:publish": "yarn docs:html && gh-pages -d docs",
"release": "standard-version",

@@ -60,3 +58,3 @@ "release:bump-release": "yarn release",

"validate:dev-dependencies": "yarn audit --groups devDependencies",
"license-validate": "yarn sofie-licensecheck --allowPackages caniuse-lite@1.0.30001287"
"license-validate": "yarn sofie-licensecheck --allowPackages caniuse-lite@1.0.30001344"
},

@@ -76,11 +74,9 @@ "engines": {

"@types/node": "^14.18.12",
"codecov": "^3.8.3",
"gh-pages": "^3.2.3",
"jest": "^27.2.1",
"mockdate": "^3.0.5",
"open-cli": "^6.0.1",
"open-cli": "^7.0.1",
"rimraf": "^3.0.2",
"standard-version": "^9.3.1",
"trash-cli": "^4.0.0",
"ts-jest": "^27.0.5",
"typedoc": "^0.22.15",
"typedoc": "0.22.15",
"typescript": "~4.5"

@@ -87,0 +83,0 @@ },

# Sofie: The Modern TV News Studio Automation System (MOS Connection library)
[![Tests](https://github.com/nrkno/tv-automation-mos-connection/actions/workflows/node.yaml/badge.svg)](https://github.com/nrkno/tv-automation-mos-connection/actions/workflows/node.yaml)
[![codecov](https://codecov.io/gh/nrkno/tv-automation-mos-connection/branch/master/graph/badge.svg)](https://codecov.io/gh/nrkno/tv-automation-mos-connection)
[![Tests](https://github.com/nrkno/sofie-mos-connection/actions/workflows/node.yaml/badge.svg)](https://github.com/nrkno/sofie-mos-connection/actions/workflows/node.yaml)
[![codecov](https://codecov.io/gh/nrkno/sofie-mos-connection/branch/master/graph/badge.svg?token=LQL02uXajF)](https://codecov.io/gh/nrkno/sofie-mos-connection)

@@ -6,0 +6,0 @@ Library for connecting to a MOS device using the [MOS Protocol](http://mosprotocol.com/).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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