2018-01-08 18:00:14 +05:30
|
|
|
const utils = require('../utils');
|
2018-07-14 21:42:34 +05:30
|
|
|
const numberFormat = require('../utils/numberFormat');
|
2018-02-14 18:20:56 +05:30
|
|
|
const format = require('../utils/format');
|
2018-01-15 17:25:31 +05:30
|
|
|
const errors = require('./errors');
|
2018-02-16 18:43:46 +05:30
|
|
|
const BaseDocument = require('frappejs/model/document');
|
|
|
|
const BaseMeta = require('frappejs/model/meta');
|
2018-01-08 18:00:14 +05:30
|
|
|
|
|
|
|
module.exports = {
|
2018-02-16 18:43:46 +05:30
|
|
|
initLibs(frappe) {
|
2018-01-12 17:55:07 +05:30
|
|
|
Object.assign(frappe, utils);
|
2018-07-14 21:42:34 +05:30
|
|
|
Object.assign(frappe, numberFormat);
|
2018-02-14 18:20:56 +05:30
|
|
|
Object.assign(frappe, format);
|
2018-01-15 17:25:31 +05:30
|
|
|
frappe.errors = errors;
|
2018-02-16 18:43:46 +05:30
|
|
|
frappe.BaseDocument = BaseDocument;
|
|
|
|
frappe.BaseMeta = BaseMeta;
|
2018-01-12 17:55:07 +05:30
|
|
|
}
|
2018-01-08 18:00:14 +05:30
|
|
|
}
|