- 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>
32 lines
753 B
JavaScript
32 lines
753 B
JavaScript
/*!
|
|
* define-property <https://github.com/jonschlinkert/define-property>
|
|
*
|
|
* Copyright (c) 2015, Jon Schlinkert.
|
|
* Licensed under the MIT License.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var isDescriptor = require('is-descriptor');
|
|
|
|
module.exports = function defineProperty(obj, prop, val) {
|
|
if (typeof obj !== 'object' && typeof obj !== 'function') {
|
|
throw new TypeError('expected an object or function.');
|
|
}
|
|
|
|
if (typeof prop !== 'string') {
|
|
throw new TypeError('expected `prop` to be a string.');
|
|
}
|
|
|
|
if (isDescriptor(val) && ('set' in val || 'get' in val)) {
|
|
return Object.defineProperty(obj, prop, val);
|
|
}
|
|
|
|
return Object.defineProperty(obj, prop, {
|
|
configurable: true,
|
|
enumerable: false,
|
|
writable: true,
|
|
value: val
|
|
});
|
|
};
|