From 32eba2d0e9b32eb72158df068d8d31b4dae81ec5 Mon Sep 17 00:00:00 2001 From: Karan Anand Date: Wed, 26 Feb 2025 16:53:42 -0800 Subject: [PATCH 1/2] fix: add the missing native JS file --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na --- --- .../base/special/tribonacci/lib/native.js | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 lib/node_modules/@stdlib/math/base/special/tribonacci/lib/native.js diff --git a/lib/node_modules/@stdlib/math/base/special/tribonacci/lib/native.js b/lib/node_modules/@stdlib/math/base/special/tribonacci/lib/native.js new file mode 100644 index 000000000000..f3bd2577cbbb --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/tribonacci/lib/native.js @@ -0,0 +1,74 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2022 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var addon = require( './../src/addon.node' ); + + +// MAIN // + +/** +* Computes the nth Tribonacci number. +* +* @private +* @param {NonNegativeInteger} n - the Tribonacci number to compute +* @returns {NonNegativeInteger} Tribonacci number +* +* @example +* var y = tribonacci( 0 ); +* // returns 0 +* +* @example +* var y = tribonacci( 1 ); +* // returns 0 +* +* @example +* var y = tribonacci( 2 ); +* // returns 1 +* +* @example +* var y = tribonacci( 3 ); +* // returns 1 +* +* @example +* var y = tribonacci( 4 ); +* // returns 2 +* +* @example +* var y = tribonacci( 5 ); +* // returns 4 +* +* @example +* var y = tribonacci( 6 ); +* // returns 7 +* +* @example +* var y = tribonacci( -1 ); +* // returns NaN +*/ +function tribonacci( n ) { + return addon( n ); +} + + +// EXPORTS // + +module.exports = tribonacci; From 8162a94df4aebd1fd8c58320a1154f435aa439a9 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Thu, 27 Feb 2025 01:32:14 +0000 Subject: [PATCH 2/2] chore: update copyright years --- .../@stdlib/math/base/special/tribonacci/lib/native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/tribonacci/lib/native.js b/lib/node_modules/@stdlib/math/base/special/tribonacci/lib/native.js index f3bd2577cbbb..bef4ce99bf36 100644 --- a/lib/node_modules/@stdlib/math/base/special/tribonacci/lib/native.js +++ b/lib/node_modules/@stdlib/math/base/special/tribonacci/lib/native.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2022 The Stdlib Authors. +* Copyright (c) 2025 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.