2
0
mirror of https://github.com/frappe/books.git synced 2025-01-26 16:48:28 +00:00
books/common/index.js

18 lines
508 B
JavaScript
Raw Normal View History

2018-01-08 18:00:14 +05:30
const utils = require('../utils');
const model = require('../model');
2018-01-24 17:22:05 +05:30
const BaseDocument = require('../model/document');
const BaseMeta = require('../model/meta');
2018-01-08 18:00:14 +05:30
const _session = require('../session');
const errors = require('./errors');
2018-01-08 18:00:14 +05:30
module.exports = {
2018-01-12 17:55:07 +05:30
init_libs(frappe) {
Object.assign(frappe, utils);
frappe.model = model;
2018-01-24 17:22:05 +05:30
frappe.BaseDocument = BaseDocument;
frappe.BaseMeta = BaseMeta;
2018-01-12 17:55:07 +05:30
frappe._session = _session;
frappe.errors = errors;
2018-01-12 17:55:07 +05:30
}
2018-01-08 18:00:14 +05:30
}