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

pssh-tools

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pssh-tools - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

15

lib/pssh/tools.js

@@ -288,2 +288,14 @@ const path = require('path')

const decodePsshData = (targetSystem, data) => {
const dataBuffer = Buffer.from(data, 'base64')
switch (targetSystem.name) {
case system.WIDEVINE.name:
return decodeWVData(dataBuffer)
case system.PLAYREADY.data:
return decodePRData(dataBuffer)
default:
return null
}
}
module.exports = {

@@ -293,4 +305,3 @@ system,

decodePssh,
decodePRData,
decodeWVData
decodePsshData
}

2

package.json
{
"name": "pssh-tools",
"version": "0.0.11",
"version": "0.0.12",
"description": "Tools to generate PSSH Data and PSSH Box",

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

@@ -64,3 +64,3 @@ const test = require('ava')

test('Should be able to decode PlayReady PSSH data', t => {
const result = pssh.tools.decodePRData(Buffer.from(PSSH_DATA, 'base64'))
const result = pssh.tools.decodePsshData(pssh.tools.system.PLAYREADY.name, PSSH_DATA)
console.log(result.recordXml)

@@ -67,0 +67,0 @@

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