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

ttf2woff2

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ttf2woff2 - npm Package Compare versions

Comparing version 2.0.3 to 3.0.0

builderror.log

3

bin/ttf2woff2.js
#! /usr/bin/env node
var fs = require('fs');
var BufferStreams = require('bufferstreams');

@@ -8,3 +7,3 @@ var ttf2woff2 = require('../src');

process.stdin.pipe(new BufferStreams(function(err, buf, cb) {
if(err) {
if (err) {
throw err;

@@ -11,0 +10,0 @@ }

@@ -9,3 +9,3 @@ 'use strict';

var inputBuffer = theTTFToWOFF2Module._malloc(inputContent.length + 1);
var outputSizePtr = theTTFToWOFF2Module._malloc(4);
var outputSizePtr = theTTFToWOFF2Module._malloc(4); // eslint-disable-line
var outputBufferPtr;

@@ -25,5 +25,5 @@ var outputSize;

outputSize = theTTFToWOFF2Module.getValue(outputSizePtr, 'i32');
outputContent = new Buffer(outputSize);
outputContent = Buffer.alloc(outputSize);
for(i = 0; i < outputSize; i++) {
for (i = 0; i < outputSize; i++) {
outputContent[i] = theTTFToWOFF2Module.getValue(outputBufferPtr + i, 'i8');

@@ -30,0 +30,0 @@ }

{
"name": "ttf2woff2",
"version": "2.0.3",
"version": "3.0.0",
"description": "Convert TTF files to WOFF2 ones.",

@@ -8,3 +8,3 @@ "main": "src/index.js",

"engines": {
"node": ">=0.12"
"node": ">= 4.0.0"
},

@@ -25,3 +25,3 @@ "directories": {

"emcc-debug": "miniquery -p \"targets.#.sources.#\" ./binding.gyp | grep -v \"csrc/addon.cc\" | xargs emcc --bind -o jssrc/ttf2woff2.js -s \"ALLOW_MEMORY_GROWTH=1\" -s \"ASSERTIONS=1\" --post-js jssrc/post.js csrc/fallback.cc",
"install": "(node-gyp rebuild > builderror.log) || (exit 0)"
"install": "((node-gyp configure && node-gyp build) > builderror.log) || (exit 0)"
},

@@ -44,17 +44,16 @@ "repository": {

"dependencies": {
"bindings": "^1.2.1",
"bufferstreams": "^1.1.0",
"nan": "^2.1.0",
"node-gyp": "^3.0.3"
"bindings": "^1.3.0",
"bufferstreams": "^2.0.1",
"nan": "^2.10.0",
"node-gyp": "^4.0.0"
},
"devDependencies": {
"coveralls": "^2.11.4",
"eslint": "^1.4.1",
"eslint-config-simplifield": "^1.1.0",
"istanbul": "^0.3.19",
"miniquery": "^1.1.1",
"mocha": "^2.3.2",
"mocha-lcov-reporter": "^0.0.2"
"coveralls": "^3.0.1",
"eslint": "^4.19.1",
"eslint-config-simplifield": "^7.1.0",
"istanbul": "^0.4.5",
"miniquery": "^1.1.2",
"mocha": "^5.2.0",
"mocha-lcov-reporter": "^1.3.0"
},
"preferGlobal": "true",
"bin": {

@@ -61,0 +60,0 @@ "ttf2woff2": "bin/ttf2woff2.js"

@@ -5,4 +5,4 @@ 'use strict';

module.exports = require('bindings')('addon.node').convert;
} catch(err) {
} catch (err) {
module.exports = require('../jssrc/index.js');
}

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