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

react-device-frameset

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-device-frameset - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

9

dist/index.js

@@ -169,5 +169,12 @@ var __create = Object.create;

// src/DeviceFrameset.tsx
function omit(item, keys) {
const clone = __spreadValues({}, item);
for (const key of keys) {
delete clone[key];
}
return clone;
}
var DeviceFrameset = import_react.default.memo(function DeviceFrameset2(props) {
const _a = props, { children, device, width, height, zoom } = _a, restProps = __objRest(_a, ["children", "device", "width", "height", "zoom"]);
const _b = restProps, { landscape: _l, color: _c } = _b, divProps = __objRest(_b, ["landscape", "color"]);
const divProps = omit(restProps, ["landscape", "color"]);
const color = "color" in props ? props.color : void 0;

@@ -174,0 +181,0 @@ const landscape = "landscape" in props ? props.landscape : void 0;

11

package.json
{
"name": "react-device-frameset",
"version": "1.3.1",
"version": "1.3.2",
"author": "Zheeeng <hi@zheeeng.me>",

@@ -36,4 +36,4 @@ "description": "This is yet another device frameset component for React.",

"require": "./dist/index.js",
"default": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},

@@ -51,7 +51,6 @@ "./package.json": "./package.json",

"build": "pnpm build:pack",
"build:lib": "rm -rf lib && tsup src/index.ts --format cjs,esm --dts",
"build:lib": "tsup src/index.ts --format cjs,esm --dts --clean",
"build:css": "gulp buildCss",
"build:readme": "gulp genSignature && gulp moveReadme",
"build:pack": "pnpm build:lib -- --clean && pnpm build:css && pnpm build:readme",
"build:pages": "pnpm build:pack && pnpm build:site"
"build:pack": "pnpm build:lib && pnpm build:css && pnpm build:readme"
},

@@ -58,0 +57,0 @@ "devDependencies": {

@@ -35,3 +35,3 @@ # React Device Frameset

import { DeviceFrameset } from 'react-device-frameset'
import 'react-device-frameset/lib/css/marvel-devices.min.css'
import 'react-device-frameset/dist/styles/marvel-devices.min.css'

@@ -82,4 +82,4 @@ export const App = () => {

import { DeviceFrameset, DeviceSelector } from 'react-device-frameset'
import 'react-device-frameset/lib/css/marvel-devices.min.css'
import 'react-device-frameset/lib/css/device-selector.min.css'
import 'react-device-frameset/dist/styles/marvel-devices.min.css'
import 'react-device-frameset/dist/styles/device-selector.min.css'

@@ -110,4 +110,4 @@ export const App = () => {

import { DeviceFrameset, DeviceEmulator } from 'react-device-frameset'
import 'react-device-frameset/lib/css/marvel-devices.min.css'
import 'react-device-frameset/lib/css/device-emulator.min.css'
import 'react-device-frameset/dist/styles/marvel-devices.min.css'
import 'react-device-frameset/dist/styles/device-emulator.min.css'

@@ -114,0 +114,0 @@ export const App = () => {

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