fitbit-sdk-types
Advanced tools
Comparing version 3.2.4 to 3.2.5
{ | ||
"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" | ||
} | ||
} |
@@ -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; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47638
0
56
1511
2
- Removedglob@^7.1.3
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedwrappy@1.0.2(transitive)