Comparing version
@@ -11,3 +11,3 @@ var theTTFToWOFF2Module = require('./ttf2woff2'); | ||
// Run | ||
var outputBufferPtr = theTTFToWOFF2Module._TTFToWOFF2(inputBuffer, inputContent.length + 1, outputSizePtr); | ||
var outputBufferPtr = theTTFToWOFF2Module._convertTTFToWOFF2(inputBuffer, inputContent.length + 1, outputSizePtr); | ||
@@ -22,3 +22,7 @@ // Retrieve output | ||
theTTFToWOFF2Module._free(inputBuffer); | ||
theTTFToWOFF2Module._free(outputSizePtr); | ||
theTTFToWOFF2Module._freeTTFToWOFF2(outputBufferPtr); | ||
return outputContent; | ||
}; |
{ | ||
"name": "ttf2woff2", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Convert TTF files to WOFF2 ones.", | ||
@@ -16,2 +16,4 @@ "main": "src/index.js", | ||
"make": "node-gyp build", | ||
"emcc": "miniquery -p \"targets.#.sources.#\" ./binding.gyp | grep -v \"csrc/addon.cc\" | xargs emcc -o jssrc/ttf2woff2.js -O3 --memory-init-file 0 -s EXPORTED_FUNCTIONS=\"['_convertTTFToWOFF2','_freeTTFToWOFF2']\" -s \"TOTAL_MEMORY=536870912\" -s \"ALLOW_MEMORY_GROWTH=1\" csrc/fallback.cc", | ||
"emcc-debug": "miniquery -p \"targets.#.sources.#\" ./binding.gyp | grep -v \"csrc/addon.cc\" | xargs emcc -o jssrc/ttf2woff2.js -s EXPORTED_FUNCTIONS=\"['_convertTTFToWOFF2','_freeTTFToWOFF2']\" -s \"ALLOW_MEMORY_GROWTH=1\" -s \"ASSERTIONS=1\" csrc/fallback.cc", | ||
"install": "(node-gyp rebuild > builderror.log) || (exit 0)" | ||
@@ -35,12 +37,13 @@ }, | ||
"dependencies": { | ||
"bufferstreams": "^1.0.1", | ||
"bufferstreams": "^1.0.2", | ||
"bindings": "~1.2.1", | ||
"nan": "~1.3.0" | ||
"nan": "~1.8.4", | ||
"node-gyp": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"coveralls": "~2.11.2", | ||
"istanbul": "~0.3.16", | ||
"miniquery": "^1.1.1", | ||
"mocha": "~2.2.5", | ||
"mocha-lcov-reporter": "0.0.2", | ||
"coveralls": "~2.11.2", | ||
"istanbul": "~0.3.14", | ||
"node-gyp": "^2.0.1" | ||
"mocha-lcov-reporter": "0.0.2" | ||
}, | ||
@@ -47,0 +50,0 @@ "preferGlobal": "true", |
@@ -5,3 +5,3 @@ # ttf2woff2 | ||
[](https://npmjs.org/package/ttf2woff2) [](https://travis-ci.org/nfroidure/ttf2woff2) [](https://david-dm.org/nfroidure/ttf2woff2) [](https://david-dm.org/nfroidure/ttf2woff2#info=devDependencies) [](https://coveralls.io/r/nfroidure/ttf2woff2?branch=master) [](https://codeclimate.com/github/nfroidure/ttf2woff2) | ||
[](https://npmjs.org/package/ttf2woff2) [](https://travis-ci.org/nfroidure/ttf2woff2) [](https://david-dm.org/nfroidure/ttf2woff2) [](https://david-dm.org/nfroidure/ttf2woff2#info=devDependencies) [](https://coveralls.io/r/nfroidure/ttf2woff2?branch=master) [](https://codeclimate.com/github/nfroidure/ttf2woff2) | ||
@@ -40,2 +40,1 @@ This is a NodeJS wrapper for the Google [WOFF2](https://github.com/google/woff2) | ||
[](https://nodei.co/npm/ttf2woff2/) | ||
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
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
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
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
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
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
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
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
123
1.65%6524
504.63%8186606
-28.59%4
33.33%39
-2.5%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
Updated
Updated