Files
Martien 5605b9b49a Initial commit: n8n Strike API node
- Add Strike API credentials configuration
- Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates)
- Add comprehensive operation descriptions for all resources
- Include CLAUDE.MD documentation
- Set up build configuration with TypeScript, ESLint, and Prettier

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-10 11:00:38 +01:00

35 lines
1.1 KiB
JavaScript

"use strict";
var includes = require("../array/#/contains")
, uniq = require("../array/#/uniq")
, copyDeep = require("./copy-deep")
, objForEach = require("./for-each")
, isPlainObject = require("./is-plain-object")
, ensureValue = require("./valid-value");
var isArray = Array.isArray, slice = Array.prototype.slice;
var deepAssign = function (target, source) {
if (target === source) return target;
if (isPlainObject(target) && isPlainObject(source)) {
objForEach(source, function (value, key) { target[key] = deepAssign(target[key], value); });
return target;
}
if (isArray(target) && isArray(source)) {
source.forEach(function (item) {
if (includes.call(target, item)) return;
if (isArray(item) || isPlainObject(item)) item = copyDeep(item);
target.push(item);
});
return target;
}
if (isPlainObject(source) || isArray(source)) return copyDeep(source);
return source;
};
module.exports = function (target /*, ...objects*/) {
return uniq
.call([ensureValue(target)].concat(slice.call(arguments, 1).map(ensureValue)))
.reduce(deepAssign);
};