@agrarium/plugin-markdown
Advanced tools
Comparing version 0.0.3 to 2.0.0-0
@@ -6,2 +6,24 @@ # Change Log | ||
<a name="2.0.0-0"></a> | ||
# [2.0.0-0](https://github.com/agrarium/agrarium/compare/@agrarium/plugin-markdown@0.0.3...@agrarium/plugin-markdown@2.0.0-0) (2018-07-14) | ||
### Features | ||
* revise Core NodeJS API ([d5f4214](https://github.com/agrarium/agrarium/commit/d5f4214)) | ||
<a name="1.0.0-0"></a> | ||
# [1.0.0-0](https://github.com/agrarium/agrarium/compare/@agrarium/plugin-markdown@0.0.3...@agrarium/plugin-markdown@1.0.0-0) (2018-07-14) | ||
### Features | ||
* revise Core NodeJS API ([d5f4214](https://github.com/agrarium/agrarium/commit/d5f4214)) | ||
<a name="0.0.3"></a> | ||
@@ -8,0 +30,0 @@ ## [0.0.3](https://github.com/agrarium/agrarium/compare/@agrarium/plugin-markdown@0.0.2...@agrarium/plugin-markdown@0.0.3) (2018-04-02) |
@@ -1,3 +0,3 @@ | ||
/// <reference types="@agrarium/types" /> | ||
import { Plugin } from '@agrarium/plugin'; | ||
import { IChunk, IBemFile } from '@agrarium/core'; | ||
export interface IPluginMarkdownHooks { | ||
@@ -23,3 +23,3 @@ inlineSource?: (options: { | ||
lang: string; | ||
file: BEMSDK.IFile; | ||
file: IBemFile; | ||
content: string | { | ||
@@ -37,5 +37,5 @@ [key: string]: any; | ||
constructor(options: IPluginMarkdownOptions); | ||
gather(component: Agrarium.IComponent): Promise<{ | ||
gather(chunk: IChunk<IBemFile>): Promise<{ | ||
markdown: IResultPart[]; | ||
}>; | ||
} |
"use strict"; | ||
/// <reference types="@agrarium/types" /> | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const plugin_1 = require("@agrarium/plugin"); | ||
// FIXME: Old style modules, the are not support ES modules | ||
const postMD = require('postmd'); | ||
@@ -44,3 +42,3 @@ const bemjson = require('postmd/plugins/postmd-bemjson'); | ||
} | ||
async gather(component) { | ||
async gather(chunk) { | ||
const markdown = []; | ||
@@ -52,3 +50,3 @@ const parsed = []; | ||
tech: 'md', | ||
files: component.files, | ||
files: chunk.files, | ||
}, (result) => { | ||
@@ -55,0 +53,0 @@ const lang = result.file.tech.replace(/\.?md/, '') || this.defaultLang; |
{ | ||
"name": "@agrarium/plugin-markdown", | ||
"version": "0.0.3", | ||
"version": "2.0.0-0", | ||
"description": "Agrarium plugin for markdown files resolving", | ||
@@ -32,4 +32,4 @@ "author": "Anton Vinogradov <winogradovaa@gmail.com>", | ||
"dependencies": { | ||
"@agrarium/plugin": "^0.0.3", | ||
"@agrarium/types": "^0.1.0", | ||
"@agrarium/core": "^2.0.0-0", | ||
"@agrarium/plugin": "^2.0.0-0", | ||
"posthtml": "^0.11.0", | ||
@@ -39,5 +39,5 @@ "postmd": "0.0.2" | ||
"devDependencies": { | ||
"@agrarium/test-helpers": "^0.1.0", | ||
"@agrarium/test-helpers": "^2.0.0-0", | ||
"sinon": "^4.4.9" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
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
9363
146
+ Added@agrarium/core@^2.0.0-0
+ Added@agrarium/core@2.0.2(transitive)
+ Added@agrarium/plugin@2.0.2(transitive)
+ Added@types/expect@1.20.4(transitive)
+ Added@types/fs-extra@5.1.0(transitive)
+ Added@types/glob-stream@8.0.2(transitive)
+ Added@types/node@22.9.1(transitive)
+ Added@types/picomatch@3.0.1(transitive)
+ Added@types/streamx@2.9.5(transitive)
+ Added@types/vinyl@2.0.12(transitive)
+ Added@types/vinyl-fs@2.4.12(transitive)
+ Addedappend-buffer@1.0.2(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbuffer-equal@1.0.1(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedclone@2.1.2(transitive)
+ Addedclone-buffer@1.0.0(transitive)
+ Addedclone-stats@1.0.0(transitive)
+ Addedcloneable-readable@1.1.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedconvert-source-map@1.9.0(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcyclist@1.0.2(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addedduplexify@3.7.1(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedflush-write-stream@1.1.1(transitive)
+ Addedfrom2@2.3.0(transitive)
+ Addedfs-extra@6.0.1(transitive)
+ Addedfs-mkdirp-stream@1.0.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglob-parent@3.1.0(transitive)
+ Addedglob-stream@6.1.0(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedis-absolute@1.0.0(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@3.1.0(transitive)
+ Addedis-negated-glob@1.0.0(transitive)
+ Addedis-relative@1.0.0(transitive)
+ Addedis-unc-path@1.0.0(transitive)
+ Addedis-utf8@0.2.1(transitive)
+ Addedis-valid-glob@1.0.0(transitive)
+ Addedis-windows@1.0.2(transitive)
+ Addedjson-stable-stringify-without-jsonify@1.0.1(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedlazystream@1.0.1(transitive)
+ Addedlead@1.0.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedmississippi@3.0.0(transitive)
+ Addednormalize-path@2.1.1(transitive)
+ Addednow-and-later@2.0.1(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedobject.assign@4.1.5(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedordered-read-streams@1.0.1(transitive)
+ Addedparallel-transform@1.2.0(transitive)
+ Addedpath-dirname@1.0.2(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpump@2.0.13.0.2(transitive)
+ Addedpumpify@1.5.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedremove-bom-buffer@3.0.0(transitive)
+ Addedremove-bom-stream@1.2.0(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedreplace-ext@1.0.1(transitive)
+ Addedresolve-options@1.1.0(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedstream-each@1.2.3(transitive)
+ Addedstream-shift@1.0.3(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedthrough2@2.0.54.0.2(transitive)
+ Addedthrough2-filter@3.1.0(transitive)
+ Addedto-absolute-glob@2.0.2(transitive)
+ Addedto-through@2.0.0(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedunc-path-regex@0.1.2(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedunique-stream@2.3.1(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedvalue-or-function@3.0.0(transitive)
+ Addedvinyl@2.2.1(transitive)
+ Addedvinyl-fs@3.0.3(transitive)
+ Addedvinyl-sourcemap@1.1.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxtend@4.0.2(transitive)
- Removed@agrarium/types@^0.1.0
- Removed@agrarium/plugin@0.0.3(transitive)
- Removed@agrarium/types@0.1.0(transitive)
Updated@agrarium/plugin@^2.0.0-0