gulp-rewrite-flowtyped-modules
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "gulp-rewrite-flowtyped-modules", | ||
"description": "A flow-syntax-aware module dependency rewriter gulp plugin.", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"main": "src/index.js", | ||
@@ -21,3 +21,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/jrwats/gulp-rewrite-flowtyped-modules.git" | ||
"url": "https://github.com/facebook/fbt.git" | ||
}, | ||
@@ -27,3 +27,3 @@ "scripts": { | ||
}, | ||
"bugs": "https://github.com/jrwats/gulp-rewrite-flowtyped-modules.git", | ||
"bugs": "https://github.com/facebook/fbt/issues", | ||
"devDependencies": { | ||
@@ -30,0 +30,0 @@ "jest": "^26.6.3" |
@@ -0,1 +1,8 @@ | ||
/** | ||
* (c) Facebook, Inc. and its affiliates. Confidential and proprietary. | ||
* | ||
* @noflow | ||
* @format | ||
*/ | ||
'use strict'; | ||
@@ -7,3 +14,3 @@ | ||
function gulpFlowRewriteModules(options) { | ||
return through.obj(function(file, _, cb) { | ||
return through.obj(function (file, _, cb) { | ||
if (file.isBuffer()) { | ||
@@ -10,0 +17,0 @@ const contents = file.contents.toString('utf8'); |
@@ -0,1 +1,8 @@ | ||
/** | ||
* (c) Facebook, Inc. and its affiliates. Confidential and proprietary. | ||
* | ||
* @noflow | ||
* @format | ||
*/ | ||
'use strict'; | ||
@@ -22,3 +29,3 @@ | ||
static rewrite(src, opts) { | ||
return (new Rewriter(src, opts)).rewrite(); | ||
return new Rewriter(src, opts).rewrite(); | ||
} | ||
@@ -25,0 +32,0 @@ |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
81
4012
4