Giter Club home page Giter Club logo

icojs's Introduction

icojs

npm CI Coverage Status codebeat badge

A JavaScript library to use ICO. Works on both Node.js and the browser.

Install

npm install icojs

Node.js:

import { isICO, parseICO } from 'icojs';

Browser:

import { isICO, parseICO } from 'icojs/browser';

or

<script type="text/javascript" src="node_modules/icojs/dist/ico.js"></script>

To fully use this library, browsers must support JavaScript typed arrays, Canvas API and Promise. Chrome, Edge 12, Firefox and Safari 9 support these functions.

Example

Node.js:

import { readFile, writeFile } from 'node:fs/promises';
import { parseICO } from 'icojs';

const buffer = await readFile('favicon.ico');
const images = await parseICO(buffer, 'image/png');
// save as png files
images.forEach(image => {
  const file = `${image.width}x${image.height}-${image.bpp}bit.png`;
  const data = Buffer.from(image.buffer);
  writeFile(file, data);
});

Browser:

<input type="file" id="input-file" />
<script>
  document.getElementById('input-file').addEventListener('change', evt => {
    // use FileReader for converting File object to ArrayBuffer object
    var reader = new FileReader();
    reader.onload = async e => {
      const images = await ICO.parseICO(e.target.result);
      // logs images
      console.dir(images);
    };
    reader.readAsArrayBuffer(evt.target.files[0]);
  }, false);
</script>

Demo

https://egy186.github.io/icojs/#demo

API

ICO

isICO(source) ⇒ boolean

Check the ArrayBuffer is valid ICO.

Kind: global method of ICO
Returns: boolean - True if arg is ICO.

Param Type Description
source ArrayBuffer | Buffer ICO file data.

parseICO(buffer, [mime]) ⇒ Promise.<Array.<ParsedImage>>

Parse ICO and return some images.

Kind: global method of ICO
Returns: Promise.<Array.<ParsedImage>> - Resolves to an array of ParsedImage.

Param Type Default Description
buffer ArrayBuffer | Buffer ICO file data.
[mime] string "image/png" MIME type for output.

Typedefs

ParsedImage : object

Kind: global typedef
Properties

Name Type Description
width number Image width.
height number Image height.
bpp number Image color depth as bits per pixel.
buffer ArrayBuffer Image buffer.

License

MIT license

icojs's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar egy186 avatar greenkeeper[bot] avatar irohitb avatar linusu avatar oubakiou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

icojs's Issues

This icon file returns an Uncaught Type error

purge_blank.zip
When putting this icon (it is a blank 32x32 icon) in to the demo page. The console returns:
Uncaught TypeError: Cannot read property '2' of undefined at g (get-image-data.js:113) at w (get-image-data.js:142) at s (parse-bmp.js:45) at u (index.js:30) at index.js:33 at Array.map (<anonymous>) at m (index.js:33) at Object.parse (index.js:16) at FileReader.reader.onload (demo.js:29)
It would be nice to catch this with isICO.

An in-range update of file-type is breaking the build 🚨

The dependency file-type was updated from 10.3.0 to 10.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

file-type is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of mocha is breaking the build 🚨

The devDependency mocha was updated from 6.2.1 to 6.2.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v6.2.2

6.2.2 / 2019-10-18

🐛 Fixes

📖 Documentation

Commits

