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

@vizabi/core

Package Overview
Dependencies
Maintainers
5
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vizabi/core - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

50

dist/Dataframe.js

@@ -1,8 +0,28 @@

// http://vizabi.org v0.0.1 Copyright 2023 Jasper Heeffer and others at Gapminder Foundation
// http://vizabi.org v0.0.2 Copyright 2023 Jasper Heeffer and others at Gapminder Foundation
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('mobx'), require('d3')) :
typeof define === 'function' && define.amd ? define(['exports', 'mobx', 'd3'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Dataframe = {}, global.mobx));
})(this, (function (exports, mobx) { 'use strict';
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Dataframe = {}, global.mobx, global.d3));
})(this, (function (exports, mobx, d3$1) { 'use strict';
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
}
n["default"] = e;
return Object.freeze(n);
}
var d3__namespace = /*#__PURE__*/_interopNamespace(d3$1);
const directions = {

@@ -352,3 +372,3 @@ ascending: 1,

offset: (n, d) => isNumeric(n) && isNumeric(d) ? n + d : console.error("Can't offset using non-numeric values", { n, d }),
range: d3.range,
range: d3__namespace.range,
floor: Math.floor,

@@ -359,6 +379,6 @@ ceil: Math.ceil,

//case for quarter
if (intervalSize === "quarter") return d3.utcMonth.every(3);
if (intervalSize === "quarter") return d3__namespace.utcMonth.every(3);
//special case to make weeks start from monday as per ISO 8601, not sunday
if (intervalSize === "week") intervalSize = "monday";
return d3['utc' + ucFirst(intervalSize)] || nonTimeInterval;
return d3__namespace['utc' + ucFirst(intervalSize)] || nonTimeInterval;
}

@@ -372,11 +392,11 @@

[
d3.utcParse('%Y'),
d3.utcParse('%Y-%m'),
d3.utcParse('%Y-%m-%d'),
d3.utcParse('%Yw%V'),
d3.utcParse('%Yq%q'),
d3.utcParse('%Y-%m-%dT%HZ'),
d3.utcParse('%Y-%m-%dT%H:%MZ'),
d3.utcParse('%Y-%m-%dT%H:%M:%SZ'),
d3.utcParse('%Y-%m-%dT%H:%M:%S.%LZ')
d3__namespace.utcParse('%Y'),
d3__namespace.utcParse('%Y-%m'),
d3__namespace.utcParse('%Y-%m-%d'),
d3__namespace.utcParse('%Yw%V'),
d3__namespace.utcParse('%Yq%q'),
d3__namespace.utcParse('%Y-%m-%dT%HZ'),
d3__namespace.utcParse('%Y-%m-%dT%H:%MZ'),
d3__namespace.utcParse('%Y-%m-%dT%H:%M:%SZ'),
d3__namespace.utcParse('%Y-%m-%dT%H:%M:%S.%LZ')
];

@@ -383,0 +403,0 @@

{
"name": "@vizabi/core",
"version": "0.0.1",
"version": "0.0.2",
"description": "Vizabi core (data layer)",

@@ -5,0 +5,0 @@ "main": "dist/Vizabi.js",

import { fromPromise } from "mobx-utils";
import { action, autorun, isObservableArray, observable, onBecomeObserved, onBecomeUnobserved } from "mobx";
import "d3";
import * as d3 from "d3";
import { createFilterFn } from "../dataframe/transforms/filter";

@@ -5,0 +5,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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