Socket
Socket
Sign inDemoInstall

@shopify/react-universal-provider

Package Overview
Dependencies
Maintainers
13
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-universal-provider - npm Package Compare versions

Comparing version 1.0.0-sknext-beta.1 to 1.0.0-sknext-beta.2

24

build/ts/create-universal-provider.js
"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 @@

6

package.json
{
"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": {

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