auto-commit for d4766860-f253-4ebc-a836-6c1ca9f17d9a

This commit is contained in:
emergent-agent-e1
2025-11-08 10:46:19 +00:00
parent 9d5f0582b7
commit 11e751f2ef
346 changed files with 346 additions and 0 deletions
@@ -0,0 +1 @@
{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n exports.promisify = promisify;\n /**\n * @name promisify\n * @summary Wraps an async callback into a `Promise`\n * @description\n * Wraps the supplied async function `fn` that has a standard JS callback `(error: Error, result: any)` into a `Promise`, passing the supplied parameters. When `error` is set, the Promise is rejected, else the Promise resolves with the `result` value.\n * @example\n * <BR>\n *\n * ```javascript\n * const { promisify } from '@polkadot/util';\n *\n * await promisify(null, ((a, cb) => cb(null, a), true); // resolves with `true`\n * await promisify(null, (cb) => cb(new Error('error!'))); // rejects with `error!`\n * ```\n */\n function promisify(self, fn) {\n for (var _len = arguments.length, params = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n params[_key - 2] = arguments[_key];\n }\n return new Promise(function (resolve, reject) {\n fn.apply(self, params.concat(function (error, result) {\n if (error) {\n reject(error);\n } else {\n resolve(result);\n }\n }));\n });\n }\n});","lineCount":37,"map":[[7,2,16,0,"exports"],[7,9,16,0],[7,10,16,0,"promisify"],[7,19,16,0],[7,22,16,0,"promisify"],[7,31,16,0],[8,2,1,0],[9,0,2,0],[10,0,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,0,15,0],[23,2,16,7],[23,11,16,16,"promisify"],[23,20,16,25,"promisify"],[23,21,16,26,"self"],[23,25,16,30],[23,27,16,32,"fn"],[23,29,16,34],[23,31,16,47],[24,4,16,47],[24,13,16,47,"_len"],[24,17,16,47],[24,20,16,47,"arguments"],[24,29,16,47],[24,30,16,47,"length"],[24,36,16,47],[24,38,16,39,"params"],[24,44,16,45],[24,51,16,45,"Array"],[24,56,16,45],[24,57,16,45,"_len"],[24,61,16,45],[24,68,16,45,"_len"],[24,72,16,45],[24,83,16,45,"_key"],[24,87,16,45],[24,93,16,45,"_key"],[24,97,16,45],[24,100,16,45,"_len"],[24,104,16,45],[24,106,16,45,"_key"],[24,110,16,45],[25,6,16,39,"params"],[25,12,16,45],[25,13,16,45,"_key"],[25,17,16,45],[25,25,16,45,"arguments"],[25,34,16,45],[25,35,16,45,"_key"],[25,39,16,45],[26,4,16,45],[27,4,17,4],[27,11,17,11],[27,15,17,15,"Promise"],[27,22,17,22],[27,23,17,23],[27,33,17,24,"resolve"],[27,40,17,31],[27,42,17,33,"reject"],[27,48,17,39],[27,50,17,44],[28,6,18,8,"fn"],[28,8,18,10],[28,9,18,11,"apply"],[28,14,18,16],[28,15,18,17,"self"],[28,19,18,21],[28,21,18,23,"params"],[28,27,18,29],[28,28,18,30,"concat"],[28,34,18,36],[28,35,18,37],[28,45,18,38,"error"],[28,50,18,43],[28,52,18,45,"result"],[28,58,18,51],[28,60,18,56],[29,8,19,12],[29,12,19,16,"error"],[29,17,19,21],[29,19,19,23],[30,10,20,16,"reject"],[30,16,20,22],[30,17,20,23,"error"],[30,22,20,28],[30,23,20,29],[31,8,21,12],[31,9,21,13],[31,15,22,17],[32,10,23,16,"resolve"],[32,17,23,23],[32,18,23,24,"result"],[32,24,23,30],[32,25,23,31],[33,8,24,12],[34,6,25,8],[34,7,25,9],[34,8,25,10],[34,9,25,11],[35,4,26,4],[35,5,26,5],[35,6,26,6],[36,2,27,0],[37,0,27,1],[37,3]],"functionMap":{"names":["<global>","promisify","Promise$argument_0","params.concat$argument_0"],"mappings":"AAA;OCe;uBCC;qCCC;SDO;KDC;CDC"},"hasCjsExports":false},"type":"js/module"}]}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n exports.objectProperty = objectProperty;\n exports.objectProperties = objectProperties;\n /**\n * @name objectProperty\n * @summary Assign a get property on the input object\n */\n function objectProperty(that, key, getter, getName) {\n var index = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;\n var name = getName ? getName(key, index) : key;\n // There are 3 approaches here -\n // - Object.prototype.hasOwnProperty.call(that, key) - this only checks the current class, i.e\n // will retuirn false if the property is set in the parent class\n // - isUndefined(...) - this may yield a false positive when the property is there, but not set.\n // Additionally, on pre-defined getters it may make a call\n // - key in that - Does not need to be combined with either of the above and checks the full chain\n if (!(name in that)) {\n Object.defineProperty(that, name, {\n enumerable: true,\n // Unlike in lazy, we always call into the upper function, i.e. this method\n // does not cache old values (it is expected to be used for dynamic values)\n get: function get() {\n return getter(key, index, this);\n }\n });\n }\n }\n /**\n * @name objectProperties\n * @summary Assign get properties on the input object\n */\n function objectProperties(that, keys, getter, getName) {\n for (var i = 0, count = keys.length; i < count; i++) {\n objectProperty(that, keys[i], getter, getName, i);\n }\n }\n});","lineCount":42,"map":[[7,2,5,0,"exports"],[7,9,5,0],[7,10,5,0,"objectProperty"],[7,24,5,0],[7,27,5,0,"objectProperty"],[7,41,5,0],[8,2,30,0,"exports"],[8,9,30,0],[8,10,30,0,"objectProperties"],[8,26,30,0],[8,29,30,0,"objectProperties"],[8,45,30,0],[9,2,1,0],[10,0,2,0],[11,0,3,0],[12,0,4,0],[13,2,5,7],[13,11,5,16,"objectProperty"],[13,25,5,30,"objectProperty"],[13,26,5,31,"that"],[13,30,5,35],[13,32,5,37,"key"],[13,35,5,40],[13,37,5,42,"getter"],[13,43,5,48],[13,45,5,50,"getName"],[13,52,5,57],[13,54,5,70],[14,4,5,70],[14,8,5,59,"index"],[14,13,5,64],[14,16,5,64,"arguments"],[14,25,5,64],[14,26,5,64,"length"],[14,32,5,64],[14,40,5,64,"arguments"],[14,49,5,64],[14,57,5,64,"undefined"],[14,66,5,64],[14,69,5,64,"arguments"],[14,78,5,64],[14,84,5,67],[14,85,5,68],[15,4,6,4],[15,8,6,10,"name"],[15,12,6,14],[15,15,6,17,"getName"],[15,22,6,24],[15,25,7,10,"getName"],[15,32,7,17],[15,33,7,18,"key"],[15,36,7,21],[15,38,7,23,"index"],[15,43,7,28],[15,44,7,29],[15,47,8,10,"key"],[15,50,8,13],[16,4,9,4],[17,4,10,4],[18,4,11,4],[19,4,12,4],[20,4,13,4],[21,4,14,4],[22,4,15,4],[22,8,15,8],[22,10,15,10,"name"],[22,14,15,14],[22,18,15,18,"that"],[22,22,15,22],[22,23,15,23],[22,25,15,25],[23,6,16,8,"Object"],[23,12,16,14],[23,13,16,15,"defineProperty"],[23,27,16,29],[23,28,16,30,"that"],[23,32,16,34],[23,34,16,36,"name"],[23,38,16,40],[23,40,16,42],[24,8,17,12,"enumerable"],[24,18,17,22],[24,20,17,24],[24,24,17,28],[25,8,18,12],[26,8,19,12],[27,8,20,12,"get"],[27,11,20,15],[27,13,20,17],[27,22,20,12,"get"],[27,25,20,15,"get"],[27,26,20,15],[27,28,20,29],[28,10,21,16],[28,17,21,23,"getter"],[28,23,21,29],[28,24,21,30,"key"],[28,27,21,33],[28,29,21,35,"index"],[28,34,21,40],[28,36,21,42],[28,40,21,46],[28,41,21,47],[29,8,22,12],[30,6,23,8],[30,7,23,9],[30,8,23,10],[31,4,24,4],[32,2,25,0],[33,2,26,0],[34,0,27,0],[35,0,28,0],[36,0,29,0],[37,2,30,7],[37,11,30,16,"objectProperties"],[37,27,30,32,"objectProperties"],[37,28,30,33,"that"],[37,32,30,37],[37,34,30,39,"keys"],[37,38,30,43],[37,40,30,45,"getter"],[37,46,30,51],[37,48,30,53,"getName"],[37,55,30,60],[37,57,30,62],[38,4,31,4],[38,9,31,9],[38,13,31,13,"i"],[38,14,31,14],[38,17,31,17],[38,18,31,18],[38,20,31,20,"count"],[38,25,31,25],[38,28,31,28,"keys"],[38,32,31,32],[38,33,31,33,"length"],[38,39,31,39],[38,41,31,41,"i"],[38,42,31,42],[38,45,31,45,"count"],[38,50,31,50],[38,52,31,52,"i"],[38,53,31,53],[38,55,31,55],[38,57,31,57],[39,6,32,8,"objectProperty"],[39,20,32,22],[39,21,32,23,"that"],[39,25,32,27],[39,27,32,29,"keys"],[39,31,32,33],[39,32,32,34,"i"],[39,33,32,35],[39,34,32,36],[39,36,32,38,"getter"],[39,42,32,44],[39,44,32,46,"getName"],[39,51,32,53],[39,53,32,55,"i"],[39,54,32,56],[39,55,32,57],[40,4,33,4],[41,2,34,0],[42,0,34,1],[42,3]],"functionMap":{"names":["<global>","objectProperty","Object.defineProperty$argument_2.get","objectProperties"],"mappings":"AAA;OCI;iBCe;aDE;CDG;OGK;CHI"},"hasCjsExports":false},"type":"js/module"}]}