jsyg-stdconstruct
Advanced tools
Comparing version 0.1.5 to 1.0.0
@@ -0,0 +0,0 @@ (function(root,factory) { |
{ | ||
"name": "jsyg-stdconstruct", | ||
"version": "0.1.5", | ||
"version": "1.0.0", | ||
"description": "Standard constructor for writing JSYG plugins", | ||
@@ -29,5 +29,9 @@ "main": "JSYG.StdConstruct.js", | ||
"dependencies": { | ||
"jquery": "^2.2.3", | ||
"jsyg-events": "" | ||
"jsyg-events": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"jquery": "^3.3.1", | ||
"qunit": "^2.6.0", | ||
"requirejs": "^2.3.5" | ||
} | ||
} |
@@ -0,0 +0,0 @@ # JSYG.StdConstruct |
@@ -13,5 +13,7 @@ if (typeof require!= "undefined") { | ||
QUnit.config.autostart = false; | ||
(function(factory) { | ||
if (typeof define == 'function' && define.amd) define(["jsyg-stdconstruct"],factory); | ||
if (typeof define == 'function' && define.amd) require(["jsyg-stdconstruct"],factory); | ||
else factory(StdConstruct); | ||
@@ -21,7 +23,10 @@ | ||
QUnit.start() | ||
const { module, test } = QUnit | ||
module("StdConstruct"); | ||
test("Gestion des fonction standard", function() { | ||
test("Gestion des fonction standard", assert => { | ||
var obj = new StdConstruct(); | ||
@@ -31,9 +36,9 @@ | ||
expect(2); | ||
assert.expect(2); | ||
equal(obj.enabled, true, "activation du plugin"); | ||
assert.equal(obj.enabled, true, "activation du plugin"); | ||
equal(typeof obj.on, "function", "héritage de Events"); | ||
assert.equal(typeof obj.on, "function", "héritage de Events"); | ||
}); | ||
})); |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
1
1
10126
3
7
131
2
- Removedjquery@^2.2.3
- Removedjquery@2.2.4(transitive)
Updatedjsyg-events@^1.0.0