New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opensea/vessel

Package Overview
Dependencies
Maintainers
7
Versions
941
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opensea/vessel - npm Package Compare versions

Comparing version

to
0.1.0

dist/index.js

101

package.json
{
"name": "@opensea/vessel",
"version": "0.0.22",
"description": "🚢 Vessel: a promise-based postMessage library that sails your data smoothly across the Opensea.",
"files": [
"dist",
"src",
"vite.config.ts"
],
"main": "dist/@opensea/vessel.umd.js",
"module": "dist/@opensea/vessel.es.js",
"version": "0.1.0",
"description": "Promise based wrapper for postMessage API 🚢",
"license": "ISC",
"author": "OpenSea Developers",
"type": "module",
"exports": {
".": {
"import": "./dist/@opensea/vessel.es.js",
"require": "./dist/@opensea/vessel.umd.js",
"types": "./dist/index.d.ts"
"import": "./dist/index.js",
"types": "./dist/src/index.d.ts"
}
},
"types": "dist/index.d.ts",
"dependencies": {
"nanoid": "4.0.2"
},
"main": "./src/index.ts",
"files": [
"dist",
"src"
],
"types": "./dist/src/index.d.ts",
"devDependencies": {
"@flasd/no-hats": "1.0.3",
"@flasd/pretty-package": "1.0.3",
"@playwright/test": "1.35.0",
"@types/node": "20.3.1",
"@vitest/coverage-v8": "0.32.2",
"concurrently": "8.2.0",
"cpy-cli": "4.2.0",
"husky": "8.0.3",
"jsdom": "22.1.0",
"lint-staged": "13.2.2",
"rimraf": "5.0.1",
"serve": "14.2.0",
"typescript": "5.0.2",
"vite": "4.3.9",
"vitest": "0.32.0"
"@playwright/test": "1.43.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@storybook/csf": "^0.1.2",
"@storybook/react": "^7.4.0",
"@storybook/react-vite": "^7.4.0",
"@types/node": "20.3.2",
"@types/react": "^18.3.1",
"eslint-plugin-storybook": "^0.6.13",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"prettier-package-json": "^2.8.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rollup": "^4.4.1",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-visualizer": "^5.9.2",
"storybook": "^7.4.0",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"eslint-config-custom": "0.0.0"
},
"keywords": [],
"lint-staged": {
"package.json": [
"pretty-package --write",
"no-hats"
"**/package.json": [
"prettier-package-json --write"
],
"**/*.{ts,tsx,js,jsx,html,md,mdx,yml,json}": [
"prettier --write"
]
},
"prettier": {
"arrowParens": "avoid",
"semi": false,
"trailingComma": "all"
},
"scripts": {
"build": "vite build && yarn tsc && rimraf tsconfig.tsbuildinfo",
"dev": "vite",
"dev:e2e": "concurrently 'serve -l 3000 tests/parent' 'serve -l 3001 tests/child' 'playwright test --ui' --kill-others --success first",
"lint:types": "tsc",
"postinstall": "husky install || exit 0",
"prebuild": "rimraf tsconfig.tsbuildinfo dist",
"pretest:e2e": "tsc && vite build && cpy dist/* tests/parent && cpy dist/* tests/child",
"test:e2e": "concurrently 'serve -l 3000 tests/parent' 'serve -l 3001 tests/child' 'playwright test' --kill-others --success first",
"test:unit": "vitest src",
"test:unit:coverage": "vitest src --coverage"
"build": "rollup -c",
"build-storybook": "storybook build",
"eslint:check": "eslint . --max-warnings 0 --ext .ts,.tsx",
"lint": "pnpm run typecheck && pnpm run eslint:check && pnpm run prettier:check:package.json",
"prettier:check": "prettier . --check",
"prettier:check:package.json": "prettier-package-json --list-different",
"prettier:fix": "prettier . --write && prettier-package-json --write",
"save-package-json-changes": "mv package.json.tmp package.json",
"storybook": "storybook dev -p 6006",
"test": "playwright test",
"typecheck": "tsc --noEmit"
}
}

@@ -1,22 +0,1 @@

import { ChildFrame } from "./child"
import { ActionSubscriptionFn, ParentFrame } from "./parent"
import { MessageType } from "./utils/messaging"
import type { MessagePayloadType } from "./utils/messaging"
export class Vessel {
static ParentFrame = ParentFrame
static ChildFrame = ChildFrame
static createParentFrame(
params: ConstructorParameters<typeof ParentFrame>[0],
) {
return new ParentFrame(params)
}
static createChildFrame(params: ConstructorParameters<typeof ChildFrame>[0]) {
return new ChildFrame(params)
}
}
export { ChildFrame, ParentFrame, MessageType }
export type { ActionSubscriptionFn, MessagePayloadType }
export * from "./Vessel"