Socket
Socket
Sign inDemoInstall

unist-util-stringify-position

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

8

index.js
'use strict';
var has = require('has');
var own = {}.hasOwnProperty;

@@ -14,3 +14,3 @@ module.exports = stringify;

/* Node. */
if (has(value, 'position') || has(value, 'type')) {
if (own.call(value, 'position') || own.call(value, 'type')) {
return location(value.position);

@@ -20,3 +20,3 @@ }

/* Location. */
if (has(value, 'start') || has(value, 'end')) {
if (own.call(value, 'start') || own.call(value, 'end')) {
return location(value);

@@ -26,3 +26,3 @@ }

/* Position. */
if (has(value, 'line') || has(value, 'column')) {
if (own.call(value, 'line') || own.call(value, 'column')) {
return position(value);

@@ -29,0 +29,0 @@ }

{
"name": "unist-util-stringify-position",
"version": "1.1.0",
"version": "1.1.1",
"description": "Stringify a Unist node, location, or position",

@@ -16,4 +16,4 @@ "license": "MIT",

],
"repository": "https://github.com/wooorm/unist-util-stringify-position",
"bugs": "https://github.com/wooorm/unist-util-stringify-position/issues",
"repository": "https://github.com/syntax-tree/unist-util-stringify-position",
"bugs": "https://github.com/syntax-tree/unist-util-stringify-position/issues",
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)",

@@ -26,13 +26,11 @@ "contributors": [

],
"dependencies": {
"has": "^1.0.1"
},
"dependencies": {},
"devDependencies": {
"browserify": "^13.0.0",
"browserify": "^14.1.0",
"esmangle": "^1.0.0",
"nyc": "^9.0.1",
"remark-cli": "^2.0.0",
"remark-preset-wooorm": "^1.0.0",
"nyc": "^10.0.0",
"remark-cli": "^3.0.0",
"remark-preset-wooorm": "^3.0.0",
"tape": "^4.5.1",
"xo": "^0.17.1"
"xo": "^0.18.1"
},

@@ -57,2 +55,3 @@ "scripts": {

"space": true,
"esnext": false,
"ignores": [

@@ -63,4 +62,6 @@ "unist-util-stringify-position.js"

"remarkConfig": {
"presets": "wooorm"
"plugins": [
"preset-wooorm"
]
}
}

@@ -45,7 +45,7 @@ # unist-util-stringify-position [![Build Status][build-badge]][build-page] [![Coverage Status][coverage-badge]][coverage-page]

* `node` ([`Node`][node])
— Node whose `'position'` property to stringify;
— Node whose `'position'` property to stringify
* `location` ([`Location`][location])
— Location whose `'start'` and `'end'` positions to stringify;
— Location whose `'start'` and `'end'` positions to stringify
* `position` ([`Position`][position])
— Location whose `'line'` and `'column'` to stringify.
— Location whose `'line'` and `'column'` to stringify

@@ -66,9 +66,9 @@ ###### Returns

[build-badge]: https://img.shields.io/travis/wooorm/unist-util-stringify-position.svg
[build-badge]: https://img.shields.io/travis/syntax-tree/unist-util-stringify-position.svg
[build-page]: https://travis-ci.org/wooorm/unist-util-stringify-position
[build-page]: https://travis-ci.org/syntax-tree/unist-util-stringify-position
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/unist-util-stringify-position.svg
[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-stringify-position.svg
[coverage-page]: https://codecov.io/github/wooorm/unist-util-stringify-position?branch=master
[coverage-page]: https://codecov.io/github/syntax-tree/unist-util-stringify-position?branch=master

@@ -81,8 +81,8 @@ [npm]: https://docs.npmjs.com/cli/install

[unist]: https://github.com/wooorm/unist
[unist]: https://github.com/syntax-tree/unist
[node]: https://github.com/wooorm/unist#node
[node]: https://github.com/syntax-tree/unist#node
[location]: https://github.com/wooorm/unist#location
[location]: https://github.com/syntax-tree/unist#location
[position]: https://github.com/wooorm/unist#position
[position]: https://github.com/syntax-tree/unist#position
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc