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

create-kitql

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-kitql - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

13

bin.js
#!/usr/bin/env node
import * as p from '@clack/prompts'
import { bold, cyan, gray, green, italic } from '@kitql/helpers'
import { program, Option } from 'commander'
import fs from 'fs'

@@ -9,3 +6,7 @@ import path from 'path'

import { fileURLToPath } from 'url'
import * as p from '@clack/prompts'
import { Option, program } from 'commander'
import { bold, cyan, gray, green, italic } from '@kitql/helpers'
const { version } = JSON.parse(fs.readFileSync(new URL('package.json', import.meta.url), 'utf-8'))

@@ -19,3 +20,3 @@ // eslint-disable-next-line no-console

.readdirSync(templatesDir)
.map(templateDir => {
.map((templateDir) => {
// in .meta.json you can find:

@@ -35,3 +36,3 @@ /** @type {{label?: string, hint?: string, order?: number}} */

new Option('-t, --template <template>', 'template you want to use').choices(
options.map(c => c.value),
options.map((c) => c.value),
),

@@ -115,3 +116,3 @@ )

const templateDir = path.join(templatesDir, template)
const templateMeta = options.find(option => option.value === template)
const templateMeta = options.find((option) => option.value === template)
if (!templateMeta) {

@@ -118,0 +119,0 @@ // this will never happen, but it helps to types later

@@ -9,3 +9,3 @@ {

],
"version": "0.1.4",
"version": "0.1.5",
"license": "MIT",

@@ -22,3 +22,3 @@ "type": "module",

"@types/node": "^20.9.2",
"@kitql/eslint-config": "0.1.1"
"@kitql/eslint-config": "0.3.1"
},

@@ -28,3 +28,3 @@ "dependencies": {

"@kitql/helpers": "0.8.8",
"commander": "^11.1.0"
"commander": "^12.0.0"
},

@@ -31,0 +31,0 @@ "sideEffects": false,

@@ -19,3 +19,3 @@ {

"devDependencies": {
"@playwright/test": "^1.28.1",
"@playwright/test": "^1.41.2",
"@sveltejs/adapter-auto": "^3.0.0",

@@ -36,5 +36,5 @@ "@sveltejs/kit": "^2.0.0",

"vite": "^5.0.0",
"vite-plugin-kit-routes": "0.5.1",
"vite-plugin-kit-routes": "0.5.2",
"vitest": "^1.0.0"
}
}

@@ -19,4 +19,4 @@ {

"devDependencies": {
"@kitql/eslint-config": "^0.1.1",
"@playwright/test": "^1.28.1",
"@kitql/eslint-config": "^0.3.1",
"@playwright/test": "^1.41.2",
"@sveltejs/adapter-auto": "^3.0.0",

@@ -26,3 +26,3 @@ "@sveltejs/kit": "^2.0.0",

"pg": "^8.11.3",
"remult": "^0.24.1",
"remult": "^0.25.0",
"svelte": "^4.2.7",

@@ -33,6 +33,6 @@ "svelte-check": "^3.6.0",

"vite": "^5.0.0",
"vite-plugin-kit-routes": "^0.5.1",
"vite-plugin-stripper": "^0.3.2",
"vite-plugin-kit-routes": "^0.5.2",
"vite-plugin-stripper": "^0.3.3",
"vitest": "^1.0.0"
}
}

@@ -0,8 +1,7 @@

// import { createPostgresDataProvider } from 'remult/postgres';
// import { DATABASE_URL } from '$env/static/private'
import { remult } from 'remult'
import { remultSveltekit } from 'remult/remult-sveltekit'
// import { createPostgresDataProvider } from 'remult/postgres';
// import { DATABASE_URL } from '$env/static/private';
import { entities, controllers } from '../shared'
import { Task } from '../shared'
import { controllers, entities, Task } from '../shared'

@@ -9,0 +8,0 @@ export const handleRemult = remultSveltekit({

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

import { describe, it, expect } from 'vitest'
import { describe, expect, it } from 'vitest'

@@ -3,0 +3,0 @@ import { route } from './ROUTES'

@@ -11,3 +11,3 @@ import { BackendMethod, Entity, Fields, remult } from 'remult'

@Fields.string<Task>({
validate: task => {
validate: (task) => {
if (task.title.length < 3) throw 'The title must be at least 3 characters long'

@@ -14,0 +14,0 @@ },

@@ -13,4 +13,4 @@ {

"strict": true,
"moduleResolution": "bundler"
}
"moduleResolution": "bundler",
},
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias

@@ -17,0 +17,0 @@ //

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