vfile-message
Advanced tools
Comparing version 1.0.1 to 1.0.2
20
index.js
@@ -7,3 +7,3 @@ 'use strict' | ||
/* Inherit from `Error#`. */ | ||
// Inherit from `Error#`. | ||
function VMessagePrototype() {} | ||
@@ -13,3 +13,3 @@ VMessagePrototype.prototype = Error.prototype | ||
/* Message properties. */ | ||
// Message properties. | ||
var proto = VMessage.prototype | ||
@@ -26,7 +26,7 @@ | ||
/* Construct a new VMessage. | ||
* | ||
* Note: We cannot invoke `Error` on the created context, | ||
* as that adds readonly `line` and `column` attributes on | ||
* Safari 9, thus throwing and failing the data. */ | ||
// Construct a new VMessage. | ||
// | ||
// Note: We cannot invoke `Error` on the created context, as that adds readonly | ||
// `line` and `column` attributes on Safari 9, thus throwing and failing the | ||
// data. | ||
function VMessage(reason, position, origin) { | ||
@@ -50,3 +50,3 @@ var parts | ||
/* Node. */ | ||
// Node. | ||
if (position && position.position) { | ||
@@ -57,3 +57,3 @@ position = position.position | ||
if (position) { | ||
/* Position. */ | ||
// Position. | ||
if (position.start) { | ||
@@ -63,3 +63,3 @@ location = position | ||
} else { | ||
/* Point. */ | ||
// Point. | ||
location.start = position | ||
@@ -66,0 +66,0 @@ } |
{ | ||
"name": "vfile-message", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Create a virtual message", | ||
@@ -13,5 +13,5 @@ "license": "MIT", | ||
"bugs": "https://github.com/vfile/vfile-message/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
"contributors": [ | ||
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)" | ||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" | ||
], | ||
@@ -26,14 +26,14 @@ "files": [ | ||
"browserify": "^16.0.0", | ||
"esmangle": "^1.0.1", | ||
"nyc": "^11.0.0", | ||
"nyc": "^13.0.0", | ||
"prettier": "^1.12.1", | ||
"remark-cli": "^5.0.0", | ||
"remark-cli": "^6.0.0", | ||
"remark-preset-wooorm": "^4.0.0", | ||
"tape": "^4.0.0", | ||
"xo": "^0.20.0" | ||
"tinyify": "^2.4.3", | ||
"xo": "^0.23.0" | ||
}, | ||
"scripts": { | ||
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix", | ||
"build-bundle": "browserify index.js --bare -s vfileMessage > vfile-message.js", | ||
"build-mangle": "esmangle vfile-message.js > vfile-message.min.js", | ||
"build-bundle": "browserify . -s vfileMessage > vfile-message.js", | ||
"build-mangle": "browserify . -s vfileMessage -p tinyify > vfile-message.min.js", | ||
"build": "npm run build-bundle && npm run build-mangle", | ||
@@ -40,0 +40,0 @@ "test-api": "node test", |
@@ -1,3 +0,8 @@ | ||
# vfile-message [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov] | ||
# vfile-message | ||
[![Build][build-badge]][build] | ||
[![Coverage][coverage-badge]][coverage] | ||
[![Downloads][downloads-badge]][downloads] | ||
[![Chat][chat-badge]][chat] | ||
Create [vfile][] messages. | ||
@@ -147,15 +152,23 @@ | ||
[travis-badge]: https://img.shields.io/travis/vfile/vfile-message.svg | ||
[build-badge]: https://img.shields.io/travis/vfile/vfile-message.svg | ||
[travis]: https://travis-ci.org/vfile/vfile-message | ||
[build]: https://travis-ci.org/vfile/vfile-message | ||
[codecov-badge]: https://img.shields.io/codecov/c/github/vfile/vfile-message.svg | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/vfile/vfile-message.svg | ||
[codecov]: https://codecov.io/github/vfile/vfile-message | ||
[coverage]: https://codecov.io/github/vfile/vfile-message | ||
[downloads-badge]: https://img.shields.io/npm/dm/vfile-message.svg | ||
[downloads]: https://www.npmjs.com/package/vfile-message | ||
[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg | ||
[chat]: https://spectrum.chat/unified/vfile | ||
[npm]: https://docs.npmjs.com/cli/install | ||
[license]: LICENSE | ||
[license]: license | ||
[author]: http://wooorm.com | ||
[author]: https://wooorm.com | ||
@@ -162,0 +175,0 @@ [error]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
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
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
9027
195