Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cpany/compress

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cpany/compress - npm Package Compare versions

Comparing version 0.0.38 to 0.0.39

8

dist/load.js

@@ -5,4 +5,4 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/load.ts

const compressed = _compressed;
const keyMap = new Map(((_a = compressed.keyMaps) != null ? _a : []).map((pair) => pair.reverse()));
const stringMap = new Map(((_b = compressed.stringMaps) != null ? _b : []).map((pair) => pair.reverse()));
const keyMap = new Map(((_a = compressed.keyMaps) != null ? _a : []).map(([key, value]) => [value, key]));
const stringMap = new Map(((_b = compressed.stringMaps) != null ? _b : []).map(([key, value]) => [value, key]));
return walkTransKey(compressed.data, keyMap, stringMap);

@@ -31,4 +31,4 @@ }

const newArr = [];
for (const key in obj) {
newArr.push(walkTransKey(obj[key], keyMap, stringMap));
for (const item of obj) {
newArr.push(walkTransKey(item, keyMap, stringMap));
}

@@ -35,0 +35,0 @@ return newArr;

{
"name": "@cpany/compress",
"version": "0.0.38",
"version": "0.0.39",
"description": "CPany compress package",

@@ -5,0 +5,0 @@ "repository": {

@@ -7,8 +7,6 @@ import type { ICompressed } from './type';

const keyMap = new Map<string, string>(
(compressed.keyMaps ?? []).map((pair) => pair.reverse() as [string, string])
(compressed.keyMaps ?? []).map(([key, value]) => [value, key])
);
const stringMap = new Map<string, string>(
(compressed.stringMaps ?? []).map(
(pair) => pair.reverse() as [string, string]
)
(compressed.stringMaps ?? []).map(([key, value]) => [value, key])
);

@@ -35,4 +33,4 @@

const newArr: any[] = [];
for (const key in obj) {
newArr.push(walkTransKey(obj[key], keyMap, stringMap));
for (const item of obj) {
newArr.push(walkTransKey(item, keyMap, stringMap));
}

@@ -39,0 +37,0 @@ return newArr;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc