Socket
Socket
Sign inDemoInstall

iconv-lite

Package Overview
Dependencies
0
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.16 to 0.4.17

5

Changelog.md
# 0.4.17 / 2017-04-22
* Updated typescript definition file to support Angular 2 AoT mode (#153 by @larssn)
# 0.4.16 / 2017-04-22

@@ -3,0 +8,0 @@

41

lib/index.d.ts

@@ -1,31 +0,24 @@

// Type definitions for iconv-lite
// Project: https://github.com/ashtuchkin/iconv-lite
// Definitions by: Martin Poelstra <https://github.com/poelstra>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
* REQUIREMENT: This definition is dependent on the @types/node definition.
* Install with `npm install @types/node --save-dev`
*--------------------------------------------------------------------------------------------*/
import stream = require("stream");
declare module 'iconv-lite' {
export function decode(buffer: NodeBuffer, encoding: string, options?: Options): string;
export interface Options {
stripBOM: boolean;
addBOM: boolean;
defaultEncoding: string;
}
export function encode(content: string, encoding: string, options?: Options): NodeBuffer;
export function decode(buffer: Buffer, encoding: string, options?: Options): string;
export function encode(source: string, encoding: string, options?: Options): Buffer;
export function encodingExists(encoding: string): boolean;
export function encodingExists(encoding: string): boolean;
export class DecodeStream extends stream.Transform {
collect(cb: (err: Error, decoded: string) => any): DecodeStream;
export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
}
export class EncodeStream extends stream.Transform {
collect(cb: (err: Error, decoded: Buffer) => any): EncodeStream;
export interface Options {
stripBOM?: boolean;
addBOM?: boolean;
defaultEncoding?: string;
}
export function decodeStream(encoding: string, options?: Options): DecodeStream;
export function encodeStream(encoding: string, options?: Options): EncodeStream;
// NOTE: These are deprecated.
export function extendNodeEncodings(): void;
export function undoExtendNodeEncodings(): void;
{
"name": "iconv-lite",
"description": "Convert character encodings in pure javascript.",
"version": "0.4.16",
"version": "0.4.17",
"license": "MIT",

@@ -6,0 +6,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc