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

@shopify/react-serialize

Package Overview
Dependencies
Maintainers
11
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-serialize - npm Package Compare versions

Comparing version 1.0.10 to 1.0.12

CHANGELOG.md

28

dist/Serializer.js
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var serialize_javascript_1 = __importDefault(require("serialize-javascript"));
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var serialize_javascript_1 = tslib_1.__importDefault(require("serialize-javascript"));
var utilities_1 = require("./utilities");

@@ -32,4 +12,4 @@ function Serializer(_a) {

: {};
return (React.createElement("script", __assign({ type: "text/json", id: utilities_1.serializedID(id), dangerouslySetInnerHTML: { __html: serialize_javascript_1.default(data) } }, additionalProps)));
return (React.createElement("script", tslib_1.__assign({ type: "text/json", id: utilities_1.serializedID(id), dangerouslySetInnerHTML: { __html: serialize_javascript_1.default(data) } }, additionalProps)));
}
exports.default = Serializer;
{
"name": "@shopify/react-serialize",
"version": "1.0.10",
"version": "1.0.12",
"license": "MIT",

@@ -26,3 +26,4 @@ "description": "Provides an idiomatic way to serialize data for rehydration in a universal react application.",

"dependencies": {
"serialize-javascript": "^1.5.0"
"serialize-javascript": "^1.5.0",
"tslib": "^1.9.3"
},

@@ -29,0 +30,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