New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eik/common

Package Overview
Dependencies
Maintainers
4
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eik/common - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

lib/schemas/assert.js

7

CHANGELOG.md

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

# [1.1.0](https://github.com/eik-lib/common/compare/v1.0.1...v1.1.0) (2020-09-10)
### Features
* add assert functions for schema ([ba3aa28](https://github.com/eik-lib/common/commit/ba3aa28d2450d2ef6ebf58ba716427164f849680))
## [1.0.1](https://github.com/eik-lib/common/compare/v1.0.0...v1.0.1) (2020-09-10)

@@ -2,0 +9,0 @@

4

lib/schemas/index.js

@@ -5,4 +5,6 @@ 'use strict';

const validate = require('./validate');
const assert = require('./assert');
module.exports.schema = schema;
module.exports.validate = validate;
module.exports.validate = validate;
module.exports.assert = assert;
{
"name": "@eik/common",
"version": "1.0.1",
"version": "1.1.0",
"description": "Common utilities for Eik modules",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -14,3 +14,3 @@ # Eik Commons

```js
const { schemas } = require('@eik/common');
const { schemas, assert } = require('@eik/common');
```

@@ -27,2 +27,11 @@

});
//or
assert.eikJSON({
name: 'my-app',
version: '1.0.0',
server: 'http://eik-server',
files: [],
});
```

@@ -36,2 +45,6 @@

const { error, value } = schemas.validate.name('my-app');
// or
assert.name('my-app');
```

@@ -43,2 +56,6 @@

const { error, value } = schemas.validate.version('1.0.0');
// or
assert.version('1.0.0');
```

@@ -49,2 +66,6 @@ ##### server

const { error, value } = schemas.validate.server('http://myeikserver.com');
// or
assert.server('http://myeikserver.com');
```

@@ -57,2 +78,8 @@ ##### files

});
// or
assert.files({
'./index.js': '/path/to/file.js'
});
```

@@ -69,2 +96,9 @@

]);
// or
assert.importMap([
'http://meserver.com/map1.json',
'http://meserver.com/map2.json',
]);
```

@@ -76,2 +110,6 @@

const { error, value } = schemas.validate.out('./.eik');
// or
assert.out('./.eik');
```
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