Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fitbit-sdk-types

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fitbit-sdk-types - npm Package Compare versions

Comparing version 3.2.4 to 3.2.5

scripts/file-system.js

5

package.json
{
"name": "fitbit-sdk-types",
"version": "3.2.4",
"version": "3.2.5",
"author": "Sergio Morchón Poveda <sergio.morchon@outlook.com>",

@@ -41,6 +41,3 @@ "description": "Types for Fitbit SDK.",

"typescript": "^3.3.1"
},
"dependencies": {
"glob": "^7.1.3"
}
}

10

scripts/apply.js

@@ -5,3 +5,3 @@ const { name: moduleName, version: moduleVersion } = require('../package.json');

const { join } = require('path');
const glob = require('glob');
const {walkFiles} = require('./file-system');

@@ -80,3 +80,7 @@ const moduleDependency = `${moduleName}@${moduleVersion}`;

.forEach(({ directory, tsConfig }) => {
glob.sync(`${directory}/**/*.j{s,sx}`).forEach(fileName => {
for (const fileName of walkFiles(directory)) {
if (!/.*\.j(s|sx)$/.test(fileName)) {
continue;
}
const renamedFileName = fileName.replace(/\.js(x)?$/, '.ts$1');

@@ -93,3 +97,3 @@ tryRun(

);
});
};
});

@@ -96,0 +100,0 @@

@@ -18,2 +18,3 @@ /// <reference path="./shared.d.ts" />

/// <reference path="./device/scientific.d.ts" />
/// <reference path="./device/scientific-signal.d.ts" />
/// <reference path="./device/sensor.d.ts" />

@@ -20,0 +21,0 @@ /// <reference path="./device/system.d.ts" />

declare module 'scientific' {
interface Scientific {
range(stop: number): Float32Array;
range(start: number, stop: number): Float32Array; // tslint:disable-line unified-signatures
range(start: number, stop: number, step: number): Float32Array; // tslint:disable-line unified-signatures
stride(arr: Float32Array, stride?: number): Float32Array;
std(arr: Float32Array): number;
variance(arr: Float32Array): number;
argmax(arr: Float32Array): number;
argmin(arr: Float32Array): number;
max(arr: Float32Array): number;
min(arr: Float32Array): number;
sum(arr: Float32Array): number;
mean(arr: Float32Array): number;
div(a1: Float32Array, a2: Float32Array): Float32Array;
div(a: Float32Array, c: number): Float32Array; // tslint:disable-line unified-signatures
div(c: number, a: Float32Array): Float32Array; // tslint:disable-line unified-signatures
mul(a1: Float32Array, a2: Float32Array): Float32Array;
mul(a: Float32Array, c: number): Float32Array; // tslint:disable-line unified-signatures
mul(c: number, a: Float32Array): Float32Array; // tslint:disable-line unified-signatures
sub(a1: Float32Array, a2: Float32Array): Float32Array;
sub(a: Float32Array, c: number): Float32Array; // tslint:disable-line unified-signatures
sub(c: number, a: Float32Array): Float32Array; // tslint:disable-line unified-signatures
add(a1: Float32Array, a2: Float32Array): Float32Array;
add(a: Float32Array, c: number): Float32Array; // tslint:disable-line unified-signatures
add(c: number, a: Float32Array): Float32Array; // tslint:disable-line unified-signatures
sqrt(arr: Float32Array): Float32Array;
square(arr: Float32Array): Float32Array;
abs(arr: Float32Array): Float32Array;
}
const scientific: Scientific;
namespace signal {
class LinearFilter {
readonly a: Float32Array;
readonly b: Float32Array;
readonly z: Float32Array;
constructor(a: Float32Array, b: Float32Array, zi?: Float32Array);
update(x: Float32Array): Float32Array;
}
}
function range(stop: number): Float32Array;
function range(start: number, stop: number): Float32Array; // tslint:disable-line unified-signatures
function range(start: number, stop: number, step: number): Float32Array; // tslint:disable-line unified-signatures
function stride(arr: Float32Array, stride?: number): Float32Array;
function std(arr: Float32Array): number;
function variance(arr: Float32Array): number;
function argmax(arr: Float32Array): number;
function argmin(arr: Float32Array): number;
function max(arr: Float32Array): number;
function min(arr: Float32Array): number;
function sum(arr: Float32Array): number;
function mean(arr: Float32Array): number;
function div(a1: Float32Array, a2: Float32Array): Float32Array;
function div(a: Float32Array, c: number): Float32Array; // tslint:disable-line unified-signatures
function div(c: number, a: Float32Array): Float32Array; // tslint:disable-line unified-signatures
function mul(a1: Float32Array, a2: Float32Array): Float32Array;
function mul(a: Float32Array, c: number): Float32Array; // tslint:disable-line unified-signatures
function mul(c: number, a: Float32Array): Float32Array; // tslint:disable-line unified-signatures
function sub(a1: Float32Array, a2: Float32Array): Float32Array;
function sub(a: Float32Array, c: number): Float32Array; // tslint:disable-line unified-signatures
function sub(c: number, a: Float32Array): Float32Array; // tslint:disable-line unified-signatures
function add(a1: Float32Array, a2: Float32Array): Float32Array;
function add(a: Float32Array, c: number): Float32Array; // tslint:disable-line unified-signatures
function add(c: number, a: Float32Array): Float32Array; // tslint:disable-line unified-signatures
function sqrt(arr: Float32Array): Float32Array;
function square(arr: Float32Array): Float32Array;
function abs(arr: Float32Array): Float32Array;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc