Socket
Socket
Sign inDemoInstall

@thi.ng/api

Package Overview
Dependencies
Maintainers
1
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/api - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

10

assert.js

@@ -7,10 +7,10 @@ /**

*/
export const assert = (typeof process === "undefined" ||
export const assert = typeof process === "undefined" ||
process.env.NODE_ENV !== "production" ||
process.env.UMBRELLA_ASSERTS === "1") ?
(test, msg = "assertion failed") => {
process.env.UMBRELLA_ASSERTS === "1"
? (test, msg = "assertion failed") => {
if ((typeof test === "function" && !test()) || !test) {
throw new Error(msg);
}
} :
() => { };
}
: () => { };

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

## [5.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@5.0.2...@thi.ng/api@5.0.3) (2019-03-01)
**Note:** Version bump only for package @thi.ng/api
## [5.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@5.0.1...@thi.ng/api@5.0.2) (2019-02-05)

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

@@ -13,11 +13,11 @@ 'use strict';

const assert = (typeof process === "undefined" ||
const assert = typeof process === "undefined" ||
process.env.NODE_ENV !== "production" ||
process.env.UMBRELLA_ASSERTS === "1") ?
(test, msg = "assertion failed") => {
process.env.UMBRELLA_ASSERTS === "1"
? (test, msg = "assertion failed") => {
if ((typeof test === "function" && !test()) || !test) {
throw new Error(msg);
}
} :
() => { };
}
: () => { };

@@ -34,3 +34,3 @@ const mixin = (behaviour, sharedBehaviour = {}) => {

value: behaviour[key],
writable: true,
writable: true
});

@@ -48,6 +48,8 @@ }

value: sharedBehaviour[key],
enumerable: sharedBehaviour.propertyIsEnumerable(key),
enumerable: sharedBehaviour.propertyIsEnumerable(key)
});
}
Object.defineProperty(_mixin, Symbol.hasInstance, { value: (x) => !!x[typeTag] });
Object.defineProperty(_mixin, Symbol.hasInstance, {
value: (x) => !!x[typeTag]
});
return _mixin;

@@ -161,3 +163,5 @@ };

const iterable = (prop) => mixin({
*[Symbol.iterator]() { yield* (this[prop]); },
*[Symbol.iterator]() {
yield* this[prop];
}
});

@@ -164,0 +168,0 @@

@@ -13,11 +13,11 @@ (function (global, factory) {

const assert = (typeof process === "undefined" ||
const assert = typeof process === "undefined" ||
process.env.NODE_ENV !== "production" ||
process.env.UMBRELLA_ASSERTS === "1") ?
(test, msg = "assertion failed") => {
process.env.UMBRELLA_ASSERTS === "1"
? (test, msg = "assertion failed") => {
if ((typeof test === "function" && !test()) || !test) {
throw new Error(msg);
}
} :
() => { };
}
: () => { };

@@ -34,3 +34,3 @@ const mixin = (behaviour, sharedBehaviour = {}) => {

value: behaviour[key],
writable: true,
writable: true
});

@@ -48,6 +48,8 @@ }

value: sharedBehaviour[key],
enumerable: sharedBehaviour.propertyIsEnumerable(key),
enumerable: sharedBehaviour.propertyIsEnumerable(key)
});
}
Object.defineProperty(_mixin, Symbol.hasInstance, { value: (x) => !!x[typeTag] });
Object.defineProperty(_mixin, Symbol.hasInstance, {
value: (x) => !!x[typeTag]
});
return _mixin;

@@ -161,3 +163,5 @@ };

const iterable = (prop) => mixin({
*[Symbol.iterator]() { yield* (this[prop]); },
*[Symbol.iterator]() {
yield* this[prop];
}
});

@@ -164,0 +168,0 @@

@@ -23,3 +23,3 @@ /**

value: behaviour[key],
writable: true,
writable: true
});

@@ -37,7 +37,9 @@ }

value: sharedBehaviour[key],
enumerable: sharedBehaviour.propertyIsEnumerable(key),
enumerable: sharedBehaviour.propertyIsEnumerable(key)
});
}
Object.defineProperty(_mixin, Symbol.hasInstance, { value: (x) => !!x[typeTag] });
Object.defineProperty(_mixin, Symbol.hasInstance, {
value: (x) => !!x[typeTag]
});
return _mixin;
};
import { mixin } from "../mixin";
export const iterable = (prop) => mixin({
*[Symbol.iterator]() { yield* (this[prop]); },
*[Symbol.iterator]() {
yield* this[prop];
}
});
{
"name": "@thi.ng/api",
"version": "5.0.2",
"version": "5.0.3",
"description": "Common, generic types & interfaces for thi.ng projects",

@@ -35,3 +35,3 @@ "module": "./index.js",

"dependencies": {
"@thi.ng/errors": "^1.0.2"
"@thi.ng/errors": "^1.0.3"
},

@@ -59,3 +59,3 @@ "keywords": [

"sideEffects": false,
"gitHead": "74fb4d83013785ce7a95357c565426a046657e74"
"gitHead": "e43f57c7554fd78380bba58d37ae62ca01221eeb"
}

Sorry, the diff of this file is not supported yet

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