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

@portabletext/types

Package Overview
Dependencies
Maintainers
8
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@portabletext/types - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

dist/index.cjs

136

package.json
{
"name": "@portabletext/types",
"version": "2.0.1",
"version": "2.0.2",
"description": "Shared TypeScript definitions for core Portable Text data structures",
"keywords": [
"portable-text"
],
"homepage": "https://github.com/portabletext/types#readme",
"bugs": {
"url": "https://github.com/portabletext/types/issues"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/portabletext/types.git"
},
"license": "MIT",
"author": "Sanity.io <hello@sanity.io>",
"sideEffects": false,
"type": "module",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"module": "./dist/index.js",
"exports": {

@@ -13,2 +24,7 @@ ".": {

"source": "./src/index.ts",
"require": "./dist/index.cjs",
"node": {
"import": "./dist/index.cjs.js",
"require": "./dist/index.cjs"
},
"import": "./dist/index.js",

@@ -19,6 +35,6 @@ "default": "./dist/index.js"

},
"sideEffects": false,
"engines": {
"node": "^14.13.1 || >=16.0.0 || >=18.0.0"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"source": "./src/index.ts",
"types": "./dist/index.d.ts",
"files": [

@@ -29,35 +45,31 @@ "dist",

"scripts": {
"docs": "typedoc",
"test": "eslint . && npm run build && node test/test.js",
"prepublishOnly": "npm run build && npm run test",
"build": "pkg-utils build"
"build": "run-s clean pkg:build pkg:check",
"clean": "rimraf dist",
"docs:build": "typedoc",
"format": "prettier --write --cache --ignore-unknown .",
"lint": "eslint . --ext .cjs,.js,.jsx,.mjs,.ts,.tsx",
"node:test": "node test/test.js",
"pkg:build": "pkg-utils build --strict",
"pkg:check": "pkg-utils --strict",
"prepare": "husky install",
"prepublishOnly": "run-s build test",
"test": "run-s lint build node:test"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/portabletext/types.git"
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"keywords": [
"portable-text"
],
"author": "Sanity.io <hello@sanity.io>",
"license": "MIT",
"devDependencies": {
"@sanity/pkg-utils": "^2.2.3",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-sanity": "^5.1.0",
"prettier": "^2.5.1",
"typedoc": "^0.22.11",
"typescript": "^4.5.4"
"lint-staged": {
"*": [
"prettier --write --cache --ignore-unknown"
]
},
"bugs": {
"url": "https://github.com/portabletext/types/issues"
},
"homepage": "https://github.com/portabletext/types#readme",
"prettier": {
"bracketSpacing": false,
"plugins": [
"prettier-plugin-packagejson"
],
"printWidth": 100,
"semi": false,
"printWidth": 100,
"bracketSpacing": false,
"singleQuote": true

@@ -67,7 +79,7 @@ },

"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"ecmaVersion": 9,
"sourceType": "module"
},

@@ -80,5 +92,49 @@ "extends": [

"ignorePatterns": [
"lib/**/"
"dist/**/"
]
},
"release": {
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"extends": "@sanity/semantic-release-preset"
},
"devDependencies": {
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@sanity/pkg-utils": "^2.2.3",
"@sanity/semantic-release-preset": "^4.0.0",
"@types/babel__core": "^7.20.0",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-sanity": "^5.1.0",
"husky": "^8.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"prettier-plugin-packagejson": "^2.4.0",
"rimraf": "^4.1.2",
"semantic-release": "^20.0.4",
"typedoc": "^0.22.11",
"typescript": "^4.5.4"
},
"packageManager": "pnpm@7.26.0",
"engines": {
"node": "^14.13.1 || >=16.0.0 || >=18.0.0"
},
"publishConfig": {
"access": "public"
}
}
# @portabletext/types
[![npm version](https://img.shields.io/npm/v/@portabletext/types.svg?style=flat-square)](https://www.npmjs.com/package/@portabletext/types)[![Build Status](https://img.shields.io/github/workflow/status/portabletext/types/test/main.svg?style=flat-square)](https://github.com/portabletext/types/actions?query=workflow%3Atest)
[![npm version](https://img.shields.io/npm/v/@portabletext/types.svg?style=flat-square)](https://www.npmjs.com/package/@portabletext/types)[![Build Status](https://img.shields.io/github/actions/workflow/status/portabletext/types/test.yml?branch=main&style=flat-square)](https://github.com/portabletext/types/actions?query=workflow%3Atest)

@@ -5,0 +5,0 @@ TypeScript types for Portable Text

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