sbis3-node-ws
Version:
Модуль позволяет использовать ядро интерфейсного фреймворка sbis3-ws(`core.js`) и модуль работы с данными (`Source.js`) в приложении на nodejs.
24 lines (21 loc) • 647 B
JavaScript
(function() {
"use strict";
var global = (function(){ return this || (0,eval)('this'); }()),
define = global.define || (global.requirejs && global.requirejs.define);
define('xml', ['text'], function() {
return {
load: function(name, require, load) {
try {
var path = $ws.helpers.requirejsPathResolver(name, 'xml');
require(['text!' + path], function(xml) {
load(xml);
}, function(e) {
load.error(e);
});
} catch (e) {
load.error(e);
}
}
}
});
})();