Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-reslink

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-reslink - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

lib/github.ts

6

index.js

@@ -1,8 +0,8 @@

const npm = require("./dist/lib/npm");
const transform = require("./dist/lib/transform");
hexo.extend.filter.register('before_post_render', function (data){
hexo.extend.filter.register('before_post_render', function (data) {
data.content = npm.process(data.content);
data.content = transform(data.content);
return data;
});

@@ -1,2 +0,3 @@

export const REG = /npm:((?:@?[a-z\d_-]+\/)?[a-z\d._-]+)/;
export const REG =
/npm:((?:@?[a-z\d][a-z\d_-]*[a-z\d]\/)?[a-z\d][a-z\d._-]*[a-z\d])/;

@@ -3,0 +4,0 @@ export const process = (text: string) => {

{
"name": "hexo-reslink",
"version": "1.0.1",
"version": "1.1.0",
"description": "Automatically create resource links",

@@ -10,3 +10,2 @@ "main": "index.js",

"build": "npm run tsc",
"prepublish": "npm run test",
"pretest": "npm run clean&&npm run build",

@@ -22,3 +21,4 @@ "test-spec": "mocha",

"README.md",
"LICENSE"
"LICENSE",
"tsconfig.json"
],

@@ -60,3 +60,5 @@ "repository": {

},
"dependencies": {}
"dependencies": {
"markdown-to-ast": "^6.0.2"
}
}

@@ -21,6 +21,6 @@ # hexo-reslink

Here is content of `a.md`
Here is content of `example.md`
```markdown
The npm:hexo is a very nice framework.
The npm:hexo is a very nice framework. Its homepage is github:hexojs/hexo.
```

@@ -30,6 +30,6 @@

`a.md` will be transformed as:
`example.md` will be transformed as:
```markdown
The [hexo](https://www.npmjs.com/package/hexo) is a very nice framework.
The [hexo](https://www.npmjs.com/package/hexo) is a very nice framework. Its homepage is [hexojs/hexo](https://github.com/hexojs/hexo).
```

@@ -36,0 +36,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc