New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

infra-sk

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

infra-sk - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

4

dist/app-sk-bundle.js

@@ -156,3 +156,3 @@ /******/ (function(modules) { // webpackBootstrap

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var elements_sk_errorMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! elements-sk/errorMessage */ \"./node_modules/elements-sk/errorMessage.js\");\n/* harmony import */ var _login__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../login */ \"./modules/login.js\");\n/**\n * @module infra-sk/modules/login-sk\n * @description <h2><code>login-sk</code></h2>\n *\n * <p>\n * The <login-sk> custom element. Uses the Login promise to display the\n * current login status and provides login/logout links. Reports errors via\n * {@linkcode module:elements-sk/error-toast-sk}.\n * </p>\n */\n\n\n\nwindow.customElements.define('login-sk', class extends HTMLElement {\n connectedCallback() {\n this.innerHTML = `<span class=email>Loading...</span><a class=logInOut></a>`;\n _login__WEBPACK_IMPORTED_MODULE_1__[\"Login\"].then(status => {\n this.querySelector('.email').textContent = status.Email;\n let logInOut = this.querySelector('.logInOut');\n if (!status.Email) {\n logInOut.href = status.LoginURL;\n logInOut.textContent = 'Login';\n } else {\n logInOut.href = '/logout/?redirect=' + encodeURIComponent(document.location);\n logInOut.textContent = 'Logout';\n }\n }).catch(elements_sk_errorMessage__WEBPACK_IMPORTED_MODULE_0__[\"errorMessage\"]);\n }\n});\n\n\n//# sourceURL=webpack:///./modules/login-sk/login-sk.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var elements_sk_errorMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! elements-sk/errorMessage */ \"./node_modules/elements-sk/errorMessage.js\");\n/* harmony import */ var _login__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../login */ \"./modules/login.js\");\n/**\n * @module infra-sk/modules/login-sk\n * @description <h2><code>login-sk</code></h2>\n *\n * <p>\n * The <login-sk> custom element. Uses the Login promise to display the\n * current login status and provides login/logout links. Reports errors via\n * {@linkcode module:elements-sk/error-toast-sk}.\n * </p>\n */\n\n\n\nwindow.customElements.define('login-sk', class extends HTMLElement {\n connectedCallback() {\n this.innerHTML = `<span class=email>Loading...</span><a class=logInOut></a>`;\n _login__WEBPACK_IMPORTED_MODULE_1__[\"Login\"].then(status => {\n this.querySelector('.email').textContent = status.Email;\n let logInOut = this.querySelector('.logInOut');\n if (!status.Email) {\n logInOut.href = status.LoginURL;\n logInOut.textContent = 'Login';\n } else {\n logInOut.href = 'https://skia.org/logout/?redirect=' + encodeURIComponent(document.location);\n logInOut.textContent = 'Logout';\n }\n }).catch(elements_sk_errorMessage__WEBPACK_IMPORTED_MODULE_0__[\"errorMessage\"]);\n }\n});\n\n\n//# sourceURL=webpack:///./modules/login-sk/login-sk.js?");

@@ -180,3 +180,3 @@ /***/ }),

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Login\", function() { return Login; });\n/** @module infra-sk/modules/login */\n\n/**\n * A Promise that will be resolved with the users current login status.\n *\n * The resolution object looks like:\n * <pre>\n * {\n * \"Email\": \"fred@example.com\",\n * \"LoginURL\": \"https://...\"\n * }\n * </pre>\n *\n * The Email will be the empty string if the user is not logged in.\n */\nvar Login = fetch('/loginstatus/', {\n credentials: 'include',\n}).then(res => {\n if (res.ok) {\n return res.json()\n }\n throw new Error('Problem reading /loginstatus/:' + res.statusText);\n});\n\n\n//# sourceURL=webpack:///./modules/login.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Login\", function() { return Login; });\n/** @module infra-sk/modules/login */\n\n/**\n * A Promise that will be resolved with the users current login status.\n *\n * The resolution object looks like:\n * <pre>\n * {\n * \"Email\": \"fred@example.com\",\n * \"LoginURL\": \"https://...\"\n * }\n * </pre>\n *\n * The Email will be the empty string if the user is not logged in.\n */\nvar Login = fetch('https://skia.org/loginstatus/', {\n credentials: 'include',\n}).then(res => {\n if (res.ok) {\n return res.json()\n }\n throw new Error('Problem reading /loginstatus/:' + res.statusText);\n});\n\n\n//# sourceURL=webpack:///./modules/login.js?");

@@ -183,0 +183,0 @@ /***/ }),

