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

jsonpos

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonpos - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

2

dist/position.js

@@ -19,3 +19,3 @@ export function countCharUntil(text, end, char) {

// Clamp to text range
pos = Math.min(Math.max(pos, 0), text.length - 1);
pos = Math.min(Math.max(pos, 0), text.length);
const { count, lastPos } = countCharUntil(text, pos + 1, '\n');

@@ -22,0 +22,0 @@ const newlines = count;

{
"name": "jsonpos",
"version": "4.1.0",
"version": "4.1.1",
"description": "Get the textual position of a property in a JSON text",

@@ -5,0 +5,0 @@ "author": "Gustaf Räntilä",

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