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

object-unpacker

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-unpacker - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

src/ObjectUnpacker.ts

2

dist/index.d.ts

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

export declare const mapper: import("./SchemaMapper").SchemaMapper;
export declare const mapper: import("./ObjectUnpacker").ObjectUnpacker;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapper = void 0;
var SchemaMapper_1 = require("./SchemaMapper");
exports.mapper = SchemaMapper_1.createSchemaMapper();
var ObjectUnpacker_1 = require("./ObjectUnpacker");
exports.mapper = ObjectUnpacker_1.createObjectUnpacker();
//# sourceMappingURL=index.js.map

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

module.exports = require('./dist/SchemaMapper.js');
const ObjectUnpacker = require('./dist/ObjectUnpacker.js');
module.exports = {
ObjectUnpacker: ObjectUnpacker
};
{
"name": "object-unpacker",
"version": "0.0.1",
"version": "0.0.2",
"description": "A JSON to JSON mapper in TypeScript",

@@ -53,2 +53,2 @@ "main": "dist/index.js",

]
}
}

@@ -10,6 +10,6 @@ # TypeScript Object Unpacker

// Import the Schema Mapper type
import { createSchemaMapper } from './SchemaMapper';
import { createObjectUnpacker } from './ObjectUnpacker';
// Create the schema mapper
const mapper = createSchemaMapper();
const mapper = createObjectUnpacker();

@@ -16,0 +16,0 @@ // This is the data to be transformed

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

import { SchemaMapper } from './SchemaMapper';
export declare const mapper: SchemaMapper;
import { ObjectUnpacker } from './ObjectUnpacker';
export declare const mapper: ObjectUnpacker;

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

import { createSchemaMapper } from './SchemaMapper';
import { createObjectUnpacker } from './ObjectUnpacker';
export const mapper = createSchemaMapper();
export const mapper = createObjectUnpacker();
import { readFileSync } from 'fs';
import { createSchemaMapper } from './SchemaMapper';
import { createObjectUnpacker } from './ObjectUnpacker';

@@ -14,3 +14,3 @@ const deepEql = require('deep-eql');

const mapper = createSchemaMapper();
const mapper = createObjectUnpacker();

@@ -17,0 +17,0 @@ let successCount = 0;

// Import the Schema Mapper type
import { expect } from 'chai';
import deepEql from 'deep-eql';
import { createSchemaMapper } from './SchemaMapper';
import { createObjectUnpacker } from './ObjectUnpacker';
// Create the schema mapper
const mapper = createSchemaMapper();
const mapper = createObjectUnpacker();

@@ -9,0 +9,0 @@ // This is the data to be transformed

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