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

chords-parser

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chords-parser - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

project.sublime-workspace

2

lib/src/chords/chord-converter.js

@@ -57,2 +57,2 @@ 'use strict';

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNob3Jkcy9jaG9yZC1jb252ZXJ0ZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFHTTtBQUNKLFdBREksZUFDSixHQUFjOzBCQURWLGlCQUNVOztBQUNaLFNBQUssTUFBTCxHQUFjLEVBQWQsQ0FEWTtBQUVaLFNBQUssTUFBTCxHQUFjLDJCQUFkLENBRlk7R0FBZDs7ZUFESTs7a0NBTVUsYUFBYTs7OztBQUV6QixVQUFNLFVBQVUsc0JBQWEsYUFBYixDQUNkLFdBRGMsRUFFZCxnQ0FGYyxDQUFWLENBRm1COztBQU96QixVQUFNLFlBQVksRUFBWixDQVBtQjtBQVF6QixjQUFRLE9BQVIsQ0FBZ0IsVUFBQyxLQUFELEVBQVc7QUFDekIsa0JBQVUsSUFBVixDQUFlO0FBQ2IsaUJBQU8sTUFBSyxNQUFMLENBQVksS0FBWixDQUFrQixNQUFNLENBQU4sQ0FBbEIsQ0FBUDtBQUNBLGVBQUs7QUFDSCxtQkFBTyxNQUFNLEtBQU47QUFDUCxrQkFBTSxNQUFNLENBQU4sRUFBUyxNQUFUO1dBRlI7U0FGRixFQUR5QjtPQUFYLENBQWhCLENBUnlCOztBQWtCekIsYUFBTyxTQUFQLENBbEJ5Qjs7OztTQU52Qjs7O2tCQTRCUyIsImZpbGUiOiJjaG9yZHMvY2hvcmQtY29udmVydGVyLmpzI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0Q2hvcmRzTGlzdChsaW5lQ29udGVudCkge1xuICAgIC8vIGh0dHBzOi8vcmVnZXgxMDEuY29tL3Iva0E2YVo5LzFcbiAgICBjb25zdCBtYXRjaGVzID0gUmVnZXhIZWxwZXJzLm1hdGNoQWxsUmVnZXgoXG4gICAgICBsaW5lQ29udGVudCxcbiAgICAgIC9cXGIoW0FCQ0RFRkdBQl1bYiNdPykoW15cXHNdKyk/L2dcbiAgICApO1xuXG4gICAgY29uc3QgYWxsQ2hvcmRzID0gW107XG4gICAgbWF0Y2hlcy5mb3JFYWNoKChtYXRjaCkgPT4ge1xuICAgICAgYWxsQ2hvcmRzLnB1c2goe1xuICAgICAgICBjaG9yZDogdGhpcy5wYXJzZXIucGFyc2UobWF0Y2hbMF0pLFxuICAgICAgICBsb2M6IHtcbiAgICAgICAgICBzdGFydDogbWF0Y2guaW5kZXgsXG4gICAgICAgICAgc2l6ZTogbWF0Y2hbMF0ubGVuZ3RoXG4gICAgICAgIH1cbiAgICAgIH0pO1xuICAgIH0pO1xuXG4gICAgcmV0dXJuIGFsbENob3JkcztcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBDaG9yZHNDb252ZXJ0ZXI7XG4iXSwic291cmNlUm9vdCI6ImNob3Jkcy1wYXJzZXItMC4xLjEgLSBzcmMifQ==

