@textlint/fixer-formatter
Advanced tools
Comparing version 3.1.7 to 3.1.8
@@ -6,2 +6,20 @@ # Change Log | ||
<a name="3.1.8"></a> | ||
## [3.1.8](https://github.com/textlint/textlint/compare/@textlint/fixer-formatter@3.1.5...@textlint/fixer-formatter@3.1.8) (2019-07-20) | ||
### Chores | ||
* **deps:** update diff library ([#608](https://github.com/textlint/textlint/issues/608)) ([893d57c](https://github.com/textlint/textlint/commit/893d57c)) | ||
### Code Refactoring | ||
* **utils:** move implementation from types to utils ([#611](https://github.com/textlint/textlint/issues/611)) ([cd9adbe](https://github.com/textlint/textlint/commit/cd9adbe)) | ||
* use [@textlint](https://github.com/textlint)/module-interop instead of interop-require ([10d34a6](https://github.com/textlint/textlint/commit/10d34a6)) | ||
<a name="3.1.7"></a> | ||
@@ -8,0 +26,0 @@ ## [3.1.7](https://github.com/textlint/textlint/compare/@textlint/fixer-formatter@3.1.5...@textlint/fixer-formatter@3.1.7) (2019-07-13) |
// LICENSE : MIT | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var module_interop_1 = require("@textlint/module-interop"); | ||
var fs = require("fs"); | ||
var path = require("path"); | ||
var tryResolve = require("try-resolve"); | ||
var interopRequire = require("interop-require"); | ||
var isFile = require("is-file"); | ||
@@ -36,3 +36,3 @@ var debug = require("debug")("textlint:textfix-formatter"); | ||
try { | ||
formatter = interopRequire(formatterPath); | ||
formatter = module_interop_1.moduleInterop(require(formatterPath)); | ||
} | ||
@@ -39,0 +39,0 @@ catch (ex) { |
{ | ||
"name": "@textlint/fixer-formatter", | ||
"version": "3.1.7", | ||
"version": "3.1.8", | ||
"description": "textlint output formatter for fixer", | ||
@@ -37,7 +37,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@textlint/types": "^1.2.0", | ||
"@textlint/module-interop": "^1.0.1", | ||
"@textlint/types": "^1.2.1", | ||
"chalk": "^1.1.3", | ||
"debug": "^4.1.1", | ||
"diff": "^4.0.1", | ||
"interop-require": "^1.0.0", | ||
"is-file": "^1.0.0", | ||
@@ -61,3 +61,3 @@ "string-width": "^1.0.1", | ||
}, | ||
"gitHead": "400aebd64cfe8b4b21c47b529a0b46e9cd81f038" | ||
"gitHead": "4342d1e224fe20e936952497941fad874c7b7b6c" | ||
} |
@@ -5,6 +5,8 @@ // LICENSE : MIT | ||
import { moduleInterop } from "@textlint/module-interop"; | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const tryResolve = require("try-resolve"); | ||
const interopRequire = require("interop-require"); | ||
const isFile = require("is-file"); | ||
@@ -37,3 +39,3 @@ const debug = require("debug")("textlint:textfix-formatter"); | ||
try { | ||
formatter = interopRequire(formatterPath); | ||
formatter = moduleInterop(require(formatterPath)); | ||
} catch (ex) { | ||
@@ -40,0 +42,0 @@ throw new Error(`Could not find formatter ${formatterName} |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
42561
3
+ Added@textlint/module-interop@1.2.5(transitive)
- Removedinterop-require@^1.0.0
- Removedinterop-require@1.0.0(transitive)
Updated@textlint/types@^1.2.1