@shopify/react-universal-provider
Advanced tools
Comparing version 1.0.0-sknext-beta.1 to 1.0.0-sknext-beta.2
"use strict"; | ||
var __read = (this && this.__read) || function (o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createUniversalProvider = void 0; | ||
var tslib_1 = require("tslib"); | ||
var react_1 = tslib_1.__importDefault(require("react")); | ||
var react_1 = __importDefault(require("react")); | ||
var react_html_1 = require("@shopify/react-html"); | ||
@@ -10,3 +28,3 @@ function createUniversalProvider(id, Context) { | ||
var explicitValue = _a.value, children = _a.children; | ||
var _b = tslib_1.__read(react_html_1.useSerialized(id), 2), _c = _b[0], value = _c === void 0 ? explicitValue : _c, Serialize = _b[1]; | ||
var _b = __read(react_html_1.useSerialized(id), 2), _c = _b[0], value = _c === void 0 ? explicitValue : _c, Serialize = _b[1]; | ||
if (value == null) { | ||
@@ -13,0 +31,0 @@ throw new Error("You must provide a " + id + " value, or have one previously serialized."); |
@@ -10,2 +10,4 @@ # Changelog | ||
- Added new types of builds (CommonJS, ESM, esnext, Node) for greater tree-shakability | ||
## [1.1.0] - 2019-12-19 | ||
@@ -12,0 +14,0 @@ |
{ | ||
"name": "@shopify/react-universal-provider", | ||
"version": "1.0.0-sknext-beta.1", | ||
"version": "1.0.0-sknext-beta.2", | ||
"license": "MIT", | ||
@@ -27,4 +27,4 @@ "description": "Factory function and utilities to create self-serializing/deserializing providers that work for isomorphic applications", | ||
"dependencies": { | ||
"@shopify/react-effect": "1.0.0-sknext-beta.1", | ||
"@shopify/react-html": "1.0.0-sknext-beta.1" | ||
"@shopify/react-effect": "1.0.0-sknext-beta.2", | ||
"@shopify/react-html": "1.0.0-sknext-beta.2" | ||
}, | ||
@@ -31,0 +31,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18098
170
+ Added@shopify/react-effect@1.0.0-sknext-beta.2(transitive)
+ Added@shopify/react-hooks@1.0.0-sknext-beta.2(transitive)
+ Added@shopify/react-html@1.0.0-sknext-beta.2(transitive)
+ Added@shopify/react-hydrate@1.0.0-sknext-beta.2(transitive)
+ Added@shopify/useful-types@1.0.0-sknext-beta.2(transitive)
- Removed@shopify/react-effect@1.0.0-sknext-beta.1(transitive)
- Removed@shopify/react-hooks@1.0.0-sknext-beta.1(transitive)
- Removed@shopify/react-html@1.0.0-sknext-beta.1(transitive)
- Removed@shopify/react-hydrate@1.0.0-sknext-beta.1(transitive)
- Removed@shopify/useful-types@1.0.0-sknext-beta.1(transitive)
- Removedtslib@1.14.1(transitive)