New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

absoluteify

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

absoluteify - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

index.js

@@ -25,4 +25,4 @@ 'use strict'

attribute,
(value) => isAbsolute(value) ? value : join(base, value)
(value) => value && isAbsolute(value) ? value : join(base, value)
)
}
{
"name": "absoluteify",
"main": "index.js",
"version": "1.0.1",
"version": "1.0.2",
"description": "Streamingly transform relative HTML paths to absolute urls",

@@ -27,4 +27,4 @@ "license": "MIT",

"concat-stream": "~1.5.1",
"standard": "^7.0.0",
"tap-difflet": "~0.6.0",
"standard": "^8.5.0",
"tap-difflet": "~0.7.0",
"tape": "^4.0.0"

@@ -39,3 +39,3 @@ },

"ap": "~0.2.0",
"is-absolute-url": "~2.0.0",
"is-absolute-url": "~2.1.0",
"trumpet": "bendrucker/node-trumpet#set-attribute-transform",

@@ -42,0 +42,0 @@ "url-join": "~1.1.0"

@@ -36,1 +36,11 @@ 'use strict'

})
test('inline <script>', function (t) {
t.plan(1)
fs.createReadStream(path.resolve(__dirname, 'inline-script.html'))
.pipe(absoluteify('https://base'))
.pipe(concat(function (html) {
t.ok(html)
}))
})
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