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.23 to 1.0.0-rc.24

8

CHANGELOG.md

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

# [1.0.0-rc.24](https://github.com/mike-north/code-to-json/compare/@code-to-json/utils@1.0.0-rc.23...@code-to-json/utils@1.0.0-rc.24) (2019-02-24)
**Note:** Version bump only for package @code-to-json/utils
# [1.0.0-rc.23](https://github.com/mike-north/code-to-json/compare/@code-to-json/utils@1.0.0-rc.22...@code-to-json/utils@1.0.0-rc.23) (2019-02-23)

@@ -8,0 +16,0 @@

7

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

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

"@typescript-eslint/eslint-plugin": "1.3.0",
"@typescript-eslint/eslint-plugin-tslint": "1.3.0",
"@typescript-eslint/parser": "1.3.0",

@@ -48,4 +47,2 @@ "chai": "4.2.0",

"ts-node": "8.0.2",
"tslint": "5.12.1",
"tslint-sonarts": "1.9.0",
"typescript": "3.3.3"

@@ -97,3 +94,3 @@ },

},
"gitHead": "5bf75038d54c5c3a783e8a9b3d06ba76d6909b34"
"gitHead": "ebdbfb5a3f12e3663e10fe1742bcd4022a744aec"
}

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

expect(isArray(() => '')).to.eql(false, 'function');
// 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');

@@ -25,8 +23,8 @@ }

public 'isHomogenousArray tests'(): void {
expect(isHomogenousArray([1, '2'], (v) => typeof v === 'string')).to.eql(false, 'mixed contents');
expect(isHomogenousArray([1, 2, 3], (v) => typeof v === 'number')).to.eql(
expect(isHomogenousArray([1, '2'], v => typeof v === 'string')).to.eql(false, 'mixed contents');
expect(isHomogenousArray([1, 2, 3], v => typeof v === 'number')).to.eql(
true,
'homogenous case',
);
expect(isHomogenousArray([], (v) => typeof v === 'string')).to.eql(true, 'empty case');
expect(isHomogenousArray([], v => typeof v === 'string')).to.eql(true, 'empty case');
expect(isHomogenousArray([[1], ['2']], isArray)).to.eql(true, 'nested array case');

@@ -37,5 +35,5 @@ }

public 'some tests'(): void {
expect(some([1, '2'], (v) => typeof v === 'string')).to.deep.eq(true);
expect(some([1, '2'], (v) => typeof v === 'function')).to.deep.eq(false);
expect(some([1, 2], (v) => typeof v === 'number')).to.deep.eq(true);
expect(some([1, '2'], v => typeof v === 'string')).to.deep.eq(true);
expect(some([1, '2'], v => typeof v === 'function')).to.deep.eq(false);
expect(some([1, 2], v => typeof v === 'number')).to.deep.eq(true);
}

@@ -45,7 +43,7 @@

public 'all tests'(): void {
expect(all([1, '2'], (v) => typeof v === 'string')).to.deep.eq(false);
expect(all([1, '2'], (v) => typeof v === 'function')).to.deep.eq(false);
expect(all([1, 2], (v) => typeof v === 'number')).to.deep.eq(true);
expect(all([], (v) => typeof v === 'number')).to.deep.eq(true);
expect(all([1, '2'], v => typeof v === 'string')).to.deep.eq(false);
expect(all([1, '2'], v => typeof v === 'function')).to.deep.eq(false);
expect(all([1, 2], v => typeof v === 'number')).to.deep.eq(true);
expect(all([], v => typeof v === 'number')).to.deep.eq(true);
}
}
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