@stdlib/regexp-semver
Advanced tools
Comparing version
@@ -19,3 +19,3 @@ /* | ||
// TypeScript Version: 2.0 | ||
// TypeScript Version: 4.1 | ||
@@ -86,2 +86,1 @@ /** | ||
export = reSemVer; | ||
@@ -52,3 +52,3 @@ /** | ||
var setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' ); | ||
var reSemVer = require( './main.js' ); | ||
var main = require( './main.js' ); | ||
var REGEXP = require( './regexp.js' ); | ||
@@ -59,3 +59,3 @@ | ||
setReadOnly( reSemVer, 'REGEXP', REGEXP ); | ||
setReadOnly( main, 'REGEXP', REGEXP ); | ||
@@ -65,2 +65,2 @@ | ||
module.exports = reSemVer; | ||
module.exports = main; |
{ | ||
"name": "@stdlib/regexp-semver", | ||
"version": "0.0.1", | ||
"description": "Return a regular expression to match a semantic version string.", | ||
"version": "0.1.0", | ||
"description": "Regular expression to match a semantic version string.", | ||
"license": "Apache-2.0", | ||
@@ -40,10 +40,10 @@ "author": { | ||
"dependencies": { | ||
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x" | ||
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.1.0" | ||
}, | ||
"devDependencies": { | ||
"@stdlib/assert-is-regexp": "^0.0.x", | ||
"@stdlib/bench": "^0.0.x", | ||
"@stdlib/assert-is-regexp": "^0.0.7", | ||
"@stdlib/bench": "^0.0.12", | ||
"tape": "git+https://github.com/kgryte/tape.git#fix/globby", | ||
"istanbul": "^0.4.1", | ||
"tap-spec": "5.x.x" | ||
"tap-min": "git+https://github.com/Planeshifter/tap-min.git" | ||
}, | ||
@@ -85,5 +85,5 @@ "engines": { | ||
"funding": { | ||
"type": "patreon", | ||
"url": "https://www.patreon.com/athan" | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/stdlib" | ||
} | ||
} |
@@ -21,7 +21,18 @@ <!-- | ||
# Semantic Version | ||
<details> | ||
<summary> | ||
About stdlib... | ||
</summary> | ||
<p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p> | ||
<p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p> | ||
<p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p> | ||
<p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p> | ||
</details> | ||
# reSemVer | ||
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] --> | ||
> [Regular expression][regexp] to match a [semantic version][semantic-version] string. | ||
> [Regular expression][mdn-regexp] to match a [semantic version][semantic-version] string. | ||
@@ -48,3 +59,3 @@ <section class="installation"> | ||
Return a [regular expression][regexp] to match a [semantic version][semantic-version] string. | ||
Returns a [regular expression][mdn-regexp] to match a [semantic version][semantic-version] string. | ||
@@ -88,3 +99,3 @@ ```javascript | ||
[Regular expression][regexp] to match a [semantic version][semantic-version] string. | ||
[Regular expression][mdn-regexp] to match a [semantic version][semantic-version] string. | ||
@@ -122,2 +133,3 @@ ```javascript | ||
var RE_SEMVER = reSemVer(); | ||
var version = '1.0.0'; | ||
@@ -190,3 +202,3 @@ var bool = RE_SEMVER.test( version ); | ||
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. | ||
Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. | ||
@@ -204,4 +216,4 @@ </section> | ||
[test-image]: https://github.com/stdlib-js/regexp-semver/actions/workflows/test.yml/badge.svg?branch=v0.0.1 | ||
[test-url]: https://github.com/stdlib-js/regexp-semver/actions/workflows/test.yml?query=branch:v0.0.1 | ||
[test-image]: https://github.com/stdlib-js/regexp-semver/actions/workflows/test.yml/badge.svg?branch=v0.1.0 | ||
[test-url]: https://github.com/stdlib-js/regexp-semver/actions/workflows/test.yml?query=branch:v0.1.0 | ||
@@ -219,3 +231,3 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/regexp-semver/main.svg | ||
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg | ||
[chat-url]: https://gitter.im/stdlib-js/stdlib/ | ||
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im | ||
@@ -236,3 +248,3 @@ [stdlib]: https://github.com/stdlib-js/stdlib | ||
[regexp]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions | ||
[mdn-regexp]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions | ||
@@ -239,0 +251,0 @@ [semantic-version]: https://semver.org/ |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
32610
24.13%12
20%252
5%244
-8.96%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated