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

@code-to-json/utils

Package Overview
Dependencies
Maintainers
2
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-to-json/utils - npm Package Compare versions

Comparing version 0.7.1 to 0.8.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [0.8.0](https://github.com/mike-north/code-to-json/compare/@code-to-json/utils@0.7.1...@code-to-json/utils@0.8.0) (2019-01-21)
### Features
* formatter entity ids ([86cbd1c](https://github.com/mike-north/code-to-json/commit/86cbd1c))
## [0.7.1](https://github.com/mike-north/code-to-json/compare/@code-to-json/utils@0.7.0...@code-to-json/utils@0.7.1) (2019-01-21)

@@ -8,0 +19,0 @@

2

lib/src/deferred-processing/queue.js

@@ -46,2 +46,2 @@ "use strict";

exports.createQueue = createQueue;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVldWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZGVmZXJyZWQtcHJvY2Vzc2luZy9xdWV1ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtCQUFpRDtBQWNqRCxTQUFnQixXQUFXLENBQ3pCLENBQUksRUFDSixXQUE2QjtJQUU3QixNQUFNLFNBQVMsR0FBRyxJQUFJLEdBQUcsRUFBdUIsQ0FBQztJQUNqRCxPQUFPO1FBQ0wsS0FBSyxDQUFDLElBQU87WUFDWCxNQUFNLFlBQVksR0FBRyxTQUFTLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDO1lBQ3pDLElBQUksWUFBWSxFQUFFO2dCQUNoQixPQUFPLFlBQVksQ0FBQyxHQUFHLENBQUM7YUFDekI7WUFDRCxNQUFNLEVBQUUsR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLENBQUM7WUFDN0IsTU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LElBQUksQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUM7WUFDL0MsT0FBTyxLQUFLLEdBQUcsQ0FBQyxFQUFFO2dCQUNoQixLQUFLLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxFQUFFLENBQUMsQ0FBQyxjQUFjLENBQUM7Z0JBQ3RDLGNBQWMsSUFBSSxLQUFLLENBQUM7YUFDekI7WUFDRCxPQUFPLEVBQUUsY0FBYyxFQUFFLENBQUM7UUFDNUIsQ0FBQztLQUNGLENBQUM7QUFDSixDQUFDO0FBM0NELGtDQTJDQyJ9

@@ -5,4 +5,3 @@ "use strict";

if (property && (condition ? condition(property) : true)) {
const x = {};
/* eslint-disable no-param-reassign */
// eslint-disable-next-line no-param-reassign
host[propertyName] = transform(property);

@@ -12,2 +11,2 @@ }

exports.conditionallyMergeTransformed = conditionallyMergeTransformed;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL29iamVjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLFNBQWdCLDZCQUE2QixDQUMzQyxJQUFPLEVBQ1AsUUFBdUIsRUFDdkIsWUFBZSxFQUNmLFNBQXNCLEVBQ3RCLFNBQWdDO0lBRWhDLElBQUksUUFBUSxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxFQUFFO1FBQ3hELE1BQU0sQ0FBQyxHQUF3QixFQUFFLENBQUM7UUFDbEMsc0NBQXNDO1FBQ3RDLElBQUksQ0FBQyxZQUFZLENBQUMsR0FBRyxTQUFTLENBQUMsUUFBUSxDQUFDLENBQUM7S0FDMUM7QUFDSCxDQUFDO0FBWkQsc0VBWUMifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL29iamVjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLFNBQWdCLDZCQUE2QixDQUMzQyxJQUFPLEVBQ1AsUUFBdUIsRUFDdkIsWUFBZSxFQUNmLFNBQXNCLEVBQ3RCLFNBQWdDO0lBRWhDLElBQUksUUFBUSxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxFQUFFO1FBQ3hELDZDQUE2QztRQUM3QyxJQUFJLENBQUMsWUFBWSxDQUFDLEdBQUcsU0FBUyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0tBQzFDO0FBQ0gsQ0FBQztBQVhELHNFQVdDIn0=
{
"name": "@code-to-json/utils",
"version": "0.7.1",
"version": "0.8.0",
"description": "",

@@ -96,3 +96,3 @@ "main": "lib/src/index.js",

},
"gitHead": "c44099945122d08cde378b6b74ea1062336bb191"
"gitHead": "afbc021d75c57662e081551f9237142f5ff5c52c"
}
import { createRef, Ref, RefTypes } from './ref';
interface EntityInfo<K, T extends object> {
interface EntityInfo<K> {
ref: Ref<K>;

@@ -19,3 +19,3 @@ processed: boolean;

): Queue<K, T> {
const itemToRef = new Map<T, EntityInfo<K, T>>();
const itemToRef = new Map<T, EntityInfo<K>>();
return {

@@ -22,0 +22,0 @@ queue(item: T): Ref<K> {

@@ -9,6 +9,5 @@ export function conditionallyMergeTransformed<H extends {}, B, A extends H[K], K extends keyof H>(

if (property && (condition ? condition(property) : true)) {
const x: Partial<Pick<H, K>> = {};
/* eslint-disable no-param-reassign */
// eslint-disable-next-line no-param-reassign
host[propertyName] = transform(property);
}
}

@@ -6,3 +6,3 @@ import { expect } from 'chai';

@suite
class ArrayUtilsTests {
export class ArrayUtilsTests {
@test

@@ -17,5 +17,3 @@ public 'isArray tests'(): void {

expect(isArray(() => '')).to.eql(false, 'function');
// tslint:disable-next-line:max-classes-per-file
expect(isArray(class {})).to.eql(false, 'class');
// tslint:disable-next-line:max-classes-per-file
expect(isArray(new class {}() as any)).to.eql(false, 'instance');

@@ -22,0 +20,0 @@ }

@@ -6,3 +6,3 @@ import { expect } from 'chai';

@suite('Simple predicates')
class SimpleChecks {
export class SimpleChecks {
@test

@@ -9,0 +9,0 @@ public 'isEmpty tests'(): void {

@@ -6,3 +6,3 @@ import { expect } from 'chai';

@suite
class DeferredProcessingTests {
export class DeferredProcessingTests {
public q!: Queue<'foo', { idd: string }>;

@@ -40,4 +40,3 @@

this.q.queue({ idd: 'asdklh' });
// tslint:disable-next-line:no-identical-functions
const { processedCount } = this.q.drain((ref, item) => '');
const { processedCount } = this.q.drain((_ref, _item) => '');
expect(processedCount).to.eq(1);

@@ -50,3 +49,2 @@ }

let iterationCount = 0;
// tslint:disable-next-line:no-identical-functions
this.q.drainUntilEmpty((ref, item) => {

@@ -68,3 +66,2 @@ expect(ref).to.deep.eq(['foo', '~~23456~~']);

let iterationCount = 0;
// tslint:disable-next-line:no-identical-functions
this.q.drain((ref, item) => {

@@ -71,0 +68,0 @@ expect(ref).to.deep.eq(['foo', '~~34567~~']);

@@ -6,3 +6,3 @@ import { expect } from 'chai';

@suite
class ErrorTests {
export class ErrorTests {
@test

@@ -9,0 +9,0 @@ public 'UnreachableError tests'(): void {

@@ -23,3 +23,3 @@ import { expect } from 'chai';

@suite
class PipeTests {
export class PipeTests {
@test public 'basic use'() {

@@ -26,0 +26,0 @@ expect(pipe()(3)).to.eql(3);

@@ -6,3 +6,3 @@ import { expect } from 'chai';

@suite
class PromiseTests {
export class PromiseTests {
@test

@@ -9,0 +9,0 @@ public async 'timeout tests'(): Promise<void> {

@@ -7,3 +7,3 @@ import { expect } from 'chai';

@suite
class RefTests {
export class RefTests {
@test

@@ -10,0 +10,0 @@ public 'isRef tests'(): void {

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