protons-runtime
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -1,2 +0,2 @@ | ||
import { reader } from './reader.js'; | ||
import { reader } from './utils.js'; | ||
export function decodeMessage(buf, codec) { | ||
@@ -3,0 +3,0 @@ const r = reader(buf instanceof Uint8Array ? buf : buf.subarray()); |
@@ -1,2 +0,2 @@ | ||
import { writer } from './writer.js'; | ||
import { writer } from './utils.js'; | ||
export function encodeMessage(message, codec) { | ||
@@ -3,0 +3,0 @@ const w = writer(); |
@@ -13,4 +13,3 @@ import type { Codec } from './codec.js'; | ||
export { message } from './codecs/message.js'; | ||
export { reader } from './reader.js'; | ||
export { writer } from './writer.js'; | ||
export { reader, writer } from './utils.js'; | ||
export type { Codec, EncodeOptions } from './codec.js'; | ||
@@ -17,0 +16,0 @@ export interface Writer { |
@@ -5,4 +5,3 @@ export { decodeMessage } from './decode.js'; | ||
export { message } from './codecs/message.js'; | ||
export { reader } from './reader.js'; | ||
export { writer } from './writer.js'; | ||
export { reader, writer } from './utils.js'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "protons-runtime", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Shared code to make your bundle smaller when running protons in your app", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
import type { Uint8ArrayList } from 'uint8arraylist' | ||
import type { Codec } from './codec.js' | ||
import { reader } from './reader.js' | ||
import { reader } from './utils.js' | ||
@@ -5,0 +5,0 @@ export function decodeMessage <T> (buf: Uint8Array | Uint8ArrayList, codec: Codec<T>): T { |
import type { Codec } from './codec.js' | ||
import { writer } from './writer.js' | ||
import { writer } from './utils.js' | ||
@@ -4,0 +4,0 @@ export function encodeMessage <T> (message: T, codec: Codec<T>): Uint8Array { |
@@ -21,4 +21,3 @@ import type { Codec } from './codec.js' | ||
export { message } from './codecs/message.js' | ||
export { reader } from './reader.js' | ||
export { writer } from './writer.js' | ||
export { reader, writer } from './utils.js' | ||
export type { Codec, EncodeOptions } from './codec.js' | ||
@@ -25,0 +24,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33744
650
38