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

@magidoc/plugin-starter-variables

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magidoc/plugin-starter-variables - npm Package Compare versions

Comparing version 0.15.1 to 0.16.0

1

build/variables/templates.d.ts

@@ -8,2 +8,3 @@ export declare type Page = {

APP_TITLE: import("./variable").Variable<string>;
APP_FAVICON: import("./variable").Variable<string>;
SITE_ROOT: import("./variable").Variable<string>;

@@ -10,0 +11,0 @@ SITE_META: import("./variable").Variable<Record<string, string | undefined>>;

@@ -9,2 +9,3 @@ import { stringConverter } from './converters/string.js';

APP_TITLE: createVariable('APP_TITLE', stringConverter()),
APP_FAVICON: createVariable('APP_FAVICON', stringConverter()),
SITE_ROOT: createVariable('SITE_ROOT', stringConverter()),

@@ -11,0 +12,0 @@ SITE_META: createVariable('SITE_META', recordConverter((zod) => zod.string())),

2

package.json

@@ -5,3 +5,3 @@ {

"private": false,
"version": "0.15.1",
"version": "0.16.0",
"type": "module",

@@ -8,0 +8,0 @@ "license": "MIT",

@@ -13,2 +13,3 @@ import type { ZodType } from 'zod'

APP_TITLE: createVariable<string>('APP_TITLE', stringConverter()),
APP_FAVICON: createVariable<string>('APP_FAVICON', stringConverter()),
SITE_ROOT: createVariable<string>('SITE_ROOT', stringConverter()),

@@ -15,0 +16,0 @@ SITE_META: createVariable<Record<string, string | undefined>>(

@@ -17,2 +17,3 @@ import type { ZodType } from 'zod'

'APP_TITLE',
'APP_FAVICON',
'SITE_ROOT',

@@ -41,2 +42,10 @@ 'SITE_META',

test('app favicon', () => {
testStringVariable(
variables.templates.APP_FAVICON,
'VITE_APP_FAVICON',
z.string().optional(),
)
})
test('site root', () => {

@@ -43,0 +52,0 @@ testStringVariable(

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