@emdaer/plugin-import
Advanced tools
+8
-0
@@ -6,2 +6,10 @@ # Change Log | ||
| <a name="1.8.3"></a> | ||
| ## [1.8.3](https://github.com/emdaer/emdaer/compare/v1.8.2...v1.8.3) (2018-01-01) | ||
| **Note:** Version bump only for package @emdaer/plugin-import | ||
| <a name="1.8.2"></a> | ||
@@ -8,0 +16,0 @@ ## [1.8.2](https://github.com/emdaer/emdaer/compare/v1.8.1...v1.8.2) (2017-12-25) |
+1
-1
@@ -19,5 +19,5 @@ /* */ | ||
| const content = (await fs.readFile(path)).toString(); | ||
| return runEmdaer ? emdaer(path, content, false) : content; | ||
| return runEmdaer ? emdaer(path, content) : content; | ||
| } | ||
| module.exports = importPlugin; |
+3
-3
| { | ||
| "name": "@emdaer/plugin-import", | ||
| "description": "An emdaer plugin that imports content from another file", | ||
| "version": "1.8.2", | ||
| "version": "1.8.3", | ||
| "repository": "emdaer/emdaer", | ||
@@ -16,3 +16,3 @@ "homepage": "https://emdaer.me/", | ||
| "dependencies": { | ||
| "@emdaer/core": "^1.8.2", | ||
| "@emdaer/core": "^1.8.3", | ||
| "fs-extra": "3.0.1" | ||
@@ -24,4 +24,4 @@ }, | ||
| "devDependencies": { | ||
| "@emdaer/plugin-value-from-package": "^1.8.2" | ||
| "@emdaer/plugin-value-from-package": "^1.8.3" | ||
| } | ||
| } |
+13
-17
@@ -7,19 +7,15 @@ <!-- | ||
| # @emdaer/plugin-import | ||
| <h1 id="-emdaer-plugin-import">@emdaer/plugin-import</h1> | ||
| <p>An emdaer plugin that imports content from another file</p> | ||
| An emdaer plugin that imports content from another file | ||
| <!-- Generated by documentation.js. Update this documentation by updating the source code. --> | ||
| ## importPlugin | ||
| Import and optionally render files. | ||
| **Parameters** | ||
| - `options` **any** | ||
| - `options.path` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)?** The filename or file descriptor. | ||
| - `options.runEmdaer` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** Whether or not to run emdaer on the imported file. | ||
| Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)>** The contents of the imported file | ||
| <h2 id="importplugin">importPlugin</h2> | ||
| <p>Import and optionally render files.</p> | ||
| <p><strong>Parameters</strong></p> | ||
| <ul> | ||
| <li><code>options</code> <strong>any</strong> <ul> | ||
| <li><code>options.path</code> <strong><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>?</strong> The filename or file descriptor.</li> | ||
| <li><code>options.runEmdaer</code> <strong><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a>?</strong> Whether or not to run emdaer on the imported file.</li> | ||
| </ul> | ||
| </li> | ||
| </ul> | ||
| <p>Returns <strong><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a><<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>></strong> The contents of the imported file</p> |
+1
-1
@@ -22,5 +22,5 @@ /* @flow */ | ||
| const content = (await fs.readFile(path)).toString(); | ||
| return runEmdaer ? emdaer(path, content, false) : content; | ||
| return runEmdaer ? emdaer(path, content) : content; | ||
| } | ||
| module.exports = importPlugin; |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
18209
1.75%1
Infinity%21
-16%Updated