Socket
Socket
Sign inDemoInstall

@magidoc/plugin-starter-variables

Package Overview
Dependencies
Maintainers
1
Versions
107
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 3.3.0 to 3.4.0

build/variables/converters/enum.d.ts

4

build/variables/templates.d.ts

@@ -16,2 +16,4 @@ export type Page = {

};
export type FieldSorting = 'default' | 'alphabetical';
export type ArgumentSorting = 'default' | 'alphabetical';
declare const _default: {

@@ -23,2 +25,4 @@ APP_LOGO: import("./variable").Variable<string>;

SITE_META: import("./variable").Variable<Record<string, string | undefined>>;
FIELDS_SORTING: import("./variable").Variable<FieldSorting>;
ARGUMENTS_SORTING: import("./variable").Variable<ArgumentSorting>;
QUERY_GENERATION_FACTORIES: import("./variable").Variable<Record<string, string | number | boolean | Record<string, unknown> | null | undefined>>;

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

import { stringConverter } from './converters/string.js';
import { recordConverter } from './converters/record.js';
import { arrayConverter } from './converters/array.js';
import { enumConverter } from './converters/enum.js';
import { createVariable } from './variable.js';

@@ -12,2 +13,4 @@

SITE_META: createVariable('SITE_META', recordConverter((zod) => zod.string())),
FIELDS_SORTING: createVariable('FIELDS_SORTING', enumConverter(['default', 'alphabetical'])),
ARGUMENTS_SORTING: createVariable('ARGUMENTS_SORTING', enumConverter(['default', 'alphabetical'])),
QUERY_GENERATION_FACTORIES: createVariable('QUERY_GENERATION_FACTORIES', recordConverter((zod) => zod.union([

@@ -14,0 +17,0 @@ zod.string(),

12

package.json

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

"private": false,
"version": "3.3.0",
"version": "3.4.0",
"type": "module",

@@ -24,10 +24,10 @@ "license": "MIT",

"@types/lodash": "^4.14.191",
"@types/node": "^18.13.0",
"@vitest/coverage-c8": "^0.28.5",
"@types/node": "^18.14.1",
"@vitest/coverage-c8": "^0.29.1",
"lodash": "^4.17.21",
"rollup": "^3.15.0",
"rollup": "^3.17.3",
"tslib": "^2.5.0",
"typescript": "^4.9.5",
"vite": "^4.1.1",
"vitest": "^0.28.5"
"vite": "^4.1.4",
"vitest": "^0.29.1"
},

@@ -34,0 +34,0 @@ "optionalDependencies": {

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