@@ -121,3 +121,3 @@ /******/ (function(modules) { // webpackBootstrap

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var elements_sk_errorMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! elements-sk/errorMessage */ \"./node_modules/elements-sk/errorMessage.js\");\n/* harmony import */ var _login__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../login */ \"./modules/login.js\");\n/**\n * @module infra-sk/modules/login-sk\n * @description <h2><code>login-sk</code></h2>\n *\n * <p>\n * The <login-sk> custom element. Uses the Login promise to display the\n * current login status and provides login/logout links. Reports errors via\n * {@linkcode module:elements-sk/error-toast-sk}.\n * </p>\n */\n\n\n\nwindow.customElements.define('login-sk', class extends HTMLElement {\n connectedCallback() {\n this.innerHTML = `<span class=email>Loading...</span><a class=logInOut></a>`;\n _login__WEBPACK_IMPORTED_MODULE_1__[\"Login\"].then(status => {\n this.querySelector('.email').textContent = status.Email;\n let logInOut = this.querySelector('.logInOut');\n if (!status.Email) {\n logInOut.href = status.LoginURL;\n logInOut.textContent = 'Login';\n } else {\n logInOut.href = '/logout/?redirect=' + encodeURIComponent(document.location);\n logInOut.textContent = 'Logout';\n }\n }).catch(elements_sk_errorMessage__WEBPACK_IMPORTED_MODULE_0__[\"errorMessage\"]);\n }\n});\n\n\n//# sourceURL=webpack:///./modules/login-sk/login-sk.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var elements_sk_errorMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! elements-sk/errorMessage */ \"./node_modules/elements-sk/errorMessage.js\");\n/* harmony import */ var _login__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../login */ \"./modules/login.js\");\n/**\n * @module infra-sk/modules/login-sk\n * @description <h2><code>login-sk</code></h2>\n *\n * <p>\n * The <login-sk> custom element. Uses the Login promise to display the\n * current login status and provides login/logout links. Reports errors via\n * {@linkcode module:elements-sk/error-toast-sk}.\n * </p>\n */\n\n\n\nwindow.customElements.define('login-sk', class extends HTMLElement {\n connectedCallback() {\n this.innerHTML = `<span class=email>Loading...</span><a class=logInOut></a>`;\n _login__WEBPACK_IMPORTED_MODULE_1__[\"Login\"].then(status => {\n this.querySelector('.email').textContent = status.Email;\n let logInOut = this.querySelector('.logInOut');\n if (!status.Email) {\n logInOut.href = status.LoginURL;\n logInOut.textContent = 'Login';\n } else {\n logInOut.href = 'https://skia.org/logout/?redirect=' + encodeURIComponent(document.location);\n logInOut.textContent = 'Logout';\n }\n }).catch(elements_sk_errorMessage__WEBPACK_IMPORTED_MODULE_0__[\"errorMessage\"]);\n }\n});\n\n\n//# sourceURL=webpack:///./modules/login-sk/login-sk.js?");

@@ -145,3 +145,3 @@ /***/ }),

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Login\", function() { return Login; });\n/** @module infra-sk/modules/login */\n\n/**\n * A Promise that will be resolved with the users current login status.\n *\n * The resolution object looks like:\n * <pre>\n * {\n * \"Email\": \"fred@example.com\",\n * \"LoginURL\": \"https://...\"\n * }\n * </pre>\n *\n * The Email will be the empty string if the user is not logged in.\n */\nvar Login = fetch('/loginstatus/', {\n credentials: 'include',\n}).then(res => {\n if (res.ok) {\n return res.json()\n }\n throw new Error('Problem reading /loginstatus/:' + res.statusText);\n});\n\n\n//# sourceURL=webpack:///./modules/login.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Login\", function() { return Login; });\n/** @module infra-sk/modules/login */\n\n/**\n * A Promise that will be resolved with the users current login status.\n *\n * The resolution object looks like:\n * <pre>\n * {\n * \"Email\": \"fred@example.com\",\n * \"LoginURL\": \"https://...\"\n * }\n * </pre>\n *\n * The Email will be the empty string if the user is not logged in.\n */\nvar Login = fetch('https://skia.org/loginstatus/', {\n credentials: 'include',\n}).then(res => {\n if (res.ok) {\n return res.json()\n }\n throw new Error('Problem reading /loginstatus/:' + res.statusText);\n});\n\n\n//# sourceURL=webpack:///./modules/login.js?");

@@ -148,0 +148,0 @@ /***/ }),

@@ -24,3 +24,3 @@ /**

} else {
logInOut.href = '/logout/?redirect=' + encodeURIComponent(document.location);
logInOut.href = 'https://skia.org/logout/?redirect=' + encodeURIComponent(document.location);
logInOut.textContent = 'Logout';

@@ -27,0 +27,0 @@ }

@@ -16,3 +16,3 @@ /** @module infra-sk/modules/login */

*/
export var Login = fetch('/loginstatus/', {
export var Login = fetch('https://skia.org/loginstatus/', {
credentials: 'include',

@@ -19,0 +19,0 @@ }).then(res => {

{
"name": "infra-sk",
"version": "0.1.0",
"version": "0.2.0",
"description": "Common Skia Infra elements and JS.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/google/skia-buildbot/tree/master/infra-sk",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc