diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b17435b..0037bdb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -182,7 +182,11 @@ jobs: fi # Trim leading and trailing whitespace: dep=$(echo "$dep" | xargs) - version="^$(npm view $dep version)" + version="$(npm view $dep version)" + if [[ -z "$version" ]]; then + continue + fi + version="^$version" jq -r --arg dep "$dep" --arg version "$version" '.dependencies[$dep] = $version' package.json > package.json.tmp mv package.json.tmp package.json done @@ -192,7 +196,11 @@ jobs: fi # Trim leading and trailing whitespace: dep=$(echo "$dep" | xargs) - version="^$(npm view $dep version)" + version="$(npm view $dep version)" + if [[ -z "$version" ]]; then + continue + fi + version="^$version" jq -r --arg dep "$dep" --arg version "$version" '.devDependencies[$dep] = $version' package.json > package.json.tmp mv package.json.tmp package.json done diff --git a/README.md b/README.md index 5a90bb2..de7c22c 100644 --- a/README.md +++ b/README.md @@ -204,8 +204,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. [npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-shape.svg [npm-url]: https://npmjs.org/package/@stdlib/ndarray-shape -[test-image]: https://github.com/stdlib-js/ndarray-shape/actions/workflows/test.yml/badge.svg?branch=main -[test-url]: https://github.com/stdlib-js/ndarray-shape/actions/workflows/test.yml?query=branch:main +[test-image]: https://github.com/stdlib-js/ndarray-shape/actions/workflows/test.yml/badge.svg?branch=v0.1.0 +[test-url]: https://github.com/stdlib-js/ndarray-shape/actions/workflows/test.yml?query=branch:v0.1.0 [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-shape/main.svg [coverage-url]: https://codecov.io/github/stdlib-js/ndarray-shape?branch=main diff --git a/dist/index.js b/dist/index.js index 9b36a7c..a70aced 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,5 +1,5 @@ "use strict";var s=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var u=s(function(f,o){ -var v=require('@stdlib/assert-is-nonnegative-integer/dist').isPrimitive,p=require('@stdlib/assert-is-collection/dist'),n=require('@stdlib/error-tools-fmtprodmsg/dist');function l(r){var e,a,t,i;if(typeof r!="object"||r===null)throw new TypeError(n('nullDv',r));if(a=r.shape,!p(a))throw new TypeError(n('nullDv',r));for(e=[],i=0;i