object-unpacker
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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 |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
34548
931
1