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

seneca

Package Overview
Dependencies
Maintainers
0
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seneca - npm Package Compare versions

Comparing version 4.0.0-rc2 to 4.0.0-rc3

4

CHANGES.md
## 4.0.0-rc3 2024-07-11
* Dependency updates.
## 4.0.0-rc2 2024-06-06

@@ -4,0 +8,0 @@

3

lib/actions.js
"use strict";
/* Copyright © 2014-2022 Richard Rodger and other contributors, MIT License. */
Object.defineProperty(exports, "__esModule", { value: true });
exports.addActions = void 0;
exports.addActions = addActions;
const legacy_1 = require("./legacy");

@@ -24,3 +24,2 @@ function addActions(instance) {

}
exports.addActions = addActions;
function on_point(msg, reply) {

@@ -27,0 +26,0 @@ reply();

"use strict";
/* Copyright © 2019-2023 Richard Rodger and other contributors, MIT License. */
Object.defineProperty(exports, "__esModule", { value: true });
exports.task = exports.api_message = exports.api_add = void 0;
exports.task = void 0;
exports.api_add = api_add;
exports.api_message = api_message;
const gubu_1 = require("gubu");

@@ -39,3 +41,2 @@ const common_1 = require("./common");

}
exports.api_add = api_add;
function api_message(pattern0, pattern1, action) {

@@ -73,3 +74,2 @@ let actfunc = action || pattern1;

}
exports.api_message = api_message;
const task = {

@@ -76,0 +76,0 @@ translate(spec) {

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

/// <reference types="node" />
declare function wrap(this: any, pin: any, actdef: any, wrapper: any): any;

@@ -3,0 +2,0 @@ declare function fix(this: any, patargs: any, msgargs: any, custom: any): any;

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

/// <reference types="node" />
import Util from 'util';

@@ -3,0 +2,0 @@ declare const error: any;

@@ -7,3 +7,26 @@ /* Copyright © 2010-2022 Richard Rodger and other contributors, MIT License. */

Object.defineProperty(exports, "__esModule", { value: true });
exports.TRACE_ACTION = exports.TRACE_SYNC = exports.TRACE_END = exports.TRACE_START = exports.TRACE_VERSION = exports.TRACE_TAG = exports.TRACE_INSTANCE = exports.TRACE_ID = exports.TRACE_PATTERN = exports.jsonic_stringify = exports.msgstr = exports.error = exports.inspect = exports.tagnid = exports.print = exports.history = exports.make_trace_desc = exports.make_callpoint = exports.autoincr = exports.resolve_option = exports.make_standard_err_log_entry = exports.make_standard_act_log_entry = exports.makedie = exports.each = exports.deep = exports.clean = exports.noop = exports.pincanon = exports.pattern = exports.parse_jsonic = exports.make_plugin_key = exports.wrap_error = exports.stringify = exports.promiser = exports.pins = void 0;
exports.TRACE_ACTION = exports.TRACE_SYNC = exports.TRACE_END = exports.TRACE_START = exports.TRACE_VERSION = exports.TRACE_TAG = exports.TRACE_INSTANCE = exports.TRACE_ID = exports.TRACE_PATTERN = exports.error = exports.tagnid = exports.print = void 0;
exports.pins = pins;
exports.promiser = promiser;
exports.stringify = stringify;
exports.wrap_error = wrap_error;
exports.make_plugin_key = make_plugin_key;
exports.parse_jsonic = parse_jsonic;
exports.pattern = pattern;
exports.pincanon = pincanon;
exports.noop = noop;
exports.clean = clean;
exports.deep = deep;
exports.each = each;
exports.makedie = makedie;
exports.make_standard_act_log_entry = make_standard_act_log_entry;
exports.make_standard_err_log_entry = make_standard_err_log_entry;
exports.resolve_option = resolve_option;
exports.autoincr = autoincr;
exports.make_callpoint = make_callpoint;
exports.make_trace_desc = make_trace_desc;
exports.history = history;
exports.inspect = inspect;
exports.msgstr = msgstr;
exports.jsonic_stringify = jsonic_stringify;
const util_1 = __importDefault(require("util"));

@@ -31,3 +54,2 @@ const fast_safe_stringify_1 = __importDefault(require("fast-safe-stringify"));

}
exports.pins = pins;
function promiser(context, callback) {

@@ -46,7 +68,5 @@ if ('function' === typeof context && null == callback) {

}
exports.promiser = promiser;
function stringify(...args) {
return fast_safe_stringify_1.default(...args);
}
exports.stringify = stringify;
function wrap_error(err) {

@@ -60,3 +80,2 @@ if (err.seneca) {

}
exports.wrap_error = wrap_error;
function make_plugin_key(plugin, origtag) {

@@ -95,3 +114,2 @@ if (null == plugin) {

}
exports.make_plugin_key = make_plugin_key;
const tagnid = (0, nid_1.default)({ length: 3, alphabet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' });

@@ -113,3 +131,2 @@ exports.tagnid = tagnid;

}
exports.parse_jsonic = parse_jsonic;
// Convert pattern object into a normalized jsonic String.

@@ -131,3 +148,2 @@ function pattern(patobj) {

}
exports.pattern = pattern;
function pincanon(inpin) {

@@ -146,5 +162,3 @@ if ('string' == typeof inpin) {

}
exports.pincanon = pincanon;
function noop() { }
exports.noop = noop;
// remove any props containing $

@@ -164,3 +178,2 @@ function clean(obj, opts) {

}
exports.clean = clean;
// rightmost wins

@@ -175,3 +188,2 @@ function deep(...argsarr) {

}
exports.deep = deep;
// Print action result

@@ -192,3 +204,2 @@ const print = Print.print;

}
exports.each = each;
function makedie(instance, ctxt) {

@@ -363,3 +374,2 @@ ctxt = Object.assign(ctxt, instance.die ? instance.die.context : {});

}
exports.makedie = makedie;
function make_standard_act_log_entry(actdef, msg, meta, origmsg, ctxt) {

@@ -386,3 +396,2 @@ let transport = origmsg.transport$ || {};

}
exports.make_standard_act_log_entry = make_standard_act_log_entry;
function make_standard_err_log_entry(err, ctxt) {

@@ -401,7 +410,5 @@ if (!err)

}
exports.make_standard_err_log_entry = make_standard_err_log_entry;
function resolve_option(value, options) {
return 'function' === typeof value ? value(options) : value;
}
exports.resolve_option = resolve_option;
function autoincr() {

@@ -413,7 +420,5 @@ let counter = 0;

}
exports.autoincr = autoincr;
function inspect(val, opts) {
return util_1.default.inspect(val, opts);
}
exports.inspect = inspect;
// Callpoint resolver. Indicates location in calling code.

@@ -435,3 +440,2 @@ function make_callpoint(active) {

}
exports.make_callpoint = make_callpoint;
function make_trace_desc(meta) {

@@ -450,3 +454,2 @@ return [

}
exports.make_trace_desc = make_trace_desc;
// Stringify message for logs, debugging and errors.

@@ -460,3 +463,2 @@ function msgstr(msg, len = 111) {

}
exports.msgstr = msgstr;
function jsonic_strify(val, opts, depth) {

@@ -550,3 +552,2 @@ depth++;

}
exports.jsonic_stringify = jsonic_stringify;
const TRACE_PATTERN = 0;

@@ -573,3 +574,2 @@ exports.TRACE_PATTERN = TRACE_PATTERN;

}
exports.history = history;
class ActHistory {

@@ -576,0 +576,0 @@ constructor(opts) {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.make_logging = void 0;
exports.make_logging = make_logging;
// NOTES

@@ -54,3 +54,2 @@ // Valid log level values range from 100 to 999 inclusive only.

}
exports.make_logging = make_logging;
function flat_logger(entry) {

@@ -57,0 +56,0 @@ let opts = this.options();

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.resolve_options = void 0;
exports.resolve_options = resolve_options;
const fs_1 = __importDefault(require("fs"));

@@ -235,3 +235,2 @@ const path_1 = __importDefault(require("path"));

}
exports.resolve_options = resolve_options;
function boolify(v) {

@@ -238,0 +237,0 @@ try {

/* Copyright © 2015-2021 Richard Rodger and other contributors, MIT License. */
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.Print = void 0;
exports.Print = Print;
// Node API modules

@@ -23,3 +23,2 @@ var Util = require('util');

}
exports.Print = Print;
function print_options(instance, options) {

@@ -26,0 +25,0 @@ if (options.debug.print.options) {

"use strict";
/* Copyright © 2019-2022 Richard Rodger and other contributors, MIT License. */
Object.defineProperty(exports, "__esModule", { value: true });
exports.make_ready = void 0;
exports.make_ready = make_ready;
const common_1 = require("./common");

@@ -20,3 +20,2 @@ // useful when defining services!

}
exports.make_ready = make_ready;
// TODO should callback with plugin errs, or throw them!

@@ -23,0 +22,0 @@ function api_ready(ready_func) {

/* Copyright © 2020-2023 Richard Rodger and other contributors, MIT License. */
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.api_sub = void 0;
exports.api_sub = api_sub;
const gubu_1 = require("gubu");

@@ -52,3 +52,2 @@ const common_1 = require("./common");

}
exports.api_sub = api_sub;
//# sourceMappingURL=sub.js.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.transport = void 0;
exports.transport = transport;
const util_1 = __importDefault(require("util"));

@@ -42,3 +42,2 @@ const common_1 = require("./common");

}
exports.transport = transport;
function externalize_msg(_seneca, msg, meta) {

@@ -45,0 +44,0 @@ if (!msg)

{
"name": "seneca",
"description": "A Microservices Framework for Node.js",
"version": "4.0.0-rc2",
"version": "4.0.0-rc3",
"license": "MIT",

@@ -90,3 +90,3 @@ "homepage": "http://senecajs.org",

"gate-executor": "^3.1.1",
"gubu": "^7.1.0",
"gubu": "^8.1.0",
"@jsonic/jsonic-next": "2.12.1",

@@ -101,3 +101,3 @@ "lodash.defaultsdeep": "^4.6.1",

"rolling-stats": "^0.2.1",
"use-plugin": "^13.0.1"
"use-plugin": "^13.1.0"
},

@@ -108,3 +108,3 @@ "devDependencies": {

"@seneca/test-plugin": "0.1.0",
"@types/node": "^20.14.2",
"@types/node": "^20.14.10",
"async": "^3.2.5",

@@ -117,9 +117,9 @@ "bench": "^0.3.6",

"lolex": "^6.0.0",
"prettier": "^3.3.1",
"seneca-entity": "^25.1.3",
"prettier": "^3.3.2",
"seneca-entity": "^27.1.1",
"seneca-error-test": "^0.2.2",
"seneca-promisify": "^3.7.1",
"seneca-promisify": "^3.7.2",
"summary": "^2.1.0",
"typescript": "^5.4.5"
"typescript": "^5.5.3"
}
}

@@ -181,3 +181,5 @@ /* Copyright © 2010-2023 Richard Rodger and other contributors, MIT License. */

exit: (...args) => {
process.exit(...args);
console.log('EXIT', args);
console.trace();
// process.exit(...args)
},

@@ -184,0 +186,0 @@ // Close instance on these signals, if true.

@@ -245,3 +245,5 @@ /* Copyright © 2010-2023 Richard Rodger and other contributors, MIT License. */

exit: (...args: any[]) => {
process.exit(...args)
console.log('EXIT', args)
console.trace()
// process.exit(...args)
},

@@ -248,0 +250,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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