mm_expand 2.1.9 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ret.js +4 -1
- package/package.json +1 -1
package/lib/ret.js
CHANGED
|
@@ -220,7 +220,10 @@ Ret.prototype.list = function (list, count, id, diy = true) {
|
|
|
220
220
|
* @returns {Object} 对象响应格式
|
|
221
221
|
*/
|
|
222
222
|
Ret.prototype.obj = function (obj, id) {
|
|
223
|
-
|
|
223
|
+
const result = {
|
|
224
|
+
obj: obj
|
|
225
|
+
};
|
|
226
|
+
return this.body(result, null, id);
|
|
224
227
|
};
|
|
225
228
|
|
|
226
229
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_expand",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Super Meimei Prototype Function Extension Module - Enhanced operations for string, array, object, date manipulation with error prevention and simplified business logic.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|