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

xterm-addon-ligatures

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xterm-addon-ligatures - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0-beta.1

2

bin/download-fonts.js

@@ -15,3 +15,3 @@ /**

const urls = {
fira: 'https://github.com/tonsky/FiraCode/raw/master/distr/otf/FiraCode-Regular.otf',
fira: 'https://github.com/tonsky/FiraCode/raw/d42e7276fa925e5f82748f3ec9ea429736611b48/distr/otf/FiraCode-Regular.otf',
iosevka: 'https://github.com/be5invis/Iosevka/releases/download/v1.14.3/01-iosevka-1.14.3.zip'

@@ -18,0 +18,0 @@ };

@@ -5,7 +5,7 @@ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("font-finder"),require("font-ligatures")):"function"==typeof define&&define.amd?define(["font-finder","font-ligatures"],t):"object"==typeof exports?exports.LigaturesAddon=t(require("font-finder"),require("font-ligatures")):e.LigaturesAddon=t(e["font-finder"],e["font-ligatures"])}(window,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";

* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);t.LigaturesAddon=class{constructor(){}activate(e){r.enableLigatures(e)}dispose(){}}},function(e,t,n){"use strict";
*/Object.defineProperty(t,"__esModule",{value:!0}),t.LigaturesAddon=void 0;const r=n(1);t.LigaturesAddon=class{constructor(){}activate(e){r.enableLigatures(e)}dispose(){}}},function(e,t,n){"use strict";
/**
* Copyright (c) 2018 The xterm.js authors. All rights reserved.
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});const r=n(2);t.enableLigatures=function(e){let t=void 0,n=void 0,o=0,i=void 0;e.registerCharacterJoiner(f=>{const s=e.getOption("fontFamily");if(s&&(0===o||t!==s)){n=void 0,o=1,t=s;const f=t;r.default(f,1e5).then(t=>{f===e.getOption("fontFamily")&&(o=2,n=t,t&&e.refresh(0,e.getOption("rows")-1))}).catch(t=>{f===e.getOption("fontFamily")&&(o=3,n=void 0,i=t)})}if(n&&2===o)return n.findLigatureRanges(f).map(e=>[e[0],e[1]]);if(3===o)throw i||new Error("Failure while loading font");return[]})}},function(e,t,n){"use strict";
*/Object.defineProperty(t,"__esModule",{value:!0}),t.enableLigatures=void 0;const r=n(2);t.enableLigatures=function(e){let t=void 0,n=void 0,o=0,i=void 0;e.registerCharacterJoiner(f=>{const s=e.getOption("fontFamily");if(s&&(0===o||t!==s)){n=void 0,o=1,t=s;const f=t;r.default(f,1e5).then(t=>{f===e.getOption("fontFamily")&&(o=2,n=t,t&&e.refresh(0,e.getOption("rows")-1))}).catch(t=>{f===e.getOption("fontFamily")&&(o=3,n=void 0,i=t)})}if(n&&2===o)return n.findLigatureRanges(f).map(e=>[e[0],e[1]]);if(3===o)throw i||new Error("Failure while loading font");return[]})}},function(e,t,n){"use strict";
/**

@@ -12,0 +12,0 @@ * Copyright (c) 2018 The xterm.js authors. All rights reserved.

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.enableLigatures = void 0;
const font_1 = require("./font");

@@ -9,0 +10,0 @@ // Caches 100K characters worth of ligatures. In practice this works out to

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.LigaturesAddon = void 0;
const _1 = require(".");

@@ -9,0 +10,0 @@ class LigaturesAddon {

{
"name": "xterm-addon-ligatures",
"version": "0.3.0",
"version": "0.4.0-beta.1",
"description": "Add support for programming ligatures to xterm.js",

@@ -5,0 +5,0 @@ "author": {

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