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

move-on

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

move-on - npm Package Compare versions

Comparing version 2.1.6 to 2.1.7

.babelrc

56

.eslintrc.json
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"windows"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"windows"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
{
"name": "move-on",
"version": "2.1.6",
"version": "2.1.7",
"description": "Creates a queue of sync or async functions with resolve and reject callback.",
"main": "src/index.js",
"main": "dist/move-on.node.js",
"keywords": [

@@ -24,4 +24,5 @@ "promise",

"scripts": {
"test": "node tests/jasmine.conf.js",
"build": "webpack --config webpack.config.js"
"test": "babel-node jasmine.conf.js",
"start": "webpack --config webpack.dev.js",
"build": "webpack --config webpack.prod.js"
},

@@ -39,16 +40,20 @@ "repository": {

"dependencies": {
"of-type": "^2.2.0",
"typeof-arguments": "^3.1.1"
"of-type": "^3.0.0",
"typeof-arguments": "^5.0.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-loader": "^7.1.5",
"babel-preset-env": "^1.7.0",
"jasmine": "^3.1.0",
"@babel/cli": "^7.1.0",
"@babel/core": "^7.0.1",
"@babel/node": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-loader": "^8.0.2",
"jasmine": "^3.3.1",
"jasmine-spec-reporter": "^4.2.1",
"join-array": "^1.1.1",
"uglifyjs-webpack-plugin": "^1.2.7",
"webpack": "^4.16.1",
"webpack-cli": "^3.1.0"
"uglifyjs-webpack-plugin": "^1.3.0",
"webpack": "^4.19.1",
"webpack-cli": "^3.1.1",
"webpack-merge": "^4.1.4",
"webpack-node-externals": "^1.7.2"
}
}
/* global beforeAll */
const type = require('of-type');
import type from 'of-type';

@@ -4,0 +4,0 @@ beforeAll(function () {

/* global beforeAll */
const path = require('path');
const move = require(path.resolve('./src/index.js'));
import move from './../../src/move-on.js';

@@ -5,0 +4,0 @@ beforeAll(function () {

/* global beforeAll, jasmine */
const type = require('of-type');
const join = require('join-array');
import type from 'of-type';
import join from 'join-array';

@@ -6,0 +6,0 @@ beforeAll(function () {

/* global beforeAll */
const path = require('path');
const move = require(path.resolve('./src/index.js'));
import move from './../../src/move-on.js';

@@ -6,0 +5,0 @@ beforeAll(function () {

/* global beforeAll */
const path = require('path');
const move = require(path.resolve('./src/index.js'));
const type = require('of-type');
import move from './../../src/move-on.js';
import type from 'of-type';

@@ -7,0 +6,0 @@ beforeAll(function () {

@@ -81,8 +81,8 @@ class ThisMount {

module.exports = function () {
export default function () {
new ThisMount().thisMount(...arguments);
};
}
function appendFunctions(map, data) {
const getGlobal = () => ({ context: () => global, description: 'global object' });
//const getGlobal = () => ({ context: () => global, description: 'global object' });
const getContext = () => ({ context: () => data.context, description: 'config.context object' });

@@ -98,3 +98,3 @@ const getLocalThis = () => ({ context: () => this, description: 'object, within the function has been defined' });

on: getContext(),
off: getGlobal()
off: getUndefined() //in non-strict mode it returns global object
};

@@ -113,3 +113,3 @@

on: getContext(),
off: getGlobal()
off: getUndefined() //in non-strict mode it returns global object
};

@@ -116,0 +116,0 @@

/* global jasmine, beforeAll, expect */
const path = require('path');
const move = require(path.resolve('./src/index.js'));
const type = require('of-type');
import move from './../../src/move-on.js';
import type from 'of-type';

@@ -7,0 +6,0 @@ class TimeoutChain {

@@ -26,2 +26,19 @@ /* global beforeAll */

]);
this.contextObjects = [
/* in non-stric mode the this keyword refers to the primitive values' instances
and when function is bound to null, the this keyword refers to the global scope */
'hello world',
234,
true,
new Date(),
Date,
function hello() { },
null,
undefined,
this.objectTemplate,
[1, 2, 3, 'hello world'],
/hello/g,
new class Workers { }
];
});
/*global describe, it, expect*/
const path = require('path');
const move = require(path.resolve('./src/index.js'));
const thisMount = require(path.resolve('./tests/helpers/this-mount.js'));
import move from './../src/move-on.js';
import thisMount from './helpers/this-mount.js';

@@ -6,0 +5,0 @@ describe('When the module is executed', function () {

@@ -29,11 +29,16 @@ /* global describe, it, expect */

});
describe('of which the first item is of incorrect type', function () {
it('it should throw a TypeError that this item is of incorrect type and that the [Object] type is expected', function () {
for (let [key, value] of this.types) {
if (key === 'Workers' || key === 'Object') continue;
this.loop((method) => expect(method.bind(null, [() => { }, [value], () => { }], {}, () => { }, () => { })).toThrowError(TypeError, 'move-on: Invalid argument [0]. Incorrect [1][0] item. The item of [Object] type is expected.'));
this.loop((method) => expect(method.bind(null, [() => { }, () => { }, () => { }, [value, 'greet', 'names'], () => { }], {}, () => { }, () => { })).toThrowError(TypeError, 'move-on: Invalid argument [0]. Incorrect [3][0] item. The item of [Object] type is expected.'));
describe('that contains only one value item of any type', function () {
it('it should not throw any errors', function () {
for (let [value] of this.types) {
this.loop((method) => expect(method.bind(null, [() => { }, [value], () => { }], {}, () => { }, () => { })).not.toThrowError());
}
});
});
describe('that contains first item of any type and the further [Function] items', function () {
it('it should not throw any errors', function () {
for (let [value] of this.types) {
this.loop((method) => expect(method.bind(null, [() => { }, [value, ()=>{}, ()=>{}], () => { }], {}, () => { }, () => { })).not.toThrowError());
}
});
});
describe('of which the second or farther item is of incorrect type', function () {

@@ -54,2 +59,6 @@ it('it should throw a TypeError that this item is of incorrect type and that the [Function|String] type is expected', function () {

this.loop((method) => expect(method.bind(null, [() => { }, () => { }, [this.objectTemplate, 'tasks', 'names', this.objectTemplate.greet], () => { }], {}, () => { }, () => { })).toThrowError(TypeError, 'move-on: Invalid argument [0]. Incorrect [2][1] item. The given [2][0] object does not define ["tasks"] method.'));
for (let [value] of this.types) {
this.loop((method) => expect(method.bind(null, [() => { }, () => { }, [value, '_names'], () => { }], {}, () => { }, () => { })).toThrowError(TypeError, 'move-on: Invalid argument [0]. Incorrect [2][1] item. The given [2][0] object does not define ["_names"] method.'));
this.loop((method) => expect(method.bind(null, [() => { }, () => { }, () => { }, [value, '_hello']], {}, () => { }, () => { })).toThrowError(TypeError, 'move-on: Invalid argument [0]. Incorrect [3][1] item. The given [3][0] object does not define ["_hello"] method.'));
}
});

@@ -56,0 +65,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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