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 1.0.2 to 1.0.3

4

dist/index.js

@@ -10,4 +10,6 @@ "use strict";

function jsonpos(json, options) {
return location_1.getLocation(parse_1.getAstByString(json), options);
return location_1.getLocation(typeof json === 'string'
? parse_1.getAstByString(json)
: parse_1.getAstByObject(json), options);
}
exports.jsonpos = jsonpos;
{
"name": "jsonpos",
"version": "1.0.2",
"version": "1.0.3",
"description": "Get the textual position of a property in a JSON text",

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

[![npm version][npm-image]][npm-url]
[![downloads][downloads-image]][npm-url]
[![build status][build-image]][build-url]
<!-- [![coverage status][coverage-image]][coverage-url] -->
<!-- [![Language grade: JavaScript][lgtm-image]][lgtm-url] -->
[![coverage status][coverage-image]][coverage-url]
[![Language grade: JavaScript][lgtm-image]][lgtm-url]

@@ -7,0 +7,0 @@

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