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 1.0.0-rc.13 to 1.0.0-rc.14

11

CHANGELOG.md

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

# [1.0.0-rc.14](https://github.com/mike-north/code-to-json/compare/@code-to-json/utils@1.0.0-rc.13...@code-to-json/utils@1.0.0-rc.14) (2019-02-04)
### Bug Fixes
* convert to new typescript eslint infrastructure ([6e8aabd](https://github.com/mike-north/code-to-json/commit/6e8aabd))
# [1.0.0-rc.13](https://github.com/mike-north/code-to-json/compare/@code-to-json/utils@1.0.0-rc.12...@code-to-json/utils@1.0.0-rc.13) (2019-02-04)

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

16

package.json
{
"name": "@code-to-json/utils",
"version": "1.0.0-rc.13",
"version": "1.0.0-rc.14",
"description": "Low-level utilities for code-to-json",

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

"scripts": {
"lint": "yarn lint:ts && yarn lint:js && yarn lint:md",
"lint:ts": "tslint --project . && tsc -b test && tslint --project test",
"lint": "yarn lint:js && yarn lint:md",
"lint:js": "eslint . --ext js,ts",

@@ -30,2 +29,5 @@ "lint:md": "remark .",

"@types/chai": "4.1.7",
"@typescript-eslint/eslint-plugin": "1.2.0",
"@typescript-eslint/eslint-plugin-tslint": "1.2.0",
"@typescript-eslint/parser": "1.2.0",
"chai": "4.2.0",

@@ -37,3 +39,2 @@ "eslint": "5.13.0",

"eslint-plugin-prettier": "3.0.1",
"eslint-plugin-typescript": "0.14.0",
"mocha": "5.2.0",

@@ -50,6 +51,5 @@ "mocha-typescript": "1.1.17",

"tslint": "5.12.1",
"tslint-config-prettier": "1.17.0",
"tslint-config-prettier": "1.18.0",
"tslint-sonarts": "1.9.0",
"typescript": "3.3.1",
"typescript-eslint-parser": "22.0.0"
"typescript": "3.3.1"
},

@@ -100,3 +100,3 @@ "nyc": {

},
"gitHead": "100cc70a484a07de553dd6e93902a8438b3187f9"
"gitHead": "3e1ba662d7aa49565d6b62fbd3de54214faf5cec"
}

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

expect(isArray(() => '')).to.eql(false, 'function');
expect(isArray(class {})).to.eql(false, 'class');
expect(isArray(new class {}() as any)).to.eql(false, 'instance');
// tslint-disable-next-line
expect(isArray(class A {})).to.eql(false, 'class');
// tslint-disable-next-line
expect(isArray(new class B {}() as any)).to.eql(false, 'instance');
}

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

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

public before() {
public before(): void {
this.q = createQueue<{ foo: any }, 'foo', { idd: string }>(

@@ -47,11 +47,11 @@ 'foo',

this.q.queue({ idd: '23456' });
let iterationCount = 0;
this.q.drainUntilEmpty((ref, item) => {
expect(ref).to.deep.eq(['foo', '~~23456~~']);
let icount = 0;
this.q.drainUntilEmpty((reff, item) => {
expect(reff).to.deep.eq(['foo', '~~23456~~']);
expect(item).to.deep.eq({
idd: '23456',
});
iterationCount++;
icount++;
});
expect(iterationCount).to.eq(1);
expect(icount).to.eq(1);
}

@@ -65,4 +65,4 @@

let iterationCount = 0;
this.q.drain((ref, item) => {
expect(ref).to.deep.eq(['foo', '~~34567~~']);
this.q.drain((r, item) => {
expect(r).to.deep.eq(['foo', '~~34567~~']);
expect(item).to.deep.eq({

@@ -69,0 +69,0 @@ idd: '34567',

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

export class PipeTests {
@test public 'basic use'() {
@test public 'basic use'(): void {
expect(pipe()(3)).to.eql(3);

@@ -27,0 +27,0 @@ expect(pipe(square)(3)).to.eql(9);

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