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

react-datocms

Package Overview
Dependencies
Maintainers
6
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-datocms - npm Package Compare versions

Comparing version 5.0.0 to 5.0.2

6

dist/cjs/Seo/remixUtils.js

@@ -32,7 +32,9 @@ "use strict";

return { title: x.content };
return x.attributes;
if (x.attributes) {
return Object.assign({ tagName: x.tag }, x.attributes);
}
})
.filter((x) => Boolean(x));
.filter(Boolean);
}
exports.toRemixMeta = toRemixMeta;
//# sourceMappingURL=remixUtils.js.map

@@ -28,6 +28,8 @@ export function toRemixV1Meta(metaTags) {

return { title: x.content };
return x.attributes;
if (x.attributes) {
return Object.assign({ tagName: x.tag }, x.attributes);
}
})
.filter((x) => Boolean(x));
.filter(Boolean);
}
//# sourceMappingURL=remixUtils.js.map

@@ -6,3 +6,3 @@ import { SeoOrFaviconTag, TitleMetaLinkTag } from './types.js';

export declare function toRemixV1Meta(metaTags: null | TitleMetaLinkTag[] | SeoOrFaviconTag[]): RemixV1HtmlMetaDescriptor;
export declare function toRemixMeta(tags: null | TitleMetaLinkTag[] | SeoOrFaviconTag[]): NonNullable<Record<string, string> | import("./types.js").RegularMetaAttributes | import("./types.js").OgMetaAttributes | import("./types.js").FaviconAttributes | import("./types.js").AppleTouchIconAttributes | null | undefined>[];
export declare function toRemixMeta(tags: null | TitleMetaLinkTag[] | SeoOrFaviconTag[]): (Record<string, string> | undefined)[];
export {};
{
"name": "react-datocms",
"version": "5.0.0",
"version": "5.0.2",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=8.0.0"

@@ -46,5 +46,10 @@ import { SeoOrFaviconTag, TitleMetaLinkTag } from './types.js';

if (x.tag === 'title' && x.content) return { title: x.content };
return x.attributes;
if (x.attributes) {
return {
tagName: x.tag,
...x.attributes,
} as Record<string, string>;
}
})
.filter((x): x is NonNullable<typeof x> => Boolean(x));
.filter(Boolean);
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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