@sassoftware/restaflib 4.5.1 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/restaflib.js +1 -1
- package/lib/restaflib.js +1 -1
- package/package.json +1 -1
package/dist/restaflib.js
CHANGED
|
@@ -815,7 +815,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
|
|
|
815
815
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
816
816
|
|
|
817
817
|
"use strict";
|
|
818
|
-
eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/*\r\n* Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n* SPDX-License-Identifier: Apache-2.0\r\n*/\n\n/**\r\n * @description Setup access to compute service\r\n * @async\r\n * @module computeSetup\r\n * @category restaflib/compute\r\n * \r\n * @param {store} store - restaf store\r\n * @param {string=} contextName name of the context. If not specified|null, defaults to Job Execution context\r\n * @param {logonPayload=} payload logon payload.If null assumes that logon was done earlier.\r\n * @param {sessionPayload=} sessionPayload for createSession call\r\n * @returns {promise} - returns a compute session\r\n */\n\n\n\n\nfunction computeSetup(_x, _x2, _x3, _x4) {\n return _computeSetup.apply(this, arguments);\n}\n\nfunction _computeSetup() {\n _computeSetup = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, contextName, payload, sessionPayload) {\n var msg, _yield$store$addServi, compute, p, contexts, createSession, session, _session;\n\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(payload != null)) {\n _context.next =
|
|
818
|
+
eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/*\r\n* Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n* SPDX-License-Identifier: Apache-2.0\r\n*/\n\n/**\r\n * @description Setup access to compute service\r\n * @async\r\n * @module computeSetup\r\n * @category restaflib/compute\r\n * \r\n * @param {store} store - restaf store\r\n * @param {string=} contextName name of the context. If not specified|null, defaults to Job Execution context\r\n * @param {logonPayload=} payload logon payload.If null assumes that logon was done earlier.\r\n * @param {sessionPayload=} sessionPayload for createSession call\r\n * @returns {promise} - returns a compute session\r\n */\n\n\n\n\nfunction computeSetup(_x, _x2, _x3, _x4) {\n return _computeSetup.apply(this, arguments);\n}\n\nfunction _computeSetup() {\n _computeSetup = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, contextName, payload, sessionPayload) {\n var msg, _yield$store$addServi, compute, p, contexts, createSession, session, _session;\n\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(payload != null)) {\n _context.next = 6;\n break;\n }\n\n debugger;\n _context.next = 4;\n return store.logon(payload);\n\n case 4:\n msg = _context.sent;\n console.log(\"======================\", msg);\n\n case 6:\n _context.next = 8;\n return store.addServices('compute');\n\n case 8:\n _yield$store$addServi = _context.sent;\n compute = _yield$store$addServi.compute;\n\n if (!(store.store.config.options.computeServerId == null)) {\n _context.next = 27;\n break;\n }\n\n if (contextName == null) {\n contextName = 'SAS Job Execution';\n }\n\n ;\n p = {\n qs: {\n filter: \"contains(name,'\".concat(contextName, \"')\")\n }\n };\n _context.next = 16;\n return store.apiCall(compute.links(\"contexts\"), p);\n\n case 16:\n contexts = _context.sent;\n\n if (!(contexts.itemsList().size === 0)) {\n _context.next = 19;\n break;\n }\n\n throw \"Context \".concat(contextName, \" not found\");\n\n case 19:\n p = sessionPayload == null ? null : sessionPayload;\n createSession = contexts.itemsCmd(contexts.itemsList(0), 'createSession');\n _context.next = 23;\n return store.apiCall(createSession, sessionPayload);\n\n case 23:\n session = _context.sent;\n return _context.abrupt(\"return\", session);\n\n case 27:\n _context.next = 29;\n return store.apiCall(compute.links('createSession'));\n\n case 29:\n _session = _context.sent;\n debugger;\n return _context.abrupt(\"return\", _session);\n\n case 32:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n return _computeSetup.apply(this, arguments);\n}\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (computeSetup);\n\n//# sourceURL=webpack://restaflib/./computeSetup.js?");
|
|
819
819
|
|
|
820
820
|
/***/ }),
|
|
821
821
|
|
package/lib/restaflib.js
CHANGED
|
@@ -874,7 +874,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
|
|
|
874
874
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
875
875
|
|
|
876
876
|
"use strict";
|
|
877
|
-
eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/*\r\n* Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n* SPDX-License-Identifier: Apache-2.0\r\n*/\n\n/**\r\n * @description Setup access to compute service\r\n * @async\r\n * @module computeSetup\r\n * @category restaflib/compute\r\n * \r\n * @param {store} store - restaf store\r\n * @param {string=} contextName name of the context. If not specified|null, defaults to Job Execution context\r\n * @param {logonPayload=} payload logon payload.If null assumes that logon was done earlier.\r\n * @param {sessionPayload=} sessionPayload for createSession call\r\n * @returns {promise} - returns a compute session\r\n */\n\n\n\n\nfunction computeSetup(_x, _x2, _x3, _x4) {\n return _computeSetup.apply(this, arguments);\n}\n\nfunction _computeSetup() {\n _computeSetup = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, contextName, payload, sessionPayload) {\n var msg, _yield$store$addServi, compute, p, contexts, createSession, session, _session;\n\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(payload != null)) {\n _context.next =
|
|
877
|
+
eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/*\r\n* Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n* SPDX-License-Identifier: Apache-2.0\r\n*/\n\n/**\r\n * @description Setup access to compute service\r\n * @async\r\n * @module computeSetup\r\n * @category restaflib/compute\r\n * \r\n * @param {store} store - restaf store\r\n * @param {string=} contextName name of the context. If not specified|null, defaults to Job Execution context\r\n * @param {logonPayload=} payload logon payload.If null assumes that logon was done earlier.\r\n * @param {sessionPayload=} sessionPayload for createSession call\r\n * @returns {promise} - returns a compute session\r\n */\n\n\n\n\nfunction computeSetup(_x, _x2, _x3, _x4) {\n return _computeSetup.apply(this, arguments);\n}\n\nfunction _computeSetup() {\n _computeSetup = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, contextName, payload, sessionPayload) {\n var msg, _yield$store$addServi, compute, p, contexts, createSession, session, _session;\n\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(payload != null)) {\n _context.next = 6;\n break;\n }\n\n debugger;\n _context.next = 4;\n return store.logon(payload);\n\n case 4:\n msg = _context.sent;\n console.log(\"======================\", msg);\n\n case 6:\n _context.next = 8;\n return store.addServices('compute');\n\n case 8:\n _yield$store$addServi = _context.sent;\n compute = _yield$store$addServi.compute;\n\n if (!(store.store.config.options.computeServerId == null)) {\n _context.next = 27;\n break;\n }\n\n if (contextName == null) {\n contextName = 'SAS Job Execution';\n }\n\n ;\n p = {\n qs: {\n filter: \"contains(name,'\".concat(contextName, \"')\")\n }\n };\n _context.next = 16;\n return store.apiCall(compute.links(\"contexts\"), p);\n\n case 16:\n contexts = _context.sent;\n\n if (!(contexts.itemsList().size === 0)) {\n _context.next = 19;\n break;\n }\n\n throw \"Context \".concat(contextName, \" not found\");\n\n case 19:\n p = sessionPayload == null ? null : sessionPayload;\n createSession = contexts.itemsCmd(contexts.itemsList(0), 'createSession');\n _context.next = 23;\n return store.apiCall(createSession, sessionPayload);\n\n case 23:\n session = _context.sent;\n return _context.abrupt(\"return\", session);\n\n case 27:\n _context.next = 29;\n return store.apiCall(compute.links('createSession'));\n\n case 29:\n _session = _context.sent;\n debugger;\n return _context.abrupt(\"return\", _session);\n\n case 32:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n return _computeSetup.apply(this, arguments);\n}\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (computeSetup);\n\n//# sourceURL=webpack://restaflib/./computeSetup.js?");
|
|
878
878
|
|
|
879
879
|
/***/ }),
|
|
880
880
|
|