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

data-juggler

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-juggler - npm Package Compare versions

Comparing version 0.1.9 to 0.2.1

package-lock.json

6

build/main/lib/parse.js

@@ -66,3 +66,3 @@ "use strict";

get dateTime() {
return dayjs_1.default.unix(Number(value) || 0);
return dayjs_1.default.unix(Number(rawValue));
},

@@ -77,3 +77,3 @@ get isValid() {

return !lodash_1.isNull(min) && !lodash_1.isNull(max) && !lodash_1.isNull(this.raw)
? (Number(value) - min) / (max - min)
? (Number(rawValue) - min) / (max - min)
: 0;

@@ -126,2 +126,2 @@ }

exports.parseDates = parseDates;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL3BhcnNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbUNBQWdGO0FBRWhGLGtEQUEwQjtBQUUxQixnREFBZ0Q7QUFDaEQsdUZBQThELENBQUMsaUJBQWlCO0FBQ2hGLG1EQUFtRDtBQUNuRCxlQUFLLENBQUMsTUFBTSxDQUFDLDJCQUFpQixDQUFDLENBQUEsQ0FBQyxhQUFhO0FBRTdDLHlEQU8rQjtBQWUvQix1REFBK0U7QUFZbEUsUUFBQSxRQUFRLEdBQUcsQ0FBSSxDQUFJLEVBQUksRUFBRSxDQUFDLENBQUMsQ0FBQTtBQUV4QyxNQUFNLGdCQUFnQixHQUFHLENBQUMsQ0FBVSxFQUFFLEVBQUU7SUFDdEMsUUFBTyxPQUFPLENBQUMsRUFBRTtRQUNmLEtBQUssUUFBUTtZQUNYLE9BQU8sQ0FBQyxDQUFBO1FBQ1YsS0FBSyxRQUFRO1lBQ1gsT0FBTy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csQ0FBdUIsR0FBTSxFQUFFLEtBQVEsRUFBVSxFQUFFLENBQ25FLFlBQUcsQ0FDRCxNQUFNLEVBQ04sR0FBRyxFQUNILENBQUMsQ0FBSSxFQUFFLEVBQUUsQ0FBQyxDQUFDLGNBQUssQ0FBQyxlQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsZUFBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksRUFBRSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQzNFLENBQUMsS0FBSyxDQUFDLENBQUE7SUFFVixPQUFPLE9BQU8sQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLEVBQUUsQ0FDekIsa0NBQW1CLENBQ2pCLEtBQUssRUFDTCxVQUFVLEVBQ1YsU0FBUyxDQUNWLENBQ0YsQ0FBQztBQUNKLENBQUM7QUExQkQsZ0NBMEJDIn0=

@@ -61,3 +61,3 @@ import { get, isNaN, isNull, toString } from 'lodash';

get dateTime() {
return dayjs.unix(Number(value) || 0);
return dayjs.unix(Number(rawValue));
},

@@ -72,3 +72,3 @@ get isValid() {

return !isNull(min) && !isNull(max) && !isNull(this.raw)
? (Number(value) - min) / (max - min)
? (Number(rawValue) - min) / (max - min)
: 0;

@@ -119,2 +119,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL3BhcnNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxHQUFHLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBNEIsUUFBUSxFQUFFLE1BQU0sUUFBUSxDQUFDO0FBRWhGLE9BQU8sS0FBSyxNQUFNLE9BQU8sQ0FB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QUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FDM0UsQ0FBQyxLQUFLLENBQUMsQ0FBQTtJQUVWLE9BQU8sT0FBTyxDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUN6QixtQkFBbUIsQ0FDakIsS0FBSyxFQUNMLFVBQVUsRUFDVixTQUFTLENBQ1YsQ0FDRixDQUFDO0FBQ0osQ0FBQyJ9
{
"name": "data-juggler",
"version": "0.1.9",
"version": "0.2.1",
"main": "build/main/index.js",

@@ -54,3 +54,3 @@ "typings": "build/main/index.d.ts",

"dependencies": {
"@types/lodash": "^4.14.122",
"@types/lodash": "^4.14.123",
"dayjs": "^1.8.13",

@@ -57,0 +57,0 @@ "lodash": "^4.17.11",

@@ -52,3 +52,3 @@ # data-juggler 🤹‍♀️

instance === {
t.deepEqual(instance, {
height: {

@@ -68,3 +68,3 @@ raw: 190,

}
}
})
// true

@@ -74,3 +74,3 @@

On top of that you also get some getters for each variable that return the whole column, this could be cutted eventually in a censorship attempt by my boss.
On top of that you also get some getters for each variable that return the whole column, this could be cut eventually in a censorship attempt by my boss.

@@ -106,15 +106,19 @@ Edit: the censorship did happen, this is not there anymore.

formatter = {
height: [{
property: 'feet',
compute: (datum) => datum * 0.0328084
},
{
property: 'rescaled',
compute: (datum, min, max) => datum / max
}],
timeOfMeasure: [{
property: 'year',
compute: (day) => day.format('YYYY')
}]
const formatter = {
height: [
{
property: 'feet',
compute: (datum) => datum * 0.0328084
},
{
property: 'rescaled',
compute: (datum, min, max) => datum / max
}
],
timeOfMeasure: [
{
property: 'year',
compute: (day) => day.format('YYYY')
}
]
}

@@ -124,5 +128,5 @@

const dataStore = dataJuggler(data, types, formatter);
const dataStore = dataJuggler(data, { types, formatter });
instance === {
t.deepEqual(istance, {
height: {

@@ -132,3 +136,4 @@ raw: 190,

// newly added
feet: 6,233596
rescale: 1,
feet: 6.233596,
},

@@ -139,7 +144,7 @@ timeOfMeasure: {

raw: 1552397832139,
scaled: 1
scaled: 1,
// newly added
year: '2019',
}
}
})

@@ -166,1 +171,45 @@ // true

```
## Using other libary functions
You can of course use other functions from within the library. For example, let's say you want to use the autoinference function and do some operations on it you can simply import it and use it
```javascript
import { autoInferenceType } from 'data-juggler/build/main/lib/utils/dataInference';
const inferredType = autoInferenceType(yourData, yourTypeObject || {}, yourParser || {})
const { data, momemnts } = dataJuggler(yourData, { types: inferredType })
```
The types you passed in the config will not be overwritten by the library! The same can be done with other functions like `computeMoments` and `parseDates`. Not sure why you would do that but knock yourself out.
## A more structured example, without having the data structure
So far we have been talking about cases where you know your data at "compile time" and neither does Typescript. This hinders the ability of the library to help you structure stuff correctly but all the core functionalities are intact and shining bright. Let's assume you need to fetch some data, of which you know the structure but you don't "have" it, you need not to worry! The function `dataJuggler` accepts one generic which is the type of the datum so you can do something like this:
```javascript
interface ExpectedDatum {
height: number,
name: string
}
const raw = ky.get('this.is.a.fancy.end.point.with.many.points.com/get').json()
const juggled = dataJuggler<ExpectedDatum>(raw)
```
## The Mobx-state-tree in the room
If, for example, you use [Mobx state tree](https://github.com/mobxjs/mobx-state-tree) you could do the following:
```javascript
import {} from ''
export const YourFancyMSTModel = t
.model('YourFancyMSTModel', {
juggleType: t.frozen<InferObject<YourDataStructure || Record<string, unknown>(),
juggledData: t.frozen<JuggledData<YourDataStructure || Record<string, unknown>(),
moments: t.frozen<MomentsObject<YourDataStructure || Record<string, unknown>(),
})
```
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