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

webmscore

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webmscore - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

22

CHANGELOG.md

@@ -11,3 +11,21 @@ # Changelog

* Python API
* Pure WebAssembly API
## 1.1.0 - 2023-01-15
### Added
* Allowing to set log level
```js
const score = await WebMscore.load(...) // set log level to `Off` by default
await WebMscore.setLogLevel(2) // set log level to `Debug`
```
### Changed
* Logs are turned off by default
* Incorporate [ccache](https://ccache.dev/) in the build script, could significantly speed up recompilation if `ccache` is installed
## 1.0.0 - 2023-01-13

@@ -17,7 +35,7 @@

webmscore is now built based on MuseScore 4.0!
* webmscore is now built based on MuseScore 4.0!
### Changed
Although there's no public API change comparing to `v0.22.0`, there might be some unintended internal changes or incompatibilities.
* Although there's no public API change comparing to `v0.22.0`, there might be some unintended internal changes or incompatibilities.

@@ -24,0 +42,0 @@ ## 0.22.0 - 2022-12-31

2

package.json
{
"name": "webmscore",
"version": "1.0.0",
"version": "1.1.0",
"description": "MuseScore's libmscore in WebAssembly! Read mscz data, and generate audio/MIDI/MusicXML/SVG/PNG/PDF sheets right in browsers",

@@ -5,0 +5,0 @@ "type": "module",

@@ -14,2 +14,10 @@ export default WebMscore;

/**
* Set log level
* @param {0 | 1 | 2} level - See https://github.com/LibreScore/webmscore/blob/v1.0.0/src/framework/global/thirdparty/haw_logger/logger/log_base.h#L30-L33
* - 0: Off
* - 1: Normal (`ERRR` or `WARN` or `INFO`)
* - 2: Debug (`DEBG`)
*/
static setLogLevel(level: 0 | 1 | 2): Promise<any>;
/**
* Set custom stdout instead of `console.log`

@@ -16,0 +24,0 @@ * Available before `WebMscore.ready`

@@ -38,2 +38,14 @@

/**
* Set log level
* @param {0 | 1 | 2} level - See https://github.com/LibreScore/webmscore/blob/v1.0.0/src/framework/global/thirdparty/haw_logger/logger/log_base.h#L30-L33
* - 0: Off
* - 1: Normal (`ERRR` or `WARN` or `INFO`)
* - 2: Debug (`DEBG`)
*/
static async setLogLevel(level) {
await WebMscore.ready
return Module.ccall('setLogLevel', null, ['number'], [level])
}
/**
* Set custom stdout instead of `console.log`

@@ -109,2 +121,5 @@ * Available before `WebMscore.ready`

// turn off logs by default
await WebMscore.setLogLevel(0);
const mscore = new WebMscore(scoreptr)

@@ -111,0 +126,0 @@ return mscore

import { createRequire } from 'module'
import { dirname } from 'path'
import { performance } from 'perf_hooks'
import { fileURLToPath } from 'url'

@@ -20,5 +19,6 @@ import { IS_NODE, shimDom } from './utils.js'

global.performance = performance
// silence `Assertion failed: IDBStore used, but indexedDB not supported` on Node.js
global.indexedDB = function () { };
shimDom()
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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