Add barcode-detector-api-polyfill dependency and update environment variable declarations in SvelteKit project
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
import { Stream } from "../../common/Stream";
|
||||
export declare class ISO2022JPDecoder {
|
||||
readonly fatal: boolean;
|
||||
iso2022jp_decoder_state: any;
|
||||
iso2022jp_decoder_output_state: any;
|
||||
iso2022jp_lead: number;
|
||||
iso2022jp_output_flag: boolean;
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {Decoder}
|
||||
* @param {{fatal: boolean}} options
|
||||
*/
|
||||
constructor(options: {
|
||||
fatal: boolean;
|
||||
});
|
||||
/**
|
||||
* @param {Stream} stream The stream of bytes being decoded.
|
||||
* @param {number} bite The next byte read from the stream.
|
||||
* @return {?(number|!Array.<number>)} The next code point(s)
|
||||
* decoded, or null if not enough data exists in the input
|
||||
* stream to decode a complete code point.
|
||||
*/
|
||||
handler(stream: Stream, bite: number): (number | Array<number>) | null;
|
||||
}
|
||||
+272
@@ -0,0 +1,272 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var encodings_1 = require("../../encoding/encodings");
|
||||
var finished_1 = require("../../encoding/finished");
|
||||
var indexes_1 = require("../../encoding/indexes");
|
||||
var terminology_1 = require("../../encoding/terminology");
|
||||
var utilities_1 = require("../../encoding/utilities");
|
||||
var states;
|
||||
(function (states) {
|
||||
states[states["ASCII"] = 0] = "ASCII";
|
||||
states[states["Roman"] = 1] = "Roman";
|
||||
states[states["Katakana"] = 2] = "Katakana";
|
||||
states[states["LeadByte"] = 3] = "LeadByte";
|
||||
states[states["TrailByte"] = 4] = "TrailByte";
|
||||
states[states["EscapeStart"] = 5] = "EscapeStart";
|
||||
states[states["Escape"] = 6] = "Escape";
|
||||
})(states || (states = {}));
|
||||
var ISO2022JPDecoder = /** @class */ (function () {
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {Decoder}
|
||||
* @param {{fatal: boolean}} options
|
||||
*/
|
||||
function ISO2022JPDecoder(options) {
|
||||
this.fatal = options.fatal;
|
||||
// iso-2022-jp's decoder has an associated iso-2022-jp decoder
|
||||
// state (initially ASCII), iso-2022-jp decoder output state
|
||||
// (initially ASCII), iso-2022-jp lead (initially 0x00), and
|
||||
// iso-2022-jp output flag (initially unset).
|
||||
/** @type {number} */ this.iso2022jp_decoder_state = states.ASCII,
|
||||
/** @type {number} */ this.iso2022jp_decoder_output_state = states.ASCII,
|
||||
/** @type {number} */ this.iso2022jp_lead = 0x00,
|
||||
/** @type {boolean} */ this.iso2022jp_output_flag = false;
|
||||
}
|
||||
/**
|
||||
* @param {Stream} stream The stream of bytes being decoded.
|
||||
* @param {number} bite The next byte read from the stream.
|
||||
* @return {?(number|!Array.<number>)} The next code point(s)
|
||||
* decoded, or null if not enough data exists in the input
|
||||
* stream to decode a complete code point.
|
||||
*/
|
||||
ISO2022JPDecoder.prototype.handler = function (stream, bite) {
|
||||
// switching on iso-2022-jp decoder state:
|
||||
switch (this.iso2022jp_decoder_state) {
|
||||
default:
|
||||
case states.ASCII:
|
||||
// ASCII
|
||||
// Based on byte:
|
||||
// 0x1B
|
||||
if (bite === 0x1B) {
|
||||
// Set iso-2022-jp decoder state to escape start and return
|
||||
// continue.
|
||||
this.iso2022jp_decoder_state = states.EscapeStart;
|
||||
return null;
|
||||
}
|
||||
// 0x00 to 0x7F, excluding 0x0E, 0x0F, and 0x1B
|
||||
if (utilities_1.inRange(bite, 0x00, 0x7F) && bite !== 0x0E
|
||||
&& bite !== 0x0F && bite !== 0x1B) {
|
||||
// Unset the iso-2022-jp output flag and return a code point
|
||||
// whose value is byte.
|
||||
this.iso2022jp_output_flag = false;
|
||||
return bite;
|
||||
}
|
||||
// end-of-stream
|
||||
if (bite === terminology_1.end_of_stream) {
|
||||
// Return finished.
|
||||
return finished_1.finished;
|
||||
}
|
||||
// Otherwise
|
||||
// Unset the iso-2022-jp output flag and return error.
|
||||
this.iso2022jp_output_flag = false;
|
||||
return encodings_1.decoderError(this.fatal);
|
||||
case states.Roman:
|
||||
// Roman
|
||||
// Based on byte:
|
||||
// 0x1B
|
||||
if (bite === 0x1B) {
|
||||
// Set iso-2022-jp decoder state to escape start and return
|
||||
// continue.
|
||||
this.iso2022jp_decoder_state = states.EscapeStart;
|
||||
return null;
|
||||
}
|
||||
// 0x5C
|
||||
if (bite === 0x5C) {
|
||||
// Unset the iso-2022-jp output flag and return code point
|
||||
// U+00A5.
|
||||
this.iso2022jp_output_flag = false;
|
||||
return 0x00A5;
|
||||
}
|
||||
// 0x7E
|
||||
if (bite === 0x7E) {
|
||||
// Unset the iso-2022-jp output flag and return code point
|
||||
// U+203E.
|
||||
this.iso2022jp_output_flag = false;
|
||||
return 0x203E;
|
||||
}
|
||||
// 0x00 to 0x7F, excluding 0x0E, 0x0F, 0x1B, 0x5C, and 0x7E
|
||||
if (utilities_1.inRange(bite, 0x00, 0x7F) && bite !== 0x0E && bite !== 0x0F
|
||||
&& bite !== 0x1B && bite !== 0x5C && bite !== 0x7E) {
|
||||
// Unset the iso-2022-jp output flag and return a code point
|
||||
// whose value is byte.
|
||||
this.iso2022jp_output_flag = false;
|
||||
return bite;
|
||||
}
|
||||
// end-of-stream
|
||||
if (bite === terminology_1.end_of_stream) {
|
||||
// Return finished.
|
||||
return finished_1.finished;
|
||||
}
|
||||
// Otherwise
|
||||
// Unset the iso-2022-jp output flag and return error.
|
||||
this.iso2022jp_output_flag = false;
|
||||
return encodings_1.decoderError(this.fatal);
|
||||
case states.Katakana:
|
||||
// Katakana
|
||||
// Based on byte:
|
||||
// 0x1B
|
||||
if (bite === 0x1B) {
|
||||
// Set iso-2022-jp decoder state to escape start and return
|
||||
// continue.
|
||||
this.iso2022jp_decoder_state = states.EscapeStart;
|
||||
return null;
|
||||
}
|
||||
// 0x21 to 0x5F
|
||||
if (utilities_1.inRange(bite, 0x21, 0x5F)) {
|
||||
// Unset the iso-2022-jp output flag and return a code point
|
||||
// whose value is 0xFF61 − 0x21 + byte.
|
||||
this.iso2022jp_output_flag = false;
|
||||
return 0xFF61 - 0x21 + bite;
|
||||
}
|
||||
// end-of-stream
|
||||
if (bite === terminology_1.end_of_stream) {
|
||||
// Return finished.
|
||||
return finished_1.finished;
|
||||
}
|
||||
// Otherwise
|
||||
// Unset the iso-2022-jp output flag and return error.
|
||||
this.iso2022jp_output_flag = false;
|
||||
return encodings_1.decoderError(this.fatal);
|
||||
case states.LeadByte:
|
||||
// Lead byte
|
||||
// Based on byte:
|
||||
// 0x1B
|
||||
if (bite === 0x1B) {
|
||||
// Set iso-2022-jp decoder state to escape start and return
|
||||
// continue.
|
||||
this.iso2022jp_decoder_state = states.EscapeStart;
|
||||
return null;
|
||||
}
|
||||
// 0x21 to 0x7E
|
||||
if (utilities_1.inRange(bite, 0x21, 0x7E)) {
|
||||
// Unset the iso-2022-jp output flag, set iso-2022-jp lead
|
||||
// to byte, iso-2022-jp decoder state to trail byte, and
|
||||
// return continue.
|
||||
this.iso2022jp_output_flag = false;
|
||||
this.iso2022jp_lead = bite;
|
||||
this.iso2022jp_decoder_state = states.TrailByte;
|
||||
return null;
|
||||
}
|
||||
// end-of-stream
|
||||
if (bite === terminology_1.end_of_stream) {
|
||||
// Return finished.
|
||||
return finished_1.finished;
|
||||
}
|
||||
// Otherwise
|
||||
// Unset the iso-2022-jp output flag and return error.
|
||||
this.iso2022jp_output_flag = false;
|
||||
return encodings_1.decoderError(this.fatal);
|
||||
case states.TrailByte:
|
||||
// Trail byte
|
||||
// Based on byte:
|
||||
// 0x1B
|
||||
if (bite === 0x1B) {
|
||||
// Set iso-2022-jp decoder state to escape start and return
|
||||
// continue.
|
||||
this.iso2022jp_decoder_state = states.EscapeStart;
|
||||
return encodings_1.decoderError(this.fatal);
|
||||
}
|
||||
// 0x21 to 0x7E
|
||||
if (utilities_1.inRange(bite, 0x21, 0x7E)) {
|
||||
// 1. Set the iso-2022-jp decoder state to lead byte.
|
||||
this.iso2022jp_decoder_state = states.LeadByte;
|
||||
// 2. Let pointer be (iso-2022-jp lead − 0x21) × 94 + byte − 0x21.
|
||||
var pointer = (this.iso2022jp_lead - 0x21) * 94 + bite - 0x21;
|
||||
// 3. Let code point be the index code point for pointer in
|
||||
// index jis0208.
|
||||
var code_point = indexes_1.indexCodePointFor(pointer, indexes_1.index('jis0208'));
|
||||
// 4. If code point is null, return error.
|
||||
if (code_point === null)
|
||||
return encodings_1.decoderError(this.fatal);
|
||||
// 5. Return a code point whose value is code point.
|
||||
return code_point;
|
||||
}
|
||||
// end-of-stream
|
||||
if (bite === terminology_1.end_of_stream) {
|
||||
// Set the iso-2022-jp decoder state to lead byte, prepend
|
||||
// byte to stream, and return error.
|
||||
this.iso2022jp_decoder_state = states.LeadByte;
|
||||
stream.prepend(bite);
|
||||
return encodings_1.decoderError(this.fatal);
|
||||
}
|
||||
// Otherwise
|
||||
// Set iso-2022-jp decoder state to lead byte and return
|
||||
// error.
|
||||
this.iso2022jp_decoder_state = states.LeadByte;
|
||||
return encodings_1.decoderError(this.fatal);
|
||||
case states.EscapeStart:
|
||||
// Escape start
|
||||
// 1. If byte is either 0x24 or 0x28, set iso-2022-jp lead to
|
||||
// byte, iso-2022-jp decoder state to escape, and return
|
||||
// continue.
|
||||
if (bite === 0x24 || bite === 0x28) {
|
||||
this.iso2022jp_lead = bite;
|
||||
this.iso2022jp_decoder_state = states.Escape;
|
||||
return null;
|
||||
}
|
||||
// 2. Prepend byte to stream.
|
||||
stream.prepend(bite);
|
||||
// 3. Unset the iso-2022-jp output flag, set iso-2022-jp
|
||||
// decoder state to iso-2022-jp decoder output state, and
|
||||
// return error.
|
||||
this.iso2022jp_output_flag = false;
|
||||
this.iso2022jp_decoder_state = this.iso2022jp_decoder_output_state;
|
||||
return encodings_1.decoderError(this.fatal);
|
||||
case states.Escape:
|
||||
// Escape
|
||||
// 1. Let lead be iso-2022-jp lead and set iso-2022-jp lead to
|
||||
// 0x00.
|
||||
var lead = this.iso2022jp_lead;
|
||||
this.iso2022jp_lead = 0x00;
|
||||
// 2. Let state be null.
|
||||
var state = null;
|
||||
// 3. If lead is 0x28 and byte is 0x42, set state to ASCII.
|
||||
if (lead === 0x28 && bite === 0x42)
|
||||
state = states.ASCII;
|
||||
// 4. If lead is 0x28 and byte is 0x4A, set state to Roman.
|
||||
if (lead === 0x28 && bite === 0x4A)
|
||||
state = states.Roman;
|
||||
// 5. If lead is 0x28 and byte is 0x49, set state to Katakana.
|
||||
if (lead === 0x28 && bite === 0x49)
|
||||
state = states.Katakana;
|
||||
// 6. If lead is 0x24 and byte is either 0x40 or 0x42, set
|
||||
// state to lead byte.
|
||||
if (lead === 0x24 && (bite === 0x40 || bite === 0x42))
|
||||
state = states.LeadByte;
|
||||
// 7. If state is non-null, run these substeps:
|
||||
if (state !== null) {
|
||||
// 1. Set iso-2022-jp decoder state and iso-2022-jp decoder
|
||||
// output state to states.
|
||||
this.iso2022jp_decoder_state = this.iso2022jp_decoder_state = state;
|
||||
// 2. Let output flag be the iso-2022-jp output flag.
|
||||
var output_flag = this.iso2022jp_output_flag;
|
||||
// 3. Set the iso-2022-jp output flag.
|
||||
this.iso2022jp_output_flag = true;
|
||||
// 4. Return continue, if output flag is unset, and error
|
||||
// otherwise.
|
||||
return !output_flag ? null : encodings_1.decoderError(this.fatal);
|
||||
}
|
||||
// 8. Prepend lead and byte to stream.
|
||||
stream.prepend([lead, bite]);
|
||||
// 9. Unset the iso-2022-jp output flag, set iso-2022-jp
|
||||
// decoder state to iso-2022-jp decoder output state and
|
||||
// return error.
|
||||
this.iso2022jp_output_flag = false;
|
||||
this.iso2022jp_decoder_state = this.iso2022jp_decoder_output_state;
|
||||
return encodings_1.decoderError(this.fatal);
|
||||
}
|
||||
};
|
||||
return ISO2022JPDecoder;
|
||||
}());
|
||||
exports.ISO2022JPDecoder = ISO2022JPDecoder;
|
||||
//# sourceMappingURL=ISO2022JPDecoder.js.map
|
||||
+1
File diff suppressed because one or more lines are too long
+25
@@ -0,0 +1,25 @@
|
||||
import { Stream } from "../../common/Stream";
|
||||
declare enum states {
|
||||
ASCII = 0,
|
||||
Roman = 1,
|
||||
jis0208 = 2
|
||||
}
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {Encoder}
|
||||
* @param {{fatal: boolean}} options
|
||||
*/
|
||||
export declare class ISO2022JPEncoder {
|
||||
readonly fatal: boolean;
|
||||
iso2022jp_state: states;
|
||||
constructor(options: {
|
||||
fatal: boolean;
|
||||
});
|
||||
/**
|
||||
* @param {Stream} stream Input stream.
|
||||
* @param {number} code_point Next code point read from the stream.
|
||||
* @return {(number|!Array.<number>)} Byte(s) to emit.
|
||||
*/
|
||||
handler(stream: Stream, code_point: number): (number | Array<number>);
|
||||
}
|
||||
export {};
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var encodings_1 = require("../../encoding/encodings");
|
||||
var finished_1 = require("../../encoding/finished");
|
||||
var indexes_1 = require("../../encoding/indexes");
|
||||
var terminology_1 = require("../../encoding/terminology");
|
||||
var states;
|
||||
(function (states) {
|
||||
states[states["ASCII"] = 0] = "ASCII";
|
||||
states[states["Roman"] = 1] = "Roman";
|
||||
states[states["jis0208"] = 2] = "jis0208";
|
||||
})(states || (states = {}));
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {Encoder}
|
||||
* @param {{fatal: boolean}} options
|
||||
*/
|
||||
var ISO2022JPEncoder = /** @class */ (function () {
|
||||
function ISO2022JPEncoder(options) {
|
||||
this.fatal = options.fatal;
|
||||
// iso-2022-jp's encoder has an associated iso-2022-jp encoder
|
||||
// state which is one of ASCII, Roman, and jis0208 (initially
|
||||
// ASCII).
|
||||
/** @type {number} */ this.iso2022jp_state = states.ASCII;
|
||||
}
|
||||
/**
|
||||
* @param {Stream} stream Input stream.
|
||||
* @param {number} code_point Next code point read from the stream.
|
||||
* @return {(number|!Array.<number>)} Byte(s) to emit.
|
||||
*/
|
||||
ISO2022JPEncoder.prototype.handler = function (stream, code_point) {
|
||||
// 1. If code point is end-of-stream and iso-2022-jp encoder
|
||||
// state is not ASCII, prepend code point to stream, set
|
||||
// iso-2022-jp encoder state to ASCII, and return three bytes
|
||||
// 0x1B 0x28 0x42.
|
||||
if (code_point === terminology_1.end_of_stream &&
|
||||
this.iso2022jp_state !== states.ASCII) {
|
||||
stream.prepend(code_point);
|
||||
this.iso2022jp_state = states.ASCII;
|
||||
return [0x1B, 0x28, 0x42];
|
||||
}
|
||||
// 2. If code point is end-of-stream and iso-2022-jp encoder
|
||||
// state is ASCII, return finished.
|
||||
if (code_point === terminology_1.end_of_stream && this.iso2022jp_state === states.ASCII)
|
||||
return finished_1.finished;
|
||||
// 3. If ISO-2022-JP encoder state is ASCII or Roman, and code
|
||||
// point is U+000E, U+000F, or U+001B, return error with U+FFFD.
|
||||
if ((this.iso2022jp_state === states.ASCII ||
|
||||
this.iso2022jp_state === states.Roman) &&
|
||||
(code_point === 0x000E || code_point === 0x000F ||
|
||||
code_point === 0x001B)) {
|
||||
return encodings_1.encoderError(0xFFFD);
|
||||
}
|
||||
// 4. If iso-2022-jp encoder state is ASCII and code point is an
|
||||
// ASCII code point, return a byte whose value is code point.
|
||||
if (this.iso2022jp_state === states.ASCII &&
|
||||
terminology_1.isASCIICodePoint(code_point))
|
||||
return code_point;
|
||||
// 5. If iso-2022-jp encoder state is Roman and code point is an
|
||||
// ASCII code point, excluding U+005C and U+007E, or is U+00A5
|
||||
// or U+203E, run these substeps:
|
||||
if (this.iso2022jp_state === states.Roman &&
|
||||
((terminology_1.isASCIICodePoint(code_point) &&
|
||||
code_point !== 0x005C && code_point !== 0x007E) ||
|
||||
(code_point == 0x00A5 || code_point == 0x203E))) {
|
||||
// 1. If code point is an ASCII code point, return a byte
|
||||
// whose value is code point.
|
||||
if (terminology_1.isASCIICodePoint(code_point))
|
||||
return code_point;
|
||||
// 2. If code point is U+00A5, return byte 0x5C.
|
||||
if (code_point === 0x00A5)
|
||||
return 0x5C;
|
||||
// 3. If code point is U+203E, return byte 0x7E.
|
||||
if (code_point === 0x203E)
|
||||
return 0x7E;
|
||||
}
|
||||
// 6. If code point is an ASCII code point, and iso-2022-jp
|
||||
// encoder state is not ASCII, prepend code point to stream, set
|
||||
// iso-2022-jp encoder state to ASCII, and return three bytes
|
||||
// 0x1B 0x28 0x42.
|
||||
if (terminology_1.isASCIICodePoint(code_point) &&
|
||||
this.iso2022jp_state !== states.ASCII) {
|
||||
stream.prepend(code_point);
|
||||
this.iso2022jp_state = states.ASCII;
|
||||
return [0x1B, 0x28, 0x42];
|
||||
}
|
||||
// 7. If code point is either U+00A5 or U+203E, and iso-2022-jp
|
||||
// encoder state is not Roman, prepend code point to stream, set
|
||||
// iso-2022-jp encoder state to Roman, and return three bytes
|
||||
// 0x1B 0x28 0x4A.
|
||||
if ((code_point === 0x00A5 || code_point === 0x203E) &&
|
||||
this.iso2022jp_state !== states.Roman) {
|
||||
stream.prepend(code_point);
|
||||
this.iso2022jp_state = states.Roman;
|
||||
return [0x1B, 0x28, 0x4A];
|
||||
}
|
||||
// 8. If code point is U+2212, set it to U+FF0D.
|
||||
if (code_point === 0x2212)
|
||||
code_point = 0xFF0D;
|
||||
// 9. Let pointer be the index pointer for code point in index
|
||||
// jis0208.
|
||||
var pointer = indexes_1.indexPointerFor(code_point, indexes_1.index('jis0208'));
|
||||
// 10. If pointer is null, return error with code point.
|
||||
if (pointer === null)
|
||||
return encodings_1.encoderError(code_point);
|
||||
// 11. If iso-2022-jp encoder state is not jis0208, prepend code
|
||||
// point to stream, set iso-2022-jp encoder state to jis0208,
|
||||
// and return three bytes 0x1B 0x24 0x42.
|
||||
if (this.iso2022jp_state !== states.jis0208) {
|
||||
stream.prepend(code_point);
|
||||
this.iso2022jp_state = states.jis0208;
|
||||
return [0x1B, 0x24, 0x42];
|
||||
}
|
||||
// 12. Let lead be Math.floor(pointer / 94) + 0x21.
|
||||
var lead = Math.floor(pointer / 94) + 0x21;
|
||||
// 13. Let trail be pointer % 94 + 0x21.
|
||||
var trail = pointer % 94 + 0x21;
|
||||
// 14. Return two bytes whose values are lead and trail.
|
||||
return [lead, trail];
|
||||
};
|
||||
return ISO2022JPEncoder;
|
||||
}());
|
||||
exports.ISO2022JPEncoder = ISO2022JPEncoder;
|
||||
//# sourceMappingURL=ISO2022JPEncoder.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ISO2022JPEncoder.js","sourceRoot":"","sources":["../../../../src/coders/iso-2022-jp/ISO2022JPEncoder.ts"],"names":[],"mappings":";;AACA,sDAAwD;AACxD,oDAAmD;AACnD,kDAAgE;AAChE,0DAA6E;AAG7E,IAAK,MAIJ;AAJD,WAAK,MAAM;IACT,qCAAK,CAAA;IACL,qCAAK,CAAA;IACL,yCAAO,CAAA;AACT,CAAC,EAJI,MAAM,KAAN,MAAM,QAIV;AAED;;;;GAIG;AACH;IAME,0BAAY,OAA4B;QACtC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC3B,8DAA8D;QAC9D,6DAA6D;QAC7D,UAAU;QACV,qBAAqB,CAAC,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACH,kCAAO,GAAP,UAAQ,MAAc,EAAE,UAAkB;QACxC,4DAA4D;QAC5D,wDAAwD;QACxD,6DAA6D;QAC7D,kBAAkB;QAClB,IAAI,UAAU,KAAK,2BAAa;YAC9B,IAAI,CAAC,eAAe,KAAK,MAAM,CAAC,KAAK,EAAE;YACvC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;YAC3B,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC;YACpC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SAC3B;QAED,4DAA4D;QAC5D,mCAAmC;QACnC,IAAI,UAAU,KAAK,2BAAa,IAAI,IAAI,CAAC,eAAe,KAAK,MAAM,CAAC,KAAK;YACvE,OAAO,mBAAQ,CAAC;QAElB,8DAA8D;QAC9D,gEAAgE;QAChE,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0 +1,2 @@
|
||||
export * from './ISO2022JPDecoder';
|
||||
export * from './ISO2022JPEncoder';
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__export(require("./ISO2022JPDecoder"));
|
||||
__export(require("./ISO2022JPEncoder"));
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/coders/iso-2022-jp/index.ts"],"names":[],"mappings":";;;;;AAAA,wCAAmC;AACnC,wCAAmC"}
|
||||
Reference in New Issue
Block a user