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

@ronin/schema

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ronin/schema - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

13

dist/index.d.ts

@@ -1,2 +0,2 @@

import { ModelIndex, ModelField, ModelTrigger } from '@ronin/compiler';
import { Model as Model$1, ModelIndex, ModelField, ModelTrigger } from '@ronin/compiler';
import { GetInstructions, WithInstruction } from 'ronin/types';

@@ -9,13 +9,4 @@

type Primitives = ReturnType<typeof link> | ReturnType<typeof string> | ReturnType<typeof boolean> | ReturnType<typeof number> | ReturnType<typeof json> | ReturnType<typeof date> | ReturnType<typeof blob>;
interface Model<Fields> {
name?: string;
pluralName?: string;
slug: string;
pluralSlug?: string;
identifiers?: {
title?: string;
slug?: string;
};
interface Model<Fields> extends Omit<Model$1, 'fields' | 'indexes' | 'triggers' | 'presets'> {
fields?: Fields;
idPrefix?: string;
presets?: Record<string, GetInstructions | WithInstruction>;

@@ -22,0 +13,0 @@ indexes?: Array<ModelIndex<Array<ModelField & {

@@ -76,9 +76,2 @@ // src/model/primitives/blob.ts

// src/model/utils/formatter.ts
import title from "title";
var slugToName = (slug) => {
const name = slug.replace(/([a-z])([A-Z])/g, "$1 $2");
return title(name);
};
// src/model/utils/serializers.ts

@@ -93,3 +86,3 @@ import { getBatchProxy } from "ronin/utils";

slug: key,
name: name ?? slugToName(key),
name,
unique: unique ?? false,

@@ -96,0 +89,0 @@ required: required ?? false,

8

package.json
{
"name": "@ronin/schema",
"version": "0.1.0",
"version": "0.1.1",
"type": "module",

@@ -31,7 +31,5 @@ "description": "Allows for defining the schema of a RONIN database in code.",

"dependencies": {
"@ronin/compiler": "0.10.3",
"@ronin/compiler": "0.12.4",
"@types/bun": "1.1.10",
"@types/title": "3.4.3",
"ronin": "5.0.1",
"title": "3.5.3",
"ronin": "5.1.4",
"zod": "3.23.8"

@@ -38,0 +36,0 @@ },

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