The new version differs by 12 commits.

  • 843a322 6.2.2
  • aec8b02 update CHANGELOG for v6.2.2 [ci skip]
  • 7a8b95a npm audit fixes
  • cebddf2 Improve reporter documentation for mocha in browser. (#4026)
  • 3f7b987 uncaughtException: report more than one exception per test (#4033)
  • ee82d38 modify alt text of image from Backers to Sponsors inside Sponsors section in Readme (#4046)
  • e9c036c special-case parsing of "require" in unparseNodeArgs(); closes #4035 (#4063)
  • 954cf0b Fix HTMLCollection iteration to make unhide function work as expected (#4051)
  • 816dc27 uncaughtException: fix double EVENT_RUN_END events (#4025)
  • 9650d3f add OpenJS Foundation logo to website (#4008)
  • f04b81d Adopt the OpenJSF Code of Conduct (#3971)
  • aca8895 Add link checking to docs build step (#3972)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Error reading .ico files

I'm trying to extract images of some Windows icons (from the infamous shell32.dll), running on latest stable Node.js (7.2.1).

Sadly this doesn't work. From the about 2000 icons

  • ≈1500 generate an ArrayBuffer (and thus a file) of 20 bytes
    solved, see comment below
  • ≈500 are failing completely with the following error:
TypeError: Cannot read property '2' of undefined
    at Object.from4bit (/path/to/project/node_modules/icojs/src/image-data.js:48:28)
    at Promise.all.range.map.i (/path/to/project/node_modules/icojs/src/ico.js:45:36)
    at Array.map (native)
    at Object.parse (/path/to/project/node_modules/icojs/src/ico.js:34:64)
    at repl:1:5
    at sigintHandlersWrap (vm.js:22:35)
    at sigintHandlersWrap (vm.js:96:12)
    at ContextifyScript.Script.runInThisContext (vm.js:21:12)
    at REPLServer.defaultEval (repl.js:313:29)
    at bound (domain.js:280:14)

No idea where exactly that's coming from. Attaching one .ico file for each case.

How can I use icojs in a Firefox browser extension

Hi, I'd like to use your icon parser in my Firefox extension 'Context Search' to obtain an array of png images from an ico file. I'm new to JS dev and would be very grateful if you would help me integrate your code in the extension code to be able to use parse(buffer, [mime]) ⇒ Promise.<Array.>. You can find my extension here: https://github.com/odebroqueville/contextSearch (the latest version still has some bugs that I need to iron out!).

An in-range update of file-type is breaking the build 🚨

The dependency file-type was updated from 11.0.0 to 11.1.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

file-type is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v11.1.0

Enhancements:

  • Add support for orf, arw, dng, and nef RAW image types (#213) 6c3df3e

Fixes:

  • Fix handling of Uint8Array and ArrayBuffer (#214) e096b4b

v11.0.0...v11.1.0

Commits

The new version differs by 3 commits.

  • d7a1b15 11.1.0
  • 6c3df3e Add support for orf, arw, dng, and nef RAW image types (#213)
  • e096b4b Fix handling of Uint8Array and ArrayBuffer (#214)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of rollup is breaking the build 🚨

The devDependency rollup was updated from 1.18.0 to 1.19.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 6 commits.

  • 9af119d 1.19.0
  • b3f361c Update changelog
  • 456f4d2 Avoid variable from empty module name be empty (#3026)
  • 17eaa43 Use id of last module in chunk as name base for auto-generated chunks (#3025)
  • 871bfa0 Switch to a code-splitting build and update dependencies (#3020)
  • 2443783 Unified file emission api (#2999)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

crashes node and chrome browser when parsing PNG-compressed icon

Steps to reproduce:

Download http://news.ycombinator.com/favicon.ico and save it as favicon.ico

Run the sample code on node:

const fs = require('fs');
const ICO = require('icojs');
 
const arrayBuffer = new Uint8Array(fs.readFileSync('favicon.ico')).buffer;
ICO.parse(arrayBuffer).then(images => {
  // do something 
});

Stacktrace:

<--- Last few GCs --->

[5572:0x103000000]    23518 ms: Mark-sweep 1214.6 (1252.9) -> 1199.6 (1252.9) MB, 897.1 / 0.0 ms  allocation failure GC in old space requested
[5572:0x103000000]    24539 ms: Mark-sweep 1199.6 (1252.9) -> 1199.6 (1252.9) MB, 1020.5 / 0.0 ms  allocation failure GC in old space requested
[5572:0x103000000]    25587 ms: Mark-sweep 1199.6 (1252.9) -> 1199.6 (1220.9) MB, 1048.1 / 0.0 ms  last resort
[5572:0x103000000]    26627 ms: Mark-sweep 1199.6 (1220.9) -> 1199.6 (1220.9) MB, 1040.0 / 0.0 ms  last resort


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x34078dc26729 <JS Object>
    2: extractOne(aka extractOne) [/Users/geza/Dropbox/habitlab-macbookair/node_modules/icojs/src/extract-one.js:~20] [pc=0xbbe146ea0e5](this=0x38ce95e02311 <undefined>,buffer=0x3574204c7dd1 <an ArrayBuffer with map 0x1e5dc84030c9>,index=0)
    3: /* anonymous */(aka /* anonymous */) [/Users/geza/Dropbox/habitlab-macbookair/node_modules/icojs/src/ico.js:35] [pc=0xbbe146e3940](this=0x38ce95e0231...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/usr/local/bin/node]
 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/usr/local/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
 4: v8::internal::Factory::NewUninitializedFixedArray(int) [/usr/local/bin/node]
 5: v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)2> >::GrowCapacity(v8::internal::Handle<v8::internal::JSObject>, unsigned int) [/usr/local/bin/node]
 6: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
 7: 0xbbe144043a7
 8: 0xbbe1469a8cc
fish: 'node foo.js' terminated by signal SIGABRT (Abort)

When run from the background script of a chrome extension, it also crashes chrome during the icojs.parse() step (just crashes and doesn't give any stack trace)

fetch('http://news.ycombinator.com/favicon.ico').then(x => x.arrayBuffer()).then(x =>result = icojs.parse(x))

This works fine for other favicons (ie, the favicon from slashdot and several other major sites work fine), seems to just be specific to this particular favicon

If relevant, I'm on node 7.6.0 on macOS Sierra 10.12.3

An in-range update of rollup is breaking the build 🚨

The devDependency rollup was updated from 1.14.2 to 1.14.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v1.14.3

2019-06-06

Bug Fixes

  • Generate correct external imports when importing from a directory that would be above the root of the current working directory (#2902)

Pull Requests

Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of rollup is breaking the build 🚨

The devDependency rollup was updated from 0.67.3 to 0.67.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Get the PNG from the ICO

I see in your examples how to get the images from the ICO but I cannot determine how to output each image to PNG files. I know this is most likely with the file system and the "Uint8Array". However, I just cannot find the correct way to use writeFileSync to get what I need. Any help would be appreciated.

An in-range update of puppeteer is breaking the build 🚨

The devDependency puppeteer was updated from 2.0.0 to 2.1.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

puppeteer is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 21 commits.

  • a30cf05 chore: mark version v2.1.0 (#5347)
  • 013a86c feat(chromium): roll Chromium to r722269 (#5289)
  • 14b2369 chore: mark puppeteer-firefox version v0.5.1 (#5294)
  • 3a49cfc chore: move to GitHub hosting for Juggler binaries (#5293)
  • c7af7de docs(readme): update link for ndb (#5272)
  • 5e63254 chore: fix typo in test name (#5217)
  • 80b5c44 chore: upgrade https-proxy-agent (#5243)
  • 6091a34 fix: prepare jsHandle.uploadFile for CDP Page.handleFileChooser removal (#5196)
  • 8b49dc6 fix: don’t disable BlinkGenPropertyTrees anymore (#5159)
  • f0bf645 test: reduce flakiness for accessibility tests with autofocus (#5116)
  • 6cc98a7 docs(troubleshooting): recommend using args for heroku (#5197)
  • 35d5ba5 feat(launcher): Set default Firefox prefs (#5149) (#5195)
  • eddb23b chore: update URLs (#5185)
  • c5a72e9 feat(launcher): add option to run Puppeteer with different browsers (#5137)
  • d17708b fix(types): publish protocol types to npm (#5174)

There are 21 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of file-type is breaking the build 🚨

The dependency file-type was updated from 10.2.0 to 10.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

file-type is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 3 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of babel7 is breaking the build 🚨

There have been updates to the babel7 monorepo:

    • The devDependency @babel/core was updated from 7.6.4 to 7.7.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.

babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Improve for cursor files (.CUR)?

Any hints on how to revise for .CUR files? According to some sources these file types are very similar other than the hot spot definition in the cursor files.

An in-range update of puppeteer is breaking the build 🚨

The devDependency puppeteer was updated from 1.17.0 to 1.18.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

puppeteer is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v1.18.0

Big Changes

  • Chromium 77.0.3827.0 (r669486)

API changes

No API changes.

Bug Fixes

  • #2755 - blurry canvas if deviceScaleFactor > 1
  • #4442 - Some pages not fully loading when setRequestInterception set to true
  • #4449 - goto takes an increasing amount of time.
  • #4454 - Intercepted requests won't return with some status codes
  • #4536 - Dangling promises / unhandled rejection due to missing await keywords in mouse.click
  • #4537 - Page.select throwing error when select change page
  • #4543 - Cannot retrieve content of pages that are >100MB.
  • #4545 - page.queryObjects doesn't work as expected
  • #4556 - https-agent makes http PUPPETEER_DOWNLOAD_HOST download fail
  • #4559 - non matching contribution rules makes PR have errors
  • #4563 - Too large write data is pending: size=725124416, max_buffer_size=268435456
  • #4568 - A3 paper size is incorrect

Raw notes

45873ea - feat(chromium): roll Chromium to r669486 (#4591)
955e7cb - feat(page): move page.pdf to protocol streams (#4587)
6c2007f - docs(README.md): fix spelling of Stack Overflow (#4590)
62733a2 - fix(connection): bump websocket max received message size to 256Mb (#4571)
5087962 - feat(chromium): roll Chromium to r668716 (#4581)
6860d73 - fix(network): align HTTP status codes with IANA (#4567)
7922641 - fix(page): fix A2 and A3 format size (#4569)
65b7e8e - docs(api.md): add notes on race condition in page.setViewport (#4319)
8df0b3e - fix(network): allow fulfilling requests with status code 422 (#4566)
b2f9490 - fix(eval): be able to throw protocol like errors (#4551)
6a50888 - fix(firefox): fix missing awaits in mouse.click (#4561)
e1432cc - docs(contributing): update commit message example (#4560)
dd6fcfe - fix(page): fix missing awaits in mouse.click (#4541)
7faf1c9 - fix(BrowserFetcher): fix httpRequest when using proxy against http HOST (#4558)
4bcdfc9 - docs(api.md): clarify frame/page.goto()'s handling of HTTP error statuses (#4553)
aca99cd - docs(troubleshooting): add missing double quotes (#4548)
90df69c - fix(page): do evaluations with one roundtrip (#4539)
7e19846 - feat(chromium): roll Chromium to r666595 (#4530)
f79d0a3 - fix: try running without --disable-gpu on windows (#4523)
15804d1 - test: remove debug console.log (#4522)
78d5106 - feat(chromium): roll Chromium to r665405 (#4516)
f52738e - docs(api.md): clarify on HTTP error responses (#4507)
94ff4de - docs(troubleshooting): fix comment (#4512)
ac611ba - fix(helper): fix Helper.installAsyncStackHooks method (#4478)
d221c02 - test: add test to verify fetching of dataURL requests (#4233)
015e330 - test: add oopif tests (#4495)
111350c - docs(troubleshooting.md): update Alpine instructions (#4494)
084cf02 - chore: bump version to v1.17.0-post (#4468)

Commits

The new version differs by 29 commits.

  • c96454d chore: mark version v1.18.0 (#4606)
  • 45873ea feat(chromium): roll Chromium to r669486 (#4591)
  • 955e7cb feat(page): move page.pdf to protocol streams (#4587)
  • 6c2007f docs(README.md): fix spelling of Stack Overflow (#4590)
  • 62733a2 fix(connection): bump websocket max received message size to 256Mb (#4571)
  • 5087962 feat(chromium): roll Chromium to r668716 (#4581)
  • 6860d73 fix(network): align HTTP status codes with IANA (#4567)
  • 7922641 fix(page): fix A2 and A3 format size (#4569)
  • 65b7e8e docs(api.md): add notes on race condition in page.setViewport (#4319)
  • 8df0b3e fix(network): allow fulfilling requests with status code 422 (#4566)
  • b2f9490 fix(eval): be able to throw protocol like errors (#4551)
  • 6a50888 fix(firefox): fix missing awaits in mouse.click (#4561)
  • e1432cc docs(contributing): update commit message example (#4560)
  • dd6fcfe fix(page): fix missing awaits in mouse.click (#4541)
  • 7faf1c9 fix(BrowserFetcher): fix httpRequest when using proxy against http HOST (#4558)

There are 29 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of rollup is breaking the build 🚨

The devDependency rollup was updated from 1.9.2 to 1.9.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v1.9.3

2019-04-10

Bug Fixes

  • Simplify return expressions that are evaluated before the surrounding function is bound (#2803)

Pull Requests

  • #2803: Handle out-of-order binding of identifiers to improve tree-shaking (@lukastaegert)
Commits

The new version differs by 3 commits.

  • 516a06d 1.9.3
  • a5526ea Update changelog
  • c3d73ff Handle out-of-order binding of identifiers to improve tree-shaking (#2803)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of file-type is breaking the build 🚨

The dependency file-type was updated from 10.9.0 to 10.10.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

file-type is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v10.10.0
  • Refactor TypeScript definition to CommonJS compatible export (#194) d4ee6db

v10.9.0...v10.10.0

Commits

The new version differs by 2 commits.

  • 8d05e7c 10.10.0
  • d4ee6db Refactor TypeScript definition to CommonJS compatible export (#194)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of babel7 is breaking the build 🚨

There have been updates to the babel7 monorepo:

    • The devDependency @babel/core was updated from 7.1.1 to 7.1.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.

babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Unhandled rejection TypeError: this is not a typed array

Hey 😎

I am getting an unhandled error when uploading an ico.

Unhandled rejection TypeError: this is not a typed array.
    at Function.from (native)
    at Object.decode (/Users/kirrg001/dev/ghost/ghost/node_modules/icojs/src/image.js:15:29)
    at Image.decode.then (/Users/kirrg001/dev/ghost/ghost/node_modules/icojs/src/parse-ico.js:50:20)
    at /Users/kirrg001/dev/ghost/ghost/node_modules/icojs/src/parse-ico.js:59:14

This is how we use icojs

var arrayBuffer = new Uint8Array(fs.readFileSync(path)).buffer;
ICO.parse(arrayBuffer).then(....)

Here is the ico.
soffice.zip

Thank you so much for your work!

An in-range update of npm-run-all is breaking the build 🚨

The devDependency npm-run-all was updated from 4.1.3 to 4.1.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

npm-run-all is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 3 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of file-type is breaking the build 🚨

The dependency file-type was updated from 10.5.0 to 10.6.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

file-type is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v10.6.0
Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

ESM package

  • to-data-view@2
  • file-type@18
  • data-uri-to-buffer@6
  • file-url@4

An in-range update of rollup is breaking the build 🚨

The devDependency rollup was updated from 1.27.11 to 1.27.12.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v1.27.12

2019-12-13

Bug Fixes

  • Prevent invalid AMD or SystemJS code when accessing import.meta (#3282)

Pull Requests

  • #3282: Always make "module" available for SystemJS and AMD formats if import.meta is accessed directly (@lukastaegert)
Commits

The new version differs by 3 commits.

  • a5502ad 1.27.12
  • 09e6ab4 Update changelog
  • ab48a69 Always make "module" available for SystemJS and AMD formats if import.meta is accessed directly (#3282)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Is there a way to make this synchronous?

I would like to use this in a script to run periodically. I would like to write the images synchronous and not use a promise as I would like to write the png file name into a json array.

Is there a way to do this?

ICO.serialize

ICO.serialize([ab1, ab2, ab3]).then(ab => {
  console.log(ab);
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.