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

astro-robots-txt

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-robots-txt - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

12

dist/index.js

@@ -125,4 +125,4 @@ var __defProp = Object.defineProperty;

// ../utils/src/load-config.ts
async function loadConfig(name, base) {
if (!name) {
async function loadConfig(namespace, base) {
if (!namespace) {
return null;

@@ -132,3 +132,3 @@ }

for (const ext of exts) {
const fileName = `${name}.config.${ext}`;
const fileName = `${namespace}.config.${ext}`;
const file = new URL(fileName, base);

@@ -138,3 +138,3 @@ if (await isFileExists(file)) {

if (!module.default) {
throw new Error(`'${fileName}' doesn't have default export`);
throw new Error(`'${fileName}' doesn't contain a default export`);
}

@@ -150,3 +150,3 @@ return module.default;

// src/data/package-name.ts
// src/data/pkg-name.ts
var packageName = "astro-robots-txt";

@@ -208,3 +208,3 @@

site: z2.string().min(1, {
message: "`site` property is required in `astro.config.mjs`."
message: "`site` property is required in `astro.config.*`."
})

@@ -211,0 +211,0 @@ });

{
"name": "astro-robots-txt",
"version": "0.3.1",
"version": "0.3.2",
"description": "Generate a robots.txt for Astro",

@@ -39,9 +39,9 @@ "keywords": [

"devDependencies": {
"@types/node": "^17.0.40",
"astro": "^1.0.0-beta.40",
"at-scripts": "0.0.3",
"@types/node": "^17.0.41",
"astro": "^1.0.0-beta.42",
"at-scripts": "0.0.4",
"c8": "^7.11.3",
"typescript": "^4.7.3",
"vite": "^2.9.9",
"vitest": "^0.14.0"
"vite": "^2.9.10",
"vitest": "^0.14.1"
},

@@ -48,0 +48,0 @@ "publishConfig": {

@@ -22,3 +22,3 @@ [![Help Ukraine now!](https://raw.githubusercontent.com/alextim/help-ukraine-win-flag/master/stop-russian-agressian-help-ukraine-now-link.svg 'Help Ukraine now!')](https://bank.gov.ua/en/about/support-the-armed-forces)

**astro-robots-txt** could help in both two cases on the _robots.txt_ side. See details in the demo [repo](https://github.com/alextim/astro-lib/tree/main/examples/robots-txt/extended).
**astro-robots-txt** could help in both two cases on the _robots.txt_ side. See details in this demo [repo](https://github.com/alextim/astro-lib/tree/main/examples/robots-txt/advanced).

@@ -192,5 +192,5 @@ ---

You could configure the integration with external file `robots-txt.config.*` (`js`, `cjs`, `mjs`). Put it to the application `root` folder (see about `root` in offical [docs](https://docs.astro.build/en/reference/configuration-reference/)).
You could configure the integration with external file `robots-txt.config.*` (`js`, `cjs`, `mjs`). Put it to the application `root` folder (see about `root` in official [docs](https://docs.astro.build/en/reference/configuration-reference/)).
The external config must have default export statement:
The external config must contain a default export statement:

@@ -208,3 +208,3 @@ ```js

// CommonJS
exports = {
module.exports = {
...

@@ -214,3 +214,3 @@ };

:exclamation: Current version of integration doesn't support typescript configs.
:exclamation: The current version of integration doesn't support typescript configs.

@@ -226,3 +226,3 @@ ### How does the integration internally resolve a config?

The external configuration usage example is in the demo [repo](https://github.com/alextim/astro-lib/tree/main/examples/robots-txt/extended).
The external configuration usage example is in the demo [repo](https://github.com/alextim/astro-lib/tree/main/examples/robots-txt/advanced).

@@ -229,0 +229,0 @@ :exclamation: Important Notes

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