🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@shockpkg/icon-encoder

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shockpkg/icon-encoder - npm Package Compare versions

Comparing version

to
3.2.3

8

bin/icon-encoder.js
#!/usr/bin/env node
'use strict';
const {readFile, writeFile} = require('node:fs/promises');

@@ -8,3 +10,3 @@

function basename(file) {
return file.split(/[\\/]/g).pop();
return file.split(/[/\\]/g).pop();
}

@@ -125,5 +127,5 @@

if (e > 0) {
const p = a.substring(0, e);
const p = a.slice(0, e);
if (p in switches && typeof switches[p] !== 'boolean') {
switches[p] = a.substring(e + 1);
switches[p] = a.slice(e + 1);
continue;

@@ -130,0 +132,0 @@ }

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

for (let i = 0; i < 4; i++) {
// eslint-disable-next-line unicorn/prefer-code-point
imgName[i] = type.charCodeAt(i) || 0;

@@ -156,0 +157,0 @@ }

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

const NAME = exports.NAME = "@shockpkg/icon-encoder";
const VERSION = exports.VERSION = "3.2.2";
const VERSION = exports.VERSION = "3.2.3";
//# sourceMappingURL=meta.js.map

@@ -1,2 +0,2 @@

import { IImageData } from './types';
import { IImageData } from './types.ts';
/**

@@ -3,0 +3,0 @@ * Icon object.

@@ -1,3 +0,3 @@

import { IImageData } from '../types';
import { Icon } from '../icon';
import { IImageData } from '../types.ts';
import { Icon } from '../icon.ts';
/**

@@ -4,0 +4,0 @@ * Icon entry.

@@ -1,3 +0,3 @@

import { IImageData } from '../types';
import { Icon } from '../icon';
import { IImageData } from '../types.ts';
import { Icon } from '../icon.ts';
/**

@@ -4,0 +4,0 @@ * Icon entry.

@@ -1,2 +0,2 @@

export * from './icns';
export * from './ico';
export * from './icns.ts';
export * from './ico.ts';

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

export * from './meta';
export * from './types';
export * from './util';
export * from './icon';
export * from './icon/';
export * from './meta.ts';
export * from './types.ts';
export * from './util.ts';
export * from './icon.ts';
export * from './icon/index.ts';

@@ -1,2 +0,2 @@

import { IImageData, IPngIhdr } from './types';
import { IImageData, IPngIhdr } from './types.ts';
/**

@@ -15,3 +15,3 @@ * Hash data with CRC32.

*/
export declare function concatUint8Arrays(arrays: Readonly<Readonly<Uint8Array>[]>): Uint8Array;
export declare function concatUint8Arrays(arrays: readonly Readonly<Uint8Array>[]): Uint8Array;
/**

@@ -45,3 +45,3 @@ * Decode PNG data to RGBA image.

*/
export declare function pngEncode(tags: Readonly<[number, Readonly<Uint8Array>][]>): Uint8Array;
export declare function pngEncode(tags: readonly [number, Readonly<Uint8Array>][]): Uint8Array;
/**

@@ -48,0 +48,0 @@ * Repack PNG tag data with a single IDAT.

{
"name": "@shockpkg/icon-encoder",
"description": "Package for encoding different icon files",
"version": "3.2.2",
"version": "3.2.3",
"keywords": [

@@ -68,21 +68,22 @@ "shockpkg",

"devDependencies": {
"@babel/cli": "^7.24.1",
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"@babel/preset-typescript": "^7.24.1",
"@types/node": "^20.12.7",
"@types/pngjs": "^6.0.4",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"babel-plugin-esm-resolver": "^2.3.3",
"@babel/cli": "^7.24.8",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/preset-typescript": "^7.24.7",
"@eslint/js": "^9.8.0",
"@stylistic/eslint-plugin": "^2.6.1",
"@types/node": "^22.1.0",
"@types/pngjs": "^6.0.5",
"babel-plugin-module-replace": "^1.0.1",
"babel-plugin-search-and-replace": "^1.1.1",
"eslint": "^8.57.0",
"eslint": "^9.8.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.3",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"eslint-plugin-jsdoc": "^48.11.0",
"eslint-plugin-unicorn": "^55.0.0",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"source-map-support": "^0.5.21",
"typescript": "^5.4.5"
"typescript": "^5.5.4",
"typescript-eslint": "^8.0.1"
}
}

@@ -11,3 +11,3 @@ # Icon Encoder

[![Build Status](https://github.com/shockpkg/icon-encoder/workflows/main/badge.svg)](https://github.com/shockpkg/icon-encoder/actions?query=workflow%3Amain+branch%3Amaster)
[![main](https://github.com/shockpkg/icon-encoder/actions/workflows/main.yaml/badge.svg)](https://github.com/shockpkg/icon-encoder/actions/workflows/main.yaml)

@@ -14,0 +14,0 @@ # Overview

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

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