Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@khanacademy/wonder-blocks-progress-spinner

Package Overview
Dependencies
Maintainers
1
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khanacademy/wonder-blocks-progress-spinner - npm Package Compare versions

Comparing version 1.1.11 to 1.1.12

__tests__/__snapshots__/generated-snapshot.test.js.snap

42

dist/es/index.js

@@ -74,2 +74,15 @@ import { createElement, Component } from 'react';

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;
}
}
function _assertThisInitialized(self) {

@@ -91,2 +104,21 @@ if (self === void 0) {

function _createSuper(Derived) {
var hasNativeReflectConstruct = _isNativeReflectConstruct();
return function _createSuperInternal() {
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);
};
}
var heights = {

@@ -117,6 +149,8 @@ xsmall: 16,

var _super = _createSuper(CircularSpinner);
function CircularSpinner() {
_classCallCheck(this, CircularSpinner);
return _possibleConstructorReturn(this, _getPrototypeOf(CircularSpinner).apply(this, arguments));
return _super.apply(this, arguments);
}

@@ -134,3 +168,3 @@

var color = light ? colors.light : colors.dark;
var svg = createElement("svg", {
var svg = /*#__PURE__*/createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",

@@ -140,3 +174,3 @@ width: height,

viewBox: "0 0 ".concat(height, " ").concat(height)
}, createElement(StyledPath, {
}, /*#__PURE__*/createElement(StyledPath, {
style: [styles.loadingSpinner, {

@@ -148,3 +182,3 @@ fill: color

}));
return createElement(View, {
return /*#__PURE__*/createElement(View, {
style: [styles.spinnerContainer, style]

@@ -151,0 +185,0 @@ }, svg);

22

dist/index.js

@@ -145,2 +145,8 @@ module.exports =

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { 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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

@@ -150,8 +156,6 @@

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; } }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -188,6 +192,8 @@

var _super = _createSuper(CircularSpinner);
function CircularSpinner() {
_classCallCheck(this, CircularSpinner);
return _possibleConstructorReturn(this, _getPrototypeOf(CircularSpinner).apply(this, arguments));
return _super.apply(this, arguments);
}

@@ -205,3 +211,3 @@

var color = light ? colors.light : colors.dark;
var svg = external_react_["createElement"]("svg", {
var svg = /*#__PURE__*/external_react_["createElement"]("svg", {
xmlns: "http://www.w3.org/2000/svg",

@@ -211,3 +217,3 @@ width: height,

viewBox: "0 0 ".concat(height, " ").concat(height)
}, external_react_["createElement"](StyledPath, {
}, /*#__PURE__*/external_react_["createElement"](StyledPath, {
style: [styles.loadingSpinner, {

@@ -219,3 +225,3 @@ fill: color

}));
return external_react_["createElement"](wonder_blocks_core_["View"], {
return /*#__PURE__*/external_react_["createElement"](wonder_blocks_core_["View"], {
style: [styles.spinnerContainer, style]

@@ -222,0 +228,0 @@ }, svg);

{
"name": "@khanacademy/wonder-blocks-progress-spinner",
"version": "1.1.11",
"version": "1.1.12",
"design": "v1",

@@ -18,5 +18,5 @@ "publishConfig": {

"dependencies": {
"@khanacademy/wonder-blocks-color": "^1.1.11",
"@khanacademy/wonder-blocks-core": "^2.5.1",
"@khanacademy/wonder-blocks-spacing": "^2.1.11"
"@khanacademy/wonder-blocks-color": "^1.1.12",
"@khanacademy/wonder-blocks-core": "^2.5.2",
"@khanacademy/wonder-blocks-spacing": "^2.1.12"
},

@@ -30,3 +30,3 @@ "peerDependencies": {

},
"gitHead": "3c6c92225a4eba049ead8d78e2d3eb648e5b16ab"
"gitHead": "a2b5548f5d7db108c39961071d081ec5d96fa88f"
}
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