particle-api-js 10.2.0 → 10.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/karma.conf.js CHANGED
@@ -4,76 +4,76 @@ const webpackConf = require('./webpack.config.js');
4
4
  const webpack = require('webpack');
5
5
 
6
6
  module.exports = function karmaCfg(config){
7
- config.set({
8
- // base path that will be used to resolve all patterns (eg. files, exclude)
9
- basePath: '',
7
+ config.set({
8
+ // base path that will be used to resolve all patterns (eg. files, exclude)
9
+ basePath: '',
10
10
 
11
- // frameworks to use
12
- // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
13
- frameworks: ['webpack', 'mocha', 'chai'],
11
+ // frameworks to use
12
+ // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
13
+ frameworks: ['webpack', 'mocha', 'chai'],
14
14
 
15
- // list of files / patterns to load in the browser
16
- files: [
17
- 'dist/particle.min.js',
18
- 'test/*.spec.js',
19
- 'test/*.integration.js'
20
- ],
15
+ // list of files / patterns to load in the browser
16
+ files: [
17
+ 'dist/particle.min.js',
18
+ 'test/*.spec.js',
19
+ 'test/*.integration.js'
20
+ ],
21
21
 
22
- // list of files to exclude
23
- exclude: [
24
- ],
22
+ // list of files to exclude
23
+ exclude: [
24
+ ],
25
25
 
26
- // preprocess matching files before serving them to the browser
27
- // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
28
- preprocessors: {
29
- 'src/**/*.js': ['webpack'],
30
- 'test/**/*.js': ['webpack']
31
- },
26
+ // preprocess matching files before serving them to the browser
27
+ // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
28
+ preprocessors: {
29
+ 'src/**/*.js': ['webpack'],
30
+ 'test/**/*.js': ['webpack']
31
+ },
32
32
 
33
- // Transform test files to a single browser consumable file
34
- webpack: {
35
- mode: 'development',
36
- target: 'web',
37
- devtool: 'inline-source-map',
38
- output: webpackConf.output,
39
- externals: webpackConf.externals,
40
- resolve: webpackConf.resolve,
41
- plugins: [
42
- new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'] }),
43
- new webpack.EnvironmentPlugin({
44
- SKIP_AGENT_TEST: process.env.SKIP_AGENT_TEST || false
45
- })
46
- ]
47
- },
33
+ // Transform test files to a single browser consumable file
34
+ webpack: {
35
+ mode: 'development',
36
+ target: 'web',
37
+ devtool: 'inline-source-map',
38
+ output: webpackConf.output,
39
+ externals: webpackConf.externals,
40
+ resolve: webpackConf.resolve,
41
+ plugins: [
42
+ new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'] }),
43
+ new webpack.EnvironmentPlugin({
44
+ SKIP_AGENT_TEST: process.env.SKIP_AGENT_TEST || false
45
+ })
46
+ ]
47
+ },
48
48
 
49
- // test results reporter to use
50
- // possible values: 'dots', 'progress'
51
- // available reporters: https://npmjs.org/browse/keyword/karma-reporter
52
- reporters: ['progress', 'coverage'],
49
+ // test results reporter to use
50
+ // possible values: 'dots', 'progress'
51
+ // available reporters: https://npmjs.org/browse/keyword/karma-reporter
52
+ reporters: ['progress', 'coverage'],
53
53
 
54
- // web server port
55
- port: 9876,
54
+ // web server port
55
+ port: 9876,
56
56
 
57
- // enable / disable colors in the output (reporters and logs)
58
- colors: true,
57
+ // enable / disable colors in the output (reporters and logs)
58
+ colors: true,
59
59
 
60
- // level of logging
61
- // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
62
- logLevel: config.LOG_INFO,
60
+ // level of logging
61
+ // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
62
+ logLevel: config.LOG_INFO,
63
63
 
64
- // enable / disable watching file and executing tests whenever any file changes
65
- autoWatch: true,
64
+ // enable / disable watching file and executing tests whenever any file changes
65
+ autoWatch: true,
66
66
 
67
- // start these browsers
68
- // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
69
- browsers: ['Firefox'],
67
+ // start these browsers
68
+ // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
69
+ browsers: ['Firefox'],
70
70
 
71
- // Continuous Integration mode
72
- // if true, Karma captures browsers, runs the tests and exits
73
- singleRun: false,
71
+ // Continuous Integration mode
72
+ // if true, Karma captures browsers, runs the tests and exits
73
+ singleRun: false,
74
74
 
75
- // Concurrency level
76
- // how many browser should be started simultaneous
77
- concurrency: Infinity
78
- });
75
+ // Concurrency level
76
+ // how many browser should be started simultaneous
77
+ concurrency: Infinity
78
+ });
79
79
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "particle-api-js",
3
- "version": "10.2.0",
3
+ "version": "10.3.1",
4
4
  "description": "Particle API Client",
5
5
  "main": "src/Particle.js",
6
6
  "scripts": {