New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@alpinesoft/railjet

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alpinesoft/railjet - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

6

example/index.ts

@@ -6,3 +6,2 @@ import App from "../src/App";

import Context from "../src/Context";
import Param from "../src/Param";
import * as Types from "../src/Types";

@@ -21,3 +20,6 @@

params: [
new Param("test", Types.Boolean.isRequired(), true)
{
name: "test",
type: Types.Boolean.isRequired()
}
]

@@ -24,0 +26,0 @@ });

@@ -5,6 +5,4 @@ import Action from "./src/Action";

import Context from "./src/Context";
import Header from "./src/Header";
import HttpError from "./src/HttpError";
import Methods from "./src/Methods";
import Param from "./src/Param";
import * as Types from "./src/Types";

@@ -17,7 +15,5 @@

Context,
Header,
HttpError,
Methods,
Param,
Types
}
{
"name": "@alpinesoft/railjet",
"version": "0.0.7",
"version": "0.0.8",
"description": "Lightweight Node.js library to build advanced JSON APIs.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

import Method from "./Methods";
import Context from "./Context";
import HttpError from "./HttpError";
import Header from "./Header";
import Param from "./Param";
import BodyField from "./BodyField";
import * as Types from "./Types";

@@ -13,4 +12,4 @@ interface ActionOpts {

description?: string;
headers?: Header[];
params?: Param[];
headers?: HeaderDescription[];
params?: ParamDescription[];
body?: BodyField[];

@@ -20,2 +19,12 @@ hide?: boolean;

interface ParamDescription {
name: string;
type: Types.Type;
}
interface HeaderDescription {
name: string;
type: Types.Type;
}
class Action {

@@ -25,4 +34,4 @@

path: string;
headers: Header[];
params: Param[];
headers: HeaderDescription[];
params: ParamDescription[];
body: BodyField[];

@@ -29,0 +38,0 @@ name: string;

import Twig from 'twig';
import * as path from "path";

@@ -9,3 +10,3 @@ import Context from "../Context";

const t = Twig.twig({
path: "./templates/docs.twig",
path: path.join(__dirname, "..", "..", "templates", "docs.twig"),
async: false

@@ -12,0 +13,0 @@ });

@@ -6,3 +6,3 @@ {

"esModuleInterop": true,
"target": "es2016",
"target": "es6",
"noImplicitAny": true,

@@ -9,0 +9,0 @@ "moduleResolution": "node",

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