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

minitel-mosaic

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minitel-mosaic - npm Package Compare versions

Comparing version 2.0.5 to 2.1.0

4

dist/index.d.ts
import { Image, ImageAttributes } from './components/image.js';
import { anyHandler } from './converters/any.js';
import { sharpHandler } from './converters/sharp.js';
import { defaultImg } from './converters/default.js';
export { Image, anyHandler, sharpHandler, defaultImg };
export { Image, defaultImg };
export { ImageAttributes };
import { Image } from './components/image.js';
import { anyHandler } from './converters/any.js';
import { sharpHandler } from './converters/sharp.js';
// import { anyHandler } from './converters/any.js';
// import { sharpHandler } from './converters/sharp.js';
import { defaultImg } from './converters/default.js';
export { Image, anyHandler, sharpHandler, defaultImg };
export { Image, defaultImg };

@@ -5,4 +5,3 @@ import { WebSocketServer, createWebSocketStream } from 'ws';

import { Image } from '../components/image.js';
import { sharpHandler } from '../converters/sharp.js';
import sharp from 'sharp';
import { defaultImg } from '../converters/default.js';
const wss = new WebSocketServer({ port: 8080 });

@@ -32,4 +31,4 @@ class DuplexBridge extends Duplex {

await minitel.readyAsync();
minitel.appendChild(new Image([], { imageData: await sharpHandler(sharp('./test.png').resize(80, 75)) }, minitel));
// minitel.appendChild(new Image([], { imageData: defaultImg() }, minitel));
// minitel.appendChild(new Image([], { imageData: await sharpHandler(sharp('./test.png').resize(80, 75)) }, minitel));
minitel.appendChild(new Image([], { imageData: defaultImg() }, minitel));
minitel.on('frame', () => console.log('render done!'));

@@ -36,0 +35,0 @@ minitel.queueImmediateRenderToStream();

{
"name": "minitel-mosaic",
"version": "2.0.5",
"version": "2.1.0",
"description": "A mosaic adaptor for immjs's minitel npm ecoystem",

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

import { Image, ImageAttributes } from './components/image.js';
import { anyHandler } from './converters/any.js';
import { sharpHandler } from './converters/sharp.js';
// import { anyHandler } from './converters/any.js';
// import { sharpHandler } from './converters/sharp.js';
import { defaultImg } from './converters/default.js';
export { Image, anyHandler, sharpHandler, defaultImg };
export { Image, defaultImg };
export { ImageAttributes };
import { WebSocket, WebSocketServer, createWebSocketStream } from 'ws';
import { Duplex, DuplexOptions } from 'stream';
import { Minitel, Paragraph, Scrollable } from 'minitel-standalone';
import { Minitel } from 'minitel-standalone';
import { Image } from '../components/image.js';
import { sharpHandler } from '../converters/sharp.js';
// import { sharpHandler } from '../converters/sharp.js';
import sharp from 'sharp';
import { defaultImg } from '../converters/default.js';

@@ -39,4 +40,4 @@ const wss = new WebSocketServer({ port: 8080 });

minitel.appendChild(new Image([], { imageData: await sharpHandler(sharp('./test.png').resize(80, 75)) }, minitel));
// minitel.appendChild(new Image([], { imageData: defaultImg() }, minitel));
// minitel.appendChild(new Image([], { imageData: await sharpHandler(sharp('./test.png').resize(80, 75)) }, minitel));
minitel.appendChild(new Image([], { imageData: defaultImg() }, minitel));

@@ -43,0 +44,0 @@ minitel.on('frame', () => console.log('render done!'));

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