2018-01-08 12:30:14 +00:00
|
|
|
const utils = require('../utils');
|
2018-02-14 12:50:56 +00:00
|
|
|
const format = require('../utils/format');
|
2018-01-15 11:55:31 +00:00
|
|
|
const errors = require('./errors');
|
2018-02-16 13:13:46 +00:00
|
|
|
const BaseDocument = require('frappejs/model/document');
|
|
|
|
const BaseMeta = require('frappejs/model/meta');
|
2018-01-08 12:30:14 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2021-12-31 08:10:17 +00:00
|
|
|
initLibs(frappe) {
|
|
|
|
Object.assign(frappe, utils);
|
|
|
|
Object.assign(frappe, format);
|
|
|
|
frappe.errors = errors;
|
|
|
|
frappe.BaseDocument = BaseDocument;
|
|
|
|
frappe.BaseMeta = BaseMeta;
|
|
|
|
},
|
|
|
|
};
|