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>
This commit is contained in:
14
node_modules/jsonrepair/lib/cjs/utils/JSONRepairError.js
generated
vendored
Normal file
14
node_modules/jsonrepair/lib/cjs/utils/JSONRepairError.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.JSONRepairError = void 0;
|
||||
class JSONRepairError extends Error {
|
||||
constructor(message, position) {
|
||||
super(`${message} at position ${position}`);
|
||||
this.position = position;
|
||||
}
|
||||
}
|
||||
exports.JSONRepairError = JSONRepairError;
|
||||
//# sourceMappingURL=JSONRepairError.js.map
|
||||
1
node_modules/jsonrepair/lib/cjs/utils/JSONRepairError.js.map
generated
vendored
Normal file
1
node_modules/jsonrepair/lib/cjs/utils/JSONRepairError.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"JSONRepairError.js","names":["JSONRepairError","Error","constructor","message","position","exports"],"sources":["../../../src/utils/JSONRepairError.ts"],"sourcesContent":["export class JSONRepairError extends Error {\n position: number\n\n constructor(message: string, position: number) {\n super(`${message} at position ${position}`)\n\n this.position = position\n }\n}\n"],"mappings":";;;;;;AAAO,MAAMA,eAAe,SAASC,KAAK,CAAC;EAGzCC,WAAWA,CAACC,OAAe,EAAEC,QAAgB,EAAE;IAC7C,KAAK,CAAC,GAAGD,OAAO,gBAAgBC,QAAQ,EAAE,CAAC;IAE3C,IAAI,CAACA,QAAQ,GAAGA,QAAQ;EAC1B;AACF;AAACC,OAAA,CAAAL,eAAA,GAAAA,eAAA","ignoreList":[]}
|
||||
174
node_modules/jsonrepair/lib/cjs/utils/stringUtils.js
generated
vendored
Normal file
174
node_modules/jsonrepair/lib/cjs/utils/stringUtils.js
generated
vendored
Normal file
@ -0,0 +1,174 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.endsWithCommaOrNewline = endsWithCommaOrNewline;
|
||||
exports.insertBeforeLastWhitespace = insertBeforeLastWhitespace;
|
||||
exports.isControlCharacter = isControlCharacter;
|
||||
exports.isDelimiter = isDelimiter;
|
||||
exports.isDigit = isDigit;
|
||||
exports.isDoubleQuote = isDoubleQuote;
|
||||
exports.isDoubleQuoteLike = isDoubleQuoteLike;
|
||||
exports.isFunctionNameChar = isFunctionNameChar;
|
||||
exports.isFunctionNameCharStart = isFunctionNameCharStart;
|
||||
exports.isHex = isHex;
|
||||
exports.isQuote = isQuote;
|
||||
exports.isSingleQuote = isSingleQuote;
|
||||
exports.isSingleQuoteLike = isSingleQuoteLike;
|
||||
exports.isSpecialWhitespace = isSpecialWhitespace;
|
||||
exports.isStartOfValue = isStartOfValue;
|
||||
exports.isUnquotedStringDelimiter = isUnquotedStringDelimiter;
|
||||
exports.isValidStringCharacter = isValidStringCharacter;
|
||||
exports.isWhitespace = isWhitespace;
|
||||
exports.isWhitespaceExceptNewline = isWhitespaceExceptNewline;
|
||||
exports.regexUrlStart = exports.regexUrlChar = void 0;
|
||||
exports.removeAtIndex = removeAtIndex;
|
||||
exports.stripLastOccurrence = stripLastOccurrence;
|
||||
const codeSpace = 0x20; // " "
|
||||
const codeNewline = 0xa; // "\n"
|
||||
const codeTab = 0x9; // "\t"
|
||||
const codeReturn = 0xd; // "\r"
|
||||
const codeNonBreakingSpace = 0xa0;
|
||||
const codeEnQuad = 0x2000;
|
||||
const codeHairSpace = 0x200a;
|
||||
const codeNarrowNoBreakSpace = 0x202f;
|
||||
const codeMediumMathematicalSpace = 0x205f;
|
||||
const codeIdeographicSpace = 0x3000;
|
||||
function isHex(char) {
|
||||
return /^[0-9A-Fa-f]$/.test(char);
|
||||
}
|
||||
function isDigit(char) {
|
||||
return char >= '0' && char <= '9';
|
||||
}
|
||||
function isValidStringCharacter(char) {
|
||||
// note that the valid range is between \u{0020} and \u{10ffff},
|
||||
// but in JavaScript it is not possible to create a code point larger than
|
||||
// \u{10ffff}, so there is no need to test for that here.
|
||||
return char >= '\u0020';
|
||||
}
|
||||
function isDelimiter(char) {
|
||||
return ',:[]/{}()\n+'.includes(char);
|
||||
}
|
||||
function isFunctionNameCharStart(char) {
|
||||
return char >= 'a' && char <= 'z' || char >= 'A' && char <= 'Z' || char === '_' || char === '$';
|
||||
}
|
||||
function isFunctionNameChar(char) {
|
||||
return char >= 'a' && char <= 'z' || char >= 'A' && char <= 'Z' || char === '_' || char === '$' || char >= '0' && char <= '9';
|
||||
}
|
||||
|
||||
// matches "https://" and other schemas
|
||||
const regexUrlStart = exports.regexUrlStart = /^(http|https|ftp|mailto|file|data|irc):\/\/$/;
|
||||
|
||||
// matches all valid URL characters EXCEPT "[", "]", and ",", since that are important JSON delimiters
|
||||
const regexUrlChar = exports.regexUrlChar = /^[A-Za-z0-9-._~:/?#@!$&'()*+;=]$/;
|
||||
function isUnquotedStringDelimiter(char) {
|
||||
return ',[]/{}\n+'.includes(char);
|
||||
}
|
||||
function isStartOfValue(char) {
|
||||
return isQuote(char) || regexStartOfValue.test(char);
|
||||
}
|
||||
|
||||
// alpha, number, minus, or opening bracket or brace
|
||||
const regexStartOfValue = /^[[{\w-]$/;
|
||||
function isControlCharacter(char) {
|
||||
return char === '\n' || char === '\r' || char === '\t' || char === '\b' || char === '\f';
|
||||
}
|
||||
/**
|
||||
* Check if the given character is a whitespace character like space, tab, or
|
||||
* newline
|
||||
*/
|
||||
function isWhitespace(text, index) {
|
||||
const code = text.charCodeAt(index);
|
||||
return code === codeSpace || code === codeNewline || code === codeTab || code === codeReturn;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the given character is a whitespace character like space or tab,
|
||||
* but NOT a newline
|
||||
*/
|
||||
function isWhitespaceExceptNewline(text, index) {
|
||||
const code = text.charCodeAt(index);
|
||||
return code === codeSpace || code === codeTab || code === codeReturn;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the given character is a special whitespace character, some
|
||||
* unicode variant
|
||||
*/
|
||||
function isSpecialWhitespace(text, index) {
|
||||
const code = text.charCodeAt(index);
|
||||
return code === codeNonBreakingSpace || code >= codeEnQuad && code <= codeHairSpace || code === codeNarrowNoBreakSpace || code === codeMediumMathematicalSpace || code === codeIdeographicSpace;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test whether the given character is a quote or double quote character.
|
||||
* Also tests for special variants of quotes.
|
||||
*/
|
||||
function isQuote(char) {
|
||||
// the first check double quotes, since that occurs most often
|
||||
return isDoubleQuoteLike(char) || isSingleQuoteLike(char);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test whether the given character is a double quote character.
|
||||
* Also tests for special variants of double quotes.
|
||||
*/
|
||||
function isDoubleQuoteLike(char) {
|
||||
return char === '"' || char === '\u201c' || char === '\u201d';
|
||||
}
|
||||
|
||||
/**
|
||||
* Test whether the given character is a double quote character.
|
||||
* Does NOT test for special variants of double quotes.
|
||||
*/
|
||||
function isDoubleQuote(char) {
|
||||
return char === '"';
|
||||
}
|
||||
|
||||
/**
|
||||
* Test whether the given character is a single quote character.
|
||||
* Also tests for special variants of single quotes.
|
||||
*/
|
||||
function isSingleQuoteLike(char) {
|
||||
return char === "'" || char === '\u2018' || char === '\u2019' || char === '\u0060' || char === '\u00b4';
|
||||
}
|
||||
|
||||
/**
|
||||
* Test whether the given character is a single quote character.
|
||||
* Does NOT test for special variants of single quotes.
|
||||
*/
|
||||
function isSingleQuote(char) {
|
||||
return char === "'";
|
||||
}
|
||||
|
||||
/**
|
||||
* Strip last occurrence of textToStrip from text
|
||||
*/
|
||||
function stripLastOccurrence(text, textToStrip) {
|
||||
let stripRemainingText = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
||||
const index = text.lastIndexOf(textToStrip);
|
||||
return index !== -1 ? text.substring(0, index) + (stripRemainingText ? '' : text.substring(index + 1)) : text;
|
||||
}
|
||||
function insertBeforeLastWhitespace(text, textToInsert) {
|
||||
let index = text.length;
|
||||
if (!isWhitespace(text, index - 1)) {
|
||||
// no trailing whitespaces
|
||||
return text + textToInsert;
|
||||
}
|
||||
while (isWhitespace(text, index - 1)) {
|
||||
index--;
|
||||
}
|
||||
return text.substring(0, index) + textToInsert + text.substring(index);
|
||||
}
|
||||
function removeAtIndex(text, start, count) {
|
||||
return text.substring(0, start) + text.substring(start + count);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test whether a string ends with a newline or comma character and optional whitespace
|
||||
*/
|
||||
function endsWithCommaOrNewline(text) {
|
||||
return /[,\n][ \t\r]*$/.test(text);
|
||||
}
|
||||
//# sourceMappingURL=stringUtils.js.map
|
||||
1
node_modules/jsonrepair/lib/cjs/utils/stringUtils.js.map
generated
vendored
Normal file
1
node_modules/jsonrepair/lib/cjs/utils/stringUtils.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user