@@ -72,2 +72,2 @@ 'use strict';

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNob3Jkcy9jaG9yZC1wYXJzZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztJQUVNO0FBQ0osV0FESSxXQUNKLENBQVksSUFBWixFQUFrQjswQkFEZCxhQUNjOztBQUNoQixTQUFLLEtBQUwsR0FBYSxJQUFDLElBQVEsS0FBSyxJQUFMLElBQWMsSUFBdkIsQ0FERztBQUVoQixTQUFLLGFBQUwsR0FBcUIsSUFBQyxJQUFRLEtB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Q7XG4gICAgLy8gcmVtb3ZlIHJvb3RcbiAgICBmbGF2b3JzID0gZmxhdm9ycy5zdWJzdHJpbmcocm9vdC5sZW5ndGgsIGZsYXZvcnMubGVuZ3RoKTtcbiAgICAvLyByZW1vdmUgcm9vdE92ZXJyaWRlXG4gICAgaWYgKHJvb3RPdmVycmlkZSkge1xuICAgICAgZmxhdm9ycyA9IGZsYXZvcnMucmVwbGFjZSgvXFwvKFtBQkNERUZHXVtiI10/KSQvZ20sICcnKTtcbiAgICB9XG4gICAgaWYgKGZsYXZvcnMubGVuZ3RoID09PSAwKSB7XG4gICAgICAvLyBpZiBpcyBlbXB0eSBpcyBudWxsIHRoZW5cbiAgICAgIGZsYXZvcnMgPSBudWxsO1xuICAgIH1cblxuICAgIHJldHVybiB7XG4gICAgICByb290OiByb290LFxuICAgICAgZmxhdm9yczogZmxhdm9ycyxcbiAgICAgIHJvb3RPdmVycmlkZTogcm9vdE92ZXJyaWRlXG4gICAgfTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBDaG9yZFBhcnNlcjtcbiJdLCJzb3VyY2VSb290IjoiY2hvcmRzLXBhcnNlci0wLjEuMSAtIHNyYyJ9

@@ -35,2 +35,2 @@ 'use strict';

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNob3Jkcy9jaG9yZC1wcmludC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0lBQU07Ozs7Ozs7MEJBQ1MsT0FBTztBQUNsQixVQUFJLFNBQVMsTUFBTSxJQUFOLENBREs7QUFFbEIsVUFBSSxNQUFNLE9BQU4sRUFBZTtBQUNqQixpQkFBUyxTQUFTLE1BQU0sT0FBTixDQUREO09BQW5CO0FBR0EsVUFBSSxNQUFNLFlBQU4sRUFBb0I7QUFDdEIsaUJBQVMsU0FBUyxHQUFULEdBQWUsTUFBTSxZQUFOLENBREY7T0FBeEI7QUF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6WyJjbGFzcyBDaG9yZFByaW50IHtcbiAgc3RhdGljIHByaW50KGNob3JkKSB7XG4gICAgbGV0IHJlc3VsdCA9IGNob3JkLnJvb3Q7XG4gICAgaWYgKGNob3JkLmZsYXZvcnMpIHtcbiAgICAgIHJlc3VsdCA9IHJlc3VsdCArIGNob3JkLmZsYXZvcnM7XG4gICAgfVxuICAgIGlmIChjaG9yZC5yb290T3ZlcnJpZGUpIHtcbiAgICAgIHJlc3VsdCA9IHJlc3VsdCArICcvJyArIGNob3JkLnJvb3RPdmVycmlkZTtcbiAgICB9XG4gICAgcmV0dXJuIHJlc3VsdDtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBDaG9yZFByaW50O1xuIl0sInNvdXJjZVJvb3QiOiJjaG9yZHMtcGFyc2VyLTAuMS4xIC0gc3JjIn0=

@@ -97,14 +97,7 @@ 'use strict';

key: '_insertText',
value: function _insertText(original, text, start, moveRight) {
value: function _insertText(original, text, start) {
var before = original.substr(0, start);
var after = original.substr(start, original.length);
var afterCut = after.substr(text.length, after.length);
var spaceBefore = '';
if (moveRight) {
spaceBefore = ' ';
afterCut = after.substr(text.length + 1, after.length);
}
return '' + before + spaceBefore + text + afterCut;
return '' + before + text + afterCut;
}

@@ -137,20 +130,3 @@ }, {

var transposedChordString = _chordPrint2.default.print(parsedTransposed[i].chord);
// insert a char if previous was smaller
var moveRight = false;
if (i > 0) {
// previous original chord length
var previousChordString = _chordPrint2.default.print(parsedOriginal[i - 1].chord);
var previousOriginalChordLength = previousChordString.length;
// previous transposed chord length
var previousTransposedChordString = _chordPrint2.default.print(parsedTransposed[i - 1].chord);
var previousTransposedChordLength = previousTransposedChordString.length;
if (previousTransposedChordLength < previousOriginalChordLength) {
moveRight = true;
}
}
transposedChordText = this._insertText(transposedChordText, transposedChordString, parsedOriginal[i].loc.start, moveRight);
transposedChordText = this._insertText(transposedChordText, transposedChordString, parsedOriginal[i].loc.start);
}

@@ -170,2 +146,2 @@

