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

anchorme

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anchorme - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

8

dist-node/transform/transform.js

@@ -9,2 +9,10 @@ "use strict";

var identified = identify_1.default(arr, options);
// custom filtering-out function
if (options.exclude) {
for (var index = 0; index < identified.length; index++) {
var element = identified[index];
if (typeof element === "object" && options.exclude(element))
identified[index] = element.raw;
}
}
// return the current list (with words being filtered out)

@@ -11,0 +19,0 @@ if (options.list) {

1

dist-node/util.d.ts

@@ -23,2 +23,3 @@ export interface AttributeObj {

list?: boolean;
exclude?: (URLObj) => boolean;
}

@@ -25,0 +26,0 @@ /**

5

package.json
{
"name": "anchorme",
"version": "1.0.4",
"version": "1.0.5",
"description": "A library to convert URLs to a clickable HTML anchor elements",

@@ -10,3 +10,4 @@ "main": "./dist-node/index.js",

"bench": "node benchmark/bench",
"build": "node build/build"
"build": "node build/build",
"prepublish": "npm run test && npm run bench && npm run build"
},

@@ -13,0 +14,0 @@ "repository": {

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