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
108
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.11.1 to 0.12.0

1

build/variables/templates.d.ts

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

APP_TITLE: import("./variable").Variable<string>;
SITE_ROOT: import("./variable").Variable<string>;
QUERY_GENERATION_FACTORIES: import("./variable").Variable<Record<string, string | number | boolean | Record<string, unknown> | null | undefined>>;

@@ -10,0 +11,0 @@ PAGES: import("./variable").Variable<(Page | undefined)[]>;

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

APP_TITLE: createVariable('APP_TITLE', stringConverter()),
SITE_ROOT: createVariable('SITE_ROOT', stringConverter()),
QUERY_GENERATION_FACTORIES: createVariable('QUERY_GENERATION_FACTORIES', recordConverter((zod) => zod.union([

@@ -11,0 +12,0 @@ zod.string(),

2

package.json

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

"private": false,
"version": "0.11.1",
"version": "0.12.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()),
SITE_ROOT: createVariable<string>('SITE_ROOT', stringConverter()),
QUERY_GENERATION_FACTORIES: createVariable<

@@ -15,0 +16,0 @@ Record<

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

'APP_TITLE',
'SITE_ROOT',
'QUERY_GENERATION_FACTORIES',

@@ -39,2 +40,10 @@ 'PAGES',

test('site root', () => {
testStringVariable(
variables.templates.SITE_ROOT,
'VITE_SITE_ROOT',
z.string().optional(),
)
})
test('query generation factories', () => {

@@ -41,0 +50,0 @@ testRecordVariable(

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