@vkontakte/graph-cache-css
Advanced tools
Comparing version 1.0.0 to 1.0.1
12
index.js
var parser = require('./lib/parser'); | ||
module.exports = function(sign, file, filename) { | ||
return parser.createGraphFromFile(file, sign, Object.assign({}, { filename: filename })); | ||
/** | ||
* @param {Function<string|Buffer>} sign | ||
* @param {Buffer} file | ||
* @param {Object} options | ||
* @param {string} options.filename | ||
* @param {?string[]} options.path | ||
* @return {Promise<Graph>} | ||
*/ | ||
module.exports = function(sign, file, options) { | ||
return parser.createGraphFromFile(file, sign, options); | ||
} |
{ | ||
"name": "@vkontakte/graph-cache-css", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -10,3 +10,3 @@ "main": "index.js", | ||
}, | ||
"author": "Termina1", | ||
"author": "ilfa", | ||
"license": "MIT", | ||
@@ -13,0 +13,0 @@ "devDependencies": { |
@@ -14,3 +14,3 @@ const {expect} = require('chai'); | ||
parser(function() { return 1 }, file, fpath, {}).then(g => { | ||
parser(function() { return 1 }, file, { filename: fpath }).then(g => { | ||
expect(g.nodes().length).to.equal(6); | ||
@@ -17,0 +17,0 @@ done(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9108
206