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

@gracile/sitemap

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gracile/sitemap - npm Package Compare versions

Comparing version 0.0.9 to 0.1.0-next.0

10

dist/vite.js
import { Readable } from 'node:stream';
import { logger } from '@gracile/internal-utils/logger';
import { logger } from '@gracile/internal-utils/logger/vite-logger';
import c from 'picocolors';

@@ -7,6 +7,14 @@ import { SitemapStream, streamToPromise } from 'sitemap';

export function viteSitemapPlugin(options) {
let isSsrBuild = false;
return {
name: VITE_PLUGIN_NAME,
enforce: 'post',
config(_, env) {
isSsrBuild = env.isSsrBuild || false;
},
async generateBundle(_, bundle) {
if (isSsrBuild) {
logger.error(`\n${VITE_PLUGIN_NAME} is only compatible with static output!\n`);
return;
}
const links = Object.entries(bundle)

@@ -13,0 +21,0 @@ .filter(([, asset]) => asset.fileName.endsWith('.html'))

6

package.json
{
"name": "@gracile/sitemap",
"version": "0.0.9",
"version": "0.1.0-next.0",
"description": "A thin, full-stack, web framework",

@@ -37,3 +37,3 @@ "keywords": [

"dependencies": {
"@gracile/internal-utils": "^0.2.1",
"@gracile/internal-utils": "^0.3.0-next.0",
"picocolors": "^1.0.0",

@@ -49,3 +49,3 @@ "sitemap": "8.0.0"

},
"gitHead": "6d4f25507897a91b31485317ccc8e77850b8fa40"
"gitHead": "3f052f63a2ecd3baa7a8a10863e802ad5ac82a9d"
}

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