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

tonal-notation

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tonal-notation - npm Package Compare versions

Comparing version 0.61.0 to 0.64.0

4

build/index.js

@@ -94,5 +94,3 @@ 'use strict';

function toAcc (n) {
return n === 0 ? ''
: n < 0 ? fillStr('b', -n)
: fillStr('#', n)
return !n ? '' : n < 0 ? fillStr('b', -n) : fillStr('#', n)
}

@@ -99,0 +97,0 @@

@@ -90,5 +90,3 @@ /**

export function toAcc (n) {
return n === 0 ? ''
: n < 0 ? fillStr('b', -n)
: fillStr('#', n)
return !n ? '' : n < 0 ? fillStr('b', -n) : fillStr('#', n)
}
{
"name": "tonal-notation",
"version": "0.61.0",
"version": "0.64.0",
"description": "Music notation utilities",

@@ -5,0 +5,0 @@ "keywords": [

@@ -27,2 +27,3 @@ var tape = require('tape')

tape('toAcc', function (test) {
test.equal(n.toAcc(), '')
test.deepEqual([-4, -3, -2, -1, 0, 1, 2, 3, 4].map(n.toAcc),

@@ -29,0 +30,0 @@ [ 'bbbb', 'bbb', 'bb', 'b', '', '#', '##', '###', '####' ])

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