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

@dosgato/templating

Package Overview
Dependencies
Maintainers
2
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dosgato/templating - npm Package Compare versions

Comparing version 0.0.104 to 0.0.105

2

dist/links.d.ts

@@ -88,2 +88,2 @@ /**

*/
export declare function replaceLinksInText(text: string, resolved: Map<string, string>): string;
export declare function replaceLinksInText(text: string, resolved: Map<string, string | undefined>): string;

@@ -17,4 +17,3 @@ const LinkRegex = /{.*"type"\s?:\s+"\w+".*?}/g;

export function replaceLinksInText(text, resolved) {
// TODO: figure out a broken link to use instead of '#', so it can be detected later
return text.replace(LinkRegex, m => resolved.get(m) ?? '#');
return text.replace(LinkRegex, m => resolved.get(m) ?? 'dg-broken-link');
}
{
"name": "@dosgato/templating",
"version": "0.0.104",
"version": "0.0.105",
"description": "A library to support building templates for dosgato CMS.",

@@ -5,0 +5,0 @@ "type": "module",

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