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

ice-node

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ice-node - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

stat.js

3

lib_test.js

@@ -89,5 +89,6 @@ const lib = require("./lib.js");

app.get("/stats", req => {
return lib.Response.json(req.get_stats());
console.log(req.get_stats());
return lib.Response.json(req.get_stats(true));
});
app.listen("127.0.0.1:1122");
const core = require("./build/Release/ice_node_core");
const stat = require("./stat.js");
module.exports.static = require("./static.js");

@@ -288,6 +289,13 @@

Request.prototype.get_stats = function() {
Request.prototype.get_stats = function(load_system_stats = false) {
if(load_system_stats) {
stat.update_system_stats(this);
}
return JSON.parse(core.get_stats_from_request(this.call_info));
}
Request.prototype.set_custom_stat = function(k, v) {
core.set_custom_stat(this.call_info, k, v);
}
module.exports.Response = Response;

@@ -294,0 +302,0 @@ function Response({ status = 200, headers = {}, cookies = {}, body = "", file = null, template_name = null, template_params = {} }) {

{
"name": "ice-node",
"version": "0.1.7",
"version": "0.1.8",
"description": "Bindings for the Ice Web Framework",

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

Sorry, the diff of this file is not supported yet

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