@kintone/kintone-js-sdk
Version:
The SDK of kintone REST API client on node and browser
46 lines (35 loc) • 1.91 kB
JavaScript
import "core-js/modules/es.object.to-string";
import "core-js/modules/es.reflect.construct";
import "core-js/modules/es.regexp.to-string";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _inherits from "@babel/runtime/helpers/inherits";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
import * as kintoneBaseJSSDK from '../../../base/main';
import { Connection } from '../connection/Connection';
/**
* Connection module
*/
export var App = /*#__PURE__*/function (_kintoneBaseJSSDK$App) {
_inherits(App, _kintoneBaseJSSDK$App);
var _super = _createSuper(App);
/**
* @param {Object} params
* @param {Connection} params.connection
*/
function App() {
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
conn = _ref.connection;
_classCallCheck(this, App);
var connection = conn;
if (!connection) {
connection = new Connection();
}
return _super.call(this, {
connection: connection
});
}
return App;
}(kintoneBaseJSSDK.App);