Socket
Socket
Sign inDemoInstall

@stdlib/complex-base-wrap-function

Package Overview
Dependencies
71
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.1.0

CITATION.cff

8

docs/types/index.d.ts

@@ -19,7 +19,7 @@ /*

// TypeScript Version: 2.0
// TypeScript Version: 4.1
/// <reference types="@stdlib/types"/>
import { ComplexLike } from '@stdlib/types/object';
import { ComplexLike } from '@stdlib/types/complex';

@@ -258,7 +258,7 @@ /**

* var Complex64 = require( `@stdlib/complex/float32` );
* var cadd = require( `@stdlib/math/base/ops/cadd` );
* var caddf = require( `@stdlib/math/base/ops/caddf` );
* var realf = require( `@stdlib/complex/realf` );
* var imagf = require( `@stdlib/complex/imagf` );
*
* var f = wrap( cadd, 2, Complex64 );
* var f = wrap( caddf, 2, Complex64 );
*

@@ -265,0 +265,0 @@ * // ...

@@ -27,2 +27,3 @@ /**

var isNonNegativeInteger = require( '@stdlib/assert-is-nonnegative-integer' ).isPrimitive;
var format = require( '@stdlib/string-format' );

@@ -75,9 +76,9 @@

if ( !isFunction( fcn ) ) {
throw new TypeError( 'invalid argument. First argument must be a function. Value: `' + fcn + '`.' );
throw new TypeError( format( 'invalid argument. First argument must be a function. Value: `%s`.', fcn ) );
}
if ( !isNonNegativeInteger( nargs ) ) {
throw new TypeError( 'invalid argument. Second argument must be a nonnegative integer. Value: `' + nargs + '`.' );
throw new TypeError( format( 'invalid argument. Second argument must be a nonnegative integer. Value: `%s`.', nargs ) );
}
if ( !isFunction( ctor ) ) {
throw new TypeError( 'invalid argument. Third argument must be a constructor function. Value: `' + ctor + '`.' );
throw new TypeError( format( 'invalid argument. Third argument must be a constructor function. Value: `%s`.', ctor ) );
}

@@ -84,0 +85,0 @@ fcns = [ fcn0, fcn1, fcn2, fcn3, fcn4, fcn5 ];

{
"name": "@stdlib/complex-base-wrap-function",
"version": "0.0.1",
"version": "0.1.0",
"description": "Wrap a function accepting complex number arguments to support providing both real and complex numbers.",

@@ -40,16 +40,18 @@ "license": "Apache-2.0",

"dependencies": {
"@stdlib/assert-is-function": "^0.0.x",
"@stdlib/assert-is-nonnegative-integer": "^0.0.x",
"@stdlib/types": "^0.0.x"
"@stdlib/assert-is-function": "^0.1.0",
"@stdlib/assert-is-nonnegative-integer": "^0.1.0",
"@stdlib/string-format": "^0.1.0",
"@stdlib/types": "^0.1.0",
"@stdlib/error-tools-fmtprodmsg": "^0.1.0"
},
"devDependencies": {
"@stdlib/bench": "^0.0.x",
"@stdlib/complex-float32": "^0.0.x",
"@stdlib/complex-imagf": "^0.0.x",
"@stdlib/complex-realf": "^0.0.x",
"@stdlib/math-base-assert-is-nanf": "^0.0.x",
"@stdlib/math-base-ops-caddf": "^0.0.x",
"@stdlib/bench": "^0.1.0",
"@stdlib/complex-float32": "^0.1.0",
"@stdlib/complex-imagf": "^0.1.0",
"@stdlib/complex-realf": "^0.1.0",
"@stdlib/math-base-assert-is-nanf": "^0.1.0",
"@stdlib/math-base-ops-caddf": "^0.0.1",
"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"
},

@@ -84,5 +86,5 @@ "engines": {

"funding": {
"type": "patreon",
"url": "https://www.patreon.com/athan"
"type": "opencollective",
"url": "https://opencollective.com/stdlib"
}
}

@@ -21,2 +21,13 @@ <!--

<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>
# wrap

@@ -169,3 +180,3 @@

Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].

@@ -183,4 +194,4 @@ </section>

[test-image]: https://github.com/stdlib-js/complex-base-wrap-function/actions/workflows/test.yml/badge.svg
[test-url]: https://github.com/stdlib-js/complex-base-wrap-function/actions/workflows/test.yml
[test-image]: https://github.com/stdlib-js/complex-base-wrap-function/actions/workflows/test.yml/badge.svg?branch=v0.1.0
[test-url]: https://github.com/stdlib-js/complex-base-wrap-function/actions/workflows/test.yml?query=branch:v0.1.0

@@ -197,2 +208,9 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/complex-base-wrap-function/main.svg

[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
[stdlib]: https://github.com/stdlib-js/stdlib
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
[umd]: https://github.com/umdjs/umd

@@ -204,10 +222,4 @@ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules

[esm-url]: https://github.com/stdlib-js/complex-base-wrap-function/tree/esm
[branches-url]: https://github.com/stdlib-js/complex-base-wrap-function/blob/main/branches.md
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
[chat-url]: https://gitter.im/stdlib-js/stdlib/
[stdlib]: https://github.com/stdlib-js/stdlib
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/complex-base-wrap-function/main/LICENSE

@@ -214,0 +226,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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