@portabletext/toolkit
Advanced tools
Comparing version 2.0.1 to 2.0.2
172
package.json
{ | ||
"name": "@portabletext/toolkit", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Toolkit of handy utility functions for dealing with Portable Text", | ||
"types": "./dist/portable-text-toolkit.d.ts", | ||
"source": "./src/index.ts", | ||
"module": "./dist/portable-text-toolkit.esm.js", | ||
"main": "./dist/portable-text-toolkit.js", | ||
"keywords": [ | ||
"sanity", | ||
"cms", | ||
"headless", | ||
"realtime", | ||
"content", | ||
"portable-text-toolkit" | ||
], | ||
"homepage": "https://github.com/portabletext/toolkit#readme", | ||
"bugs": { | ||
"url": "https://github.com/portabletext/toolkit/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/portabletext/toolkit.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Sanity.io <hello@sanity.io>", | ||
"sideEffects": false, | ||
"exports": { | ||
@@ -14,6 +29,2 @@ ".": { | ||
"require": "./dist/portable-text-toolkit.js", | ||
"node": { | ||
"import": "./dist/portable-text-toolkit.cjs.mjs", | ||
"require": "./dist/portable-text-toolkit.js" | ||
}, | ||
"import": "./dist/portable-text-toolkit.esm.js", | ||
@@ -24,6 +35,6 @@ "default": "./dist/portable-text-toolkit.esm.js" | ||
}, | ||
"sideEffects": false, | ||
"engines": { | ||
"node": "^14.13.1 || >=16.0.0" | ||
}, | ||
"main": "./dist/portable-text-toolkit.js", | ||
"module": "./dist/portable-text-toolkit.esm.js", | ||
"source": "./src/index.ts", | ||
"types": "./dist/portable-text-toolkit.d.ts", | ||
"files": [ | ||
@@ -35,51 +46,32 @@ "dist", | ||
"scripts": { | ||
"build": "rimraf dist && pkg-utils build && pkg-utils --strict", | ||
"clean": "rimraf .nyc_output coverage", | ||
"docs": "typedoc", | ||
"coverage": "tap test/*.test.* --coverage-report=html", | ||
"lint": "eslint . && tsc --noEmit", | ||
"prepublishOnly": "npm run build && npm run lint", | ||
"test": "tap test/*.test.*" | ||
"build": "run-s clean pkg:build pkg:check", | ||
"clean": "rimraf dist coverage", | ||
"coverage": "vitest run --coverage", | ||
"docs:build": "typedoc", | ||
"format": "prettier --write --cache --ignore-unknown .", | ||
"lint": "eslint .", | ||
"pkg:build": "pkg-utils build --strict", | ||
"pkg:check": "pkg-utils --strict", | ||
"prepare": "husky install", | ||
"prepublishOnly": "run-s build lint type-check", | ||
"test": "vitest", | ||
"type-check": "tsc --noEmit" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/portabletext/toolkit.git" | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"keywords": [ | ||
"sanity", | ||
"cms", | ||
"headless", | ||
"realtime", | ||
"content", | ||
"portable-text-toolkit" | ||
], | ||
"author": "Sanity.io <hello@sanity.io>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@portabletext/types": "^2.0.0" | ||
"lint-staged": { | ||
"*": [ | ||
"prettier --write --cache --ignore-unknown" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-proposal-object-rest-spread": "^7.20.7", | ||
"@sanity/pkg-utils": "^2.2.3", | ||
"@types/tap": "^15.0.7", | ||
"@typescript-eslint/eslint-plugin": "^5.11.0", | ||
"@typescript-eslint/parser": "^5.11.0", | ||
"esbuild-register": "^3.2.1", | ||
"eslint": "^8.8.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-sanity": "^6.0.0", | ||
"prettier": "^2.5.1", | ||
"rimraf": "^4.1.2", | ||
"tap": "^16.3.0", | ||
"typedoc": "^0.23.19", | ||
"typescript": "^4.8.4" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/portabletext/toolkit/issues" | ||
}, | ||
"homepage": "https://github.com/portabletext/toolkit#readme", | ||
"prettier": { | ||
"bracketSpacing": false, | ||
"plugins": [ | ||
"prettier-plugin-packagejson" | ||
], | ||
"printWidth": 100, | ||
"semi": false, | ||
"printWidth": 100, | ||
"bracketSpacing": false, | ||
"singleQuote": true | ||
@@ -89,7 +81,7 @@ }, | ||
"parserOptions": { | ||
"ecmaVersion": 9, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"modules": true | ||
} | ||
}, | ||
"ecmaVersion": 9, | ||
"sourceType": "module" | ||
}, | ||
@@ -102,15 +94,57 @@ "extends": [ | ||
"ignorePatterns": [ | ||
"lib/**/" | ||
"dist/**/" | ||
] | ||
}, | ||
"tap": { | ||
"node-arg": [ | ||
"-r", | ||
"esbuild-register" | ||
"release": { | ||
"branches": [ | ||
"+([0-9])?(.{+([0-9]),x}).x", | ||
"main", | ||
{ | ||
"name": "beta", | ||
"prerelease": true | ||
}, | ||
{ | ||
"name": "alpha", | ||
"prerelease": true | ||
} | ||
], | ||
"nyc-arg": [ | ||
"--exclude=tap-snapshots/*" | ||
], | ||
"check-coverage": false | ||
"extends": "@sanity/semantic-release-preset" | ||
}, | ||
"dependencies": { | ||
"@portabletext/types": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.20.12", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.20.7", | ||
"@commitlint/cli": "^17.4.2", | ||
"@commitlint/config-conventional": "^17.4.2", | ||
"@sanity/pkg-utils": "^2.3.3", | ||
"@sanity/semantic-release-preset": "^4.0.0", | ||
"@types/node": "^20.3.1", | ||
"@typescript-eslint/eslint-plugin": "^5.11.0", | ||
"@typescript-eslint/parser": "^5.11.0", | ||
"@vitest/coverage-c8": "^0.32.2", | ||
"commitizen": "^4.3.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^8.8.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-sanity": "^6.0.0", | ||
"husky": "^8.0.3", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.5.1", | ||
"prettier-plugin-packagejson": "^2.4.2", | ||
"rimraf": "^4.1.2", | ||
"semantic-release": "^20.0.4", | ||
"typedoc": "^0.23.19", | ||
"typescript": "^4.9.4", | ||
"vitest": "^0.32.2", | ||
"vitest-github-actions-reporter": "^0.10.0" | ||
}, | ||
"packageManager": "pnpm@7.33.2", | ||
"engines": { | ||
"node": "^14.13.1 || >=16.0.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
# @portabletext/toolkit | ||
[![npm version](https://img.shields.io/npm/v/@portabletext/toolkit.svg?style=flat-square)](https://www.npmjs.com/package/@portabletext/toolkit)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@portabletext/toolkit?style=flat-square)](https://bundlephobia.com/result?p=@portabletext/toolkit)[![Build Status](https://img.shields.io/github/workflow/status/portabletext/toolkit/test/main.svg?style=flat-square)](https://github.com/portabletext/toolkit/actions?query=workflow%3Atest) | ||
[![npm version](https://img.shields.io/npm/v/@portabletext/toolkit.svg?style=flat-square)](https://www.npmjs.com/package/@portabletext/toolkit)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@portabletext/toolkit?style=flat-square)](https://bundlephobia.com/result?p=@portabletext/toolkit)[![Build Status](https://img.shields.io/github/actions/workflow/status/portabletext/toolkit/main.yml?branch=main&style=flat-square)](https://github.com/portabletext/toolkit/actions?query=workflow%3Atest) | ||
@@ -5,0 +5,0 @@ Javascript toolkit of handy utility functions for dealing with Portable Text. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
136297
25
16
1626
1