cumulocity-hellowidget-plugin
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -9,3 +9,3 @@ const _ = require('lodash'); | ||
const APP_CONTEXT_PATH = process.argv[4] || 'myapplication'; | ||
const APP_CONTEXT_PATH = process.argv[4] || 'pocs'; | ||
@@ -29,7 +29,5 @@ const pluginJsFiles = _(glob.sync('plugins/**/*/cumulocity.json')) | ||
config.set({ | ||
singleRun: true, | ||
files: [ | ||
'node_modules/babel-polyfill/dist/polyfill.js', | ||
'node_modules/cumulocity-ui-build/core{,_*}/main.js', | ||
@@ -47,7 +45,7 @@ 'node_modules/angular-mocks/angular-mocks.js', | ||
browsers: ['PhantomJS'], | ||
browsers: ['ChromeHeadless'], | ||
plugins: [ | ||
'karma-jasmine', | ||
'karma-phantomjs-launcher', | ||
'karma-chrome-launcher', | ||
'karma-spec-reporter', | ||
@@ -61,15 +59,7 @@ 'karma-ng-html2js-preprocessor', | ||
'test-helper.js': ['babel'], | ||
// Match files in all plugins subfolders except vendor/ | ||
'plugins/*/{*.js,!(vendor)/**/*.js}': ['c8y-pluginpath', 'babel'], | ||
// Match files in all plugins subfolders except vendor/ or lib/. | ||
'plugins/*/{*.js,!(vendor)/**/*.js,!(lib)/**/*.js}': ['c8y-pluginpath', 'babel'], | ||
'plugins/**/*.html': ['ng-html2js'] | ||
}, | ||
babelPreprocessor: { | ||
options: { | ||
presets: [ | ||
['env', { | ||
debug: false | ||
}] | ||
] | ||
} | ||
}, | ||
@@ -76,0 +66,0 @@ reporters: ['spec'], |
{ | ||
"name": "cumulocity-hellowidget-plugin", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "A demo app for showcasing creation of a custom Cumulocity UI widget plugin", | ||
@@ -37,18 +37,20 @@ "keywords": [ | ||
"babel-polyfill": "6.23.0", | ||
"cumulocity-ui-build": "http://resources.cumulocity.com/webapps/ui/8.0.0.tar.gz" | ||
"cumulocity-ui-build": "http://resources.cumulocity.com/webapps/ui/8.5.1.tar.gz" | ||
}, | ||
"devDependencies": { | ||
"angular-mocks": "1.5.8", | ||
"babel-core": "6.24.1", | ||
"babel-eslint": "7.2.2", | ||
"babel-preset-env": "1.4.0", | ||
"cumulocity-tools": "2.0.16", | ||
"angular-mocks": "1.6.5", | ||
"babel-core": "6.25.0", | ||
"babel-eslint": "7.2.3", | ||
"babel-plugin-transform-object-rest-spread": "6.23.0", | ||
"babel-preset-env": "1.6.0", | ||
"cumulocity-tools": "2.0.22", | ||
"eslint": "3.19.0", | ||
"eslint-config-airbnb-es5": "1.1.0", | ||
"eslint-plugin-react": "6.10.3", | ||
"fs-extra": "2.1.2", | ||
"glob": "7.1.1", | ||
"jasmine-core": "2.5.2", | ||
"karma": "1.6.0", | ||
"eslint-config-airbnb-es5": "1.2.0", | ||
"eslint-plugin-react": "7.1.0", | ||
"fs-extra": "3.0.1", | ||
"glob": "7.1.2", | ||
"jasmine-core": "2.6.4", | ||
"karma": "1.7.0", | ||
"karma-babel-preprocessor": "6.0.1", | ||
"karma-chrome-launcher": "2.2.0", | ||
"karma-jasmine": "1.1.0", | ||
@@ -59,5 +61,5 @@ "karma-ng-html2js-preprocessor": "1.0.0", | ||
"lodash": "4.17.4", | ||
"sinon": "2.1.0", | ||
"sinon": "2.3.6", | ||
"tentacle.js": "0.1.0" | ||
} | ||
} |
@@ -24,4 +24,4 @@ /** | ||
_.assign(vm, { | ||
$onInit: onInit, | ||
$onChange: onChange | ||
$onInit, | ||
$onChanges | ||
}); | ||
@@ -31,3 +31,3 @@ | ||
function onInit() { | ||
function $onInit() { | ||
console.log(vm.helloText); | ||
@@ -38,3 +38,3 @@ | ||
function onChange(changes) { | ||
function $onChanges(changes) { | ||
if (changes.device) { | ||
@@ -41,0 +41,0 @@ onDeviceChange(); |
@@ -22,7 +22,7 @@ /** | ||
vm.$onInit = onInit; | ||
_.assign(vm, { $onInit }); | ||
//////////// | ||
function onInit() { | ||
function $onInit() { | ||
vm.text = vm.text || 'hello, world'; | ||
@@ -29,0 +29,0 @@ } |
@@ -16,9 +16,11 @@ /** | ||
) { | ||
c8ySystem | ||
.getUIVersion() | ||
.then(version => console.log(version)); | ||
(async () => { | ||
const version = await c8ySystem.getUIVersion(); | ||
// Put your fiddle code here. | ||
console.log('hello, world'); | ||
console.log(version); | ||
// Put your fiddle code here. | ||
console.log('hello, world'); | ||
})(); | ||
} | ||
}()); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
Found 1 instance in 1 package
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
Found 1 instance in 1 package
4709194
22
430