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

kamboja

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kamboja - npm Package Compare versions

Comparing version 0.0.1-53 to 0.0.1-54

5

lib/dts/core.d.ts

@@ -159,3 +159,3 @@ /// <reference types="node" />

getParam(key: string): string;
isAccept(mime: string): boolean;
getAccepts(key: string | string[]): string | boolean;
isAuthenticated(): boolean;

@@ -189,2 +189,5 @@ getUserRole(): string;

status: number;
header: {
[key: string]: string | string[];
};
cookies: Cookie[];

@@ -191,0 +194,0 @@ send(): any;

2

lib/dts/unit-test/http-request.d.ts

@@ -23,4 +23,4 @@ /// <reference types="node" />

getParam(key: string): string;
isAccept(mime: string): boolean;
isAuthenticated(): boolean;
getAccepts(key: string | string[]): string | boolean;
getUserRole(): string;

@@ -27,0 +27,0 @@ controllerInfo?: Core.ControllerInfo;

@@ -6,4 +6,7 @@ import * as Core from "../core";

status: number;
header: {
[key: string]: string | string[];
};
cookies: Core.Cookie[];
send(): void;
}

@@ -15,3 +15,3 @@ "use strict";

this.type = "application/json";
if (request.isAccept("text/xml")) {
if (request.getAccepts("xml")) {
this.type = "text/xml";

@@ -18,0 +18,0 @@ this.body = Xml(this.body);

@@ -9,4 +9,4 @@ "use strict";

HttpRequest.prototype.getParam = function (key) { return; };
HttpRequest.prototype.isAccept = function (mime) { return false; };
HttpRequest.prototype.isAuthenticated = function () { return false; };
HttpRequest.prototype.getAccepts = function (key) { return false; };
HttpRequest.prototype.getUserRole = function () { return ""; };

@@ -13,0 +13,0 @@ return HttpRequest;

{
"name": "kamboja",
"version": "0.0.1-53",
"version": "0.0.1-54",
"description": "MVC Framework powered by TypeScript",

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

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