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

@mos-connection/helper

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mos-connection/helper - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [4.1.0](https://github.com/nrkno/sofie-mos-connection/compare/v4.0.0...v4.1.0) (2024-04-02)
### Bug Fixes
* optional on xmlSupportedProfiles as OpemMedia has this undefined ([b0ed480](https://github.com/nrkno/sofie-mos-connection/commit/b0ed48051134c39f105ed15e5c660d2c9819d4ef))
# [4.0.0](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.7...v4.0.0) (2024-02-02)

@@ -8,0 +19,0 @@

2

dist/index.d.ts
export * from '@mos-connection/model';
export { pad, xml2js, addTextElement, xmlToObject, } from './utils/Utils';
export { xml2js, addTextElement, xmlToObject, } from './utils/Utils';
export * as MosModel from './mosModel';

@@ -4,0 +4,0 @@ export * from './stringify/stringifyMosObject';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MosModel = exports.xmlToObject = exports.addTextElement = exports.xml2js = exports.pad = void 0;
exports.MosModel = exports.xmlToObject = exports.addTextElement = exports.xml2js = void 0;
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("@mos-connection/model"), exports);
var Utils_1 = require("./utils/Utils");
Object.defineProperty(exports, "pad", { enumerable: true, get: function () { return Utils_1.pad; } });
Object.defineProperty(exports, "xml2js", { enumerable: true, get: function () { return Utils_1.xml2js; } });

@@ -9,0 +8,0 @@ Object.defineProperty(exports, "addTextElement", { enumerable: true, get: function () { return Utils_1.addTextElement; } });

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

throw new Error(`Can't prepare message: ncsID missing`);
// if (!this.port) throw new Error(`Can't prepare message: port missing`)
this._messageID = messageID ? messageID : MosMessage.getNewMessageID();

@@ -32,0 +31,0 @@ }

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

}
if (Array.isArray(xmlSupportedProfiles.mosProfile)) {
if (Array.isArray(xmlSupportedProfiles?.mosProfile)) {
for (const mosProfile of xmlSupportedProfiles.mosProfile) {

@@ -84,0 +84,0 @@ // @ts-expect-error hack

@@ -6,3 +6,3 @@ import * as XMLBuilder from 'xmlbuilder';

/** */
constructor(pause: number | undefined, strict: boolean);
constructor(pause: number, strict: boolean);
/** */

@@ -9,0 +9,0 @@ get messageXMLBlocks(): XMLBuilder.XMLElement;

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

/** */
constructor(pause = 0, strict) {
constructor(pause, strict) {
super('lower', strict);

@@ -12,0 +12,0 @@ this.pause = pause;

import * as XMLBuilder from 'xmlbuilder';
import { IMOSDuration, IMOSString128, IMOSTime } from '@mos-connection/model';
/** */
export declare function pad(n: string, width: number, z?: string): string;
export declare function xml2js(messageString: string): {

@@ -6,0 +4,0 @@ [key: string]: any;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.xmlToObject = exports.addTextElementInternal = exports.addTextElement = exports.xml2js = exports.pad = void 0;
exports.xmlToObject = exports.addTextElementInternal = exports.addTextElement = exports.xml2js = void 0;
const xml_js_1 = require("xml-js");
const model_1 = require("@mos-connection/model");
/** */
function pad(n, width, z) {
z = z || '0';
n = n + '';
return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
}
exports.pad = pad;
function xml2js(messageString) {

@@ -37,3 +30,3 @@ const object = (0, xml_js_1.xml2js)(messageString, { compact: false, trim: true, nativeType: true });

const childEl = element.elements[0];
const name = childEl.$name || childEl.$type || 'unknownElement';
const name = childEl.$name ?? childEl.$type ?? 'unknownElement';
if (childEl.$type && childEl.$type === 'text') {

@@ -40,0 +33,0 @@ if (childEl.$name === undefined) {

{
"name": "@mos-connection/helper",
"version": "4.0.0",
"version": "4.1.0",
"description": "Helper functions for the MOS-connection library",

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

"dependencies": {
"@mos-connection/model": "4.0.0",
"@mos-connection/model": "4.1.0",
"iconv-lite": "^0.6.3",

@@ -70,3 +70,3 @@ "tslib": "^2.5.3",

},
"gitHead": "b9a544a88d1eae13a0f220b282d61e5d9859f5da"
"gitHead": "dcf23cb18f12274b76f3c7f0cd356e2bff9e97f2"
}

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

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