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

ciebase-ts

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ciebase-ts - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

4

lib/helpers.d.ts
import { IXYCoordinate, TIlluminant } from "./types";
export declare const xyCoodinateToXYZTuple: ({ x, y }: IXYCoordinate) => TIlluminant;
export declare const sign: (n: number) => number;
export declare const helpers: {
xyCoodinateToXYZTuple: ({ x, y }: IXYCoordinate) => [number, number, number];
sign: (n: number) => number;
};

@@ -15,2 +15,3 @@ "use strict";

exports.sign = function (n) { return isNaN(n) ? NaN : n > 0 ? 1 : n < 0 ? -1 : 0; };
exports.helpers = { xyCoodinateToXYZTuple: exports.xyCoodinateToXYZTuple, sign: exports.sign };
//# sourceMappingURL=helpers.js.map

8

lib/index.d.ts
export * from "./types";
export * from "./illuminant";
export * from "./workspace";
export * from "./xyz";
export { illuminants as illuminant } from "./illuminant";
export { workspaces as workspace } from "./workspace";
export { Converter as xyz } from "./xyz";
export { degree } from "./degree";
export { matrix } from "./matrix";
export { rgb } from "./rgb";
export * from "./helpers";
export { helpers } from "./helpers";
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
exports.__esModule = true;
__export(require("./illuminant"));
__export(require("./workspace"));
__export(require("./xyz"));
var illuminant_1 = require("./illuminant");
exports.illuminant = illuminant_1.illuminants;
var workspace_1 = require("./workspace");
exports.workspace = workspace_1.workspaces;
var xyz_1 = require("./xyz");
exports.xyz = xyz_1.Converter;
var degree_1 = require("./degree");

@@ -15,3 +15,4 @@ exports.degree = degree_1.degree;

exports.rgb = rgb_1.rgb;
__export(require("./helpers"));
var helpers_1 = require("./helpers");
exports.helpers = helpers_1.helpers;
//# sourceMappingURL=index.js.map

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

var vString = round(255 * v).toString(16);
return vString.length < 2 ? "0" + v : v;
return vString.length < 2 ? "0" + vString : vString;
}).join("");

@@ -20,0 +20,0 @@ return "#" + hex;

{
"name": "ciebase-ts",
"version": "0.1.4",
"version": "0.1.5",
"description": "TypeScript port of ciebase - Basic building blocks for CIE color spaces",

@@ -5,0 +5,0 @@ "author": "Frédérique Mittelstaedt <npm@gfm.io> (https://www.gfm.io)",

{
"compilerOptions": {
"moduleResolution": "node",
"declaration": true,

@@ -4,0 +5,0 @@ "sourceMap": true,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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