@abp/jquery 7.2.1 → 7.3.0-rc.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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7.2.1",
2
+ "version": "7.3.0-rc.1",
3
3
  "name": "@abp/jquery",
4
4
  "repository": {
5
5
  "type": "git",
@@ -10,7 +10,7 @@
10
10
  "access": "public"
11
11
  },
12
12
  "dependencies": {
13
- "@abp/core": "~7.2.1",
13
+ "@abp/core": "~7.3.0-rc.1",
14
14
  "jquery": "~3.6.0"
15
15
  },
16
16
  "gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431"
package/src/abp.jquery.js CHANGED
@@ -371,13 +371,18 @@ var abp = abp || {};
371
371
  };
372
372
 
373
373
  var _loadScript = function (url, loadCallback, failCallback) {
374
+ var nonce = document.body.nonce || document.body.getAttribute('nonce');
374
375
  _loadFromUrl(url, loadCallback, failCallback, function (urlInfo) {
375
376
  $.get({
376
377
  url: url,
377
378
  dataType: 'text'
378
379
  })
379
380
  .done(function (script) {
380
- $.globalEval(script);
381
+ if(nonce){
382
+ $.globalEval(script, { nonce: nonce});
383
+ }else{
384
+ $.globalEval(script);
385
+ }
381
386
  urlInfo.succeed();
382
387
  })
383
388
  .fail(function () {