Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: CI workflow
on: [push, pull_request]
name: CI

on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'

jobs:

browsers:
runs-on: ubuntu-latest
steps:
Expand All @@ -10,6 +21,7 @@ jobs:
run: npm install
- name: Test
run: npm run test-in-browsers

test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -25,6 +37,7 @@ jobs:
run: npm install --ignore-scripts
- name: Test
run: npm run test

test-legacy:
runs-on: ubuntu-latest
strategy:
Expand All @@ -40,3 +53,11 @@ jobs:
run: npm install --ignore-scripts
- name: Test
run: npm run test-legacy

automerge:
needs: [browsers, test, test-legacy]
runs-on: ubuntu-latest
steps:
- uses: fastify/github-action-merge-dependabot@v2.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# secure-json-parse

![Ci Workflow](https://github.com/fastify/secure-json-parse/workflows/CI%20workflow/badge.svg)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
![CI](https://github.com/fastify/secure-json-parse/workflows/CI/badge.svg)
[![NPM version](https://img.shields.io/npm/v/secure-json-parse.svg?style=flat)](https://www.npmjs.com/package/secure-json-parse)
[![Known Vulnerabilities](https://snyk.io/test/github/fastify/secure-json-parse/badge.svg)](https://snyk.io/test/github/fastify/secure-json-parse)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)

`JSON.parse()` drop-in replacement with prototype poisoning protection.

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"types": "index.d.ts",
"scripts": {
"benchmark": "cd benchmarks && npm install && npm run all",
"test-legacy": "nyc tape test.js",
"test": "standard && tsd && nyc tape test.js",
"test-in-browsers": "airtap test.js"
"test-in-browsers": "airtap test.js",
"test-legacy": "nyc tape test.js"
},
"repository": {
"type": "git",
Expand Down