module.exports = exports['default'];
//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AgIH0pO1xuXG4gICAgLy8gaW5zZXJ0IG5ldyBjaG9yZCBpbiB0ZXh0XG4gICAgZm9yIChsZXQgaSA9IDA7IGkgPCBwYXJzZWRPcmlnaW5hbC5sZW5ndGg7IGkrKykge1xuICAgICAgY29uc3QgdHJhbnNwb3NlZENob3JkU3RyaW5nID0gQ2hvcmRQcmludC5wcmludChwYXJzZWRUcmFuc3Bvc2VkW2ldLmNob3JkKTtcbiAgICAgIHRyYW5zcG9zZWRDaG9yZFRleHQgPSB0aGlzLl9pbnNlcnRUZXh0KHRyYW5zcG9zZWRDaG9yZFRleHQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cmFuc3Bvc2VkQ2hvcmRTdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXJzZWRPcmlnaW5hbFtpXS5sb2Muc3RhcnQpO1xuICAgIH1cblxuICAgIHJldHVybiB7XG4gICAgICBjaG9yZDogdHJhbnNwb3NlZENob3JkVGV4dCxcbiAgICAgIHBhcnNlZDogcGFyc2VkVHJhbnNwb3NlZCxcbiAgICB9O1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IENob3JkVHJhbnNwb3NlcjtcbiJdLCJzb3VyY2VSb290IjoiY2hvcmRzLXBhcnNlci0wLjEuMSAtIHNyYyJ9

@@ -7,2 +7,2 @@ 'use strict';

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxPQUFQLEdBQWlCO0FBQ2YsUUFBTSxRQUFRLFFBQVIsQ0FBTjtBQUNBLG1CQUFpQixRQUFRLDJCQUFSLENBQWpCO0NBRkYiLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IHtcbiAgU29uZzogcmVxdWlyZSgnLi9zb25nJyksXG4gIENob3JkVHJhbnNwb3NlcjogcmVxdWlyZSgnLi9jaG9yZHMvY2hvcmQtdHJhbnNwb3NlcicpXG59O1xuIl0sInNvdXJjZVJvb3QiOiJjaG9yZHMtcGFyc2VyLTAuMS4wIC0gc3JjIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxPQUFQLEdBQWlCO0FBQ2YsUUFBTSxRQUFRLFFBQVIsQ0FBTjtBQUNBLG1CQUFpQixRQUFRLDJCQUFSLENBQWpCO0NBRkYiLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IHtcbiAgU29uZzogcmVxdWlyZSgnLi9zb25nJyksXG4gIENob3JkVHJhbnNwb3NlcjogcmVxdWlyZSgnLi9jaG9yZHMvY2hvcmQtdHJhbnNwb3NlcicpXG59O1xuIl0sInNvdXJjZVJvb3QiOiJjaG9yZHMtcGFyc2VyLTAuMS4xIC0gc3JjIn0=

@@ -43,2 +43,2 @@ 'use strict';

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvbmcvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7SUFFTSxPQUNKLFNBREksSUFDSixDQUFZLElBQVosRUFBa0I7d0JBRGQsTUFDYzs7QUFDaEIsTUFBSSxPQUFPLElBQVA7OztBQURZLE1BSVYsa0JBQWtCLDhCQUFsQixDQUpVO0FBS2hCLE1BQU0sYUFBYSxJQUFiLENBTFU7O0FBT2hCLE1BQU0saUJBQWlCLFdBQVcsR0FBWCxDQUFlLHVCQUFlO0FBQ25ELFFBQUksWUFBWSxjQUFaLENBQTJCLE9BQTNCLENBQUos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bnVsbCkge1xuICAgICAgICBicmVhaztcbiAgICAgIH1cbiAgICAgIGlmIChtICYmIG0uaW5kZXggPT09IHJlLmxhc3RJbmRleCkge1xuICAgICAgICByZS5sYXN0SW5kZXgrKztcbiAgICAgIH1cbiAgICAgIGFsbE1hdGNoZXMucHVzaChtKTtcbiAgICB9XG4gICAgcmV0dXJuIGFsbE1hdGNoZXM7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgUmVnZXhIZWxwZXI7XG4iXSwic291cmNlUm9vdCI6ImNob3Jkcy1wYXJzZXItMC4xLjEgLSBzcmMifQ==
{
"name": "chords-parser",
"version": "0.1.1",
"version": "0.1.2",
"description": "parse guitar chords",

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

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