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

@react-pdf/textkit

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-pdf/textkit - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

2

engines/scriptItemizer/index.js

@@ -12,3 +12,3 @@ "use strict";

var _unicodeProperties = _interopRequireDefault(require("unicode-properties"));
var _unicodeProperties = _interopRequireDefault(require("@react-pdf/unicode-properties"));

@@ -15,0 +15,0 @@ var _empty = _interopRequireDefault(require("../../attributedString/empty"));

{
"name": "@react-pdf/textkit",
"version": "0.4.1",
"version": "0.4.2",
"description": "An advanced text layout framework",

@@ -37,5 +37,5 @@ "main": "./index.js",

"@babel/runtime": "^7.4.3",
"@react-pdf/unicode-properties": "2.3.0",
"hyphen": "^1.1.1",
"ramda": "^0.26.1",
"unicode-properties": "^1.3.1"
"ramda": "^0.26.1"
},

@@ -42,0 +42,0 @@ "devDependencies": {

@@ -16,2 +16,8 @@ "use strict";

var DEST_REGEXP = /^#.+/;
var isSrcId = function isSrcId(src) {
return src.match(DEST_REGEXP);
};
var renderAttachments = function renderAttachments(ctx, run) {

@@ -75,3 +81,7 @@ ctx.save();

if (link) {
ctx.link(0, -height - descent, runAdvanceWidth, height, link);
if (isSrcId(link)) {
ctx.goTo(0, -height - descent, runAdvanceWidth, height, link.slice(1));
} else {
ctx.link(0, -height - descent, runAdvanceWidth, height, link);
}
}

@@ -78,0 +88,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