@abp/core 10.0.0-rc.1 → 10.0.0-rc.3

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/abp.js +11 -0
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "10.0.0-rc.1",
2
+ "version": "10.0.0-rc.3",
3
3
  "name": "@abp/core",
4
4
  "repository": {
5
5
  "type": "git",
@@ -10,7 +10,7 @@
10
10
  "access": "public"
11
11
  },
12
12
  "dependencies": {
13
- "@abp/utils": "~10.0.0-rc.1"
13
+ "@abp/utils": "~10.0.0-rc.3"
14
14
  },
15
15
  "gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431",
16
16
  "homepage": "https://abp.io",
package/src/abp.js CHANGED
@@ -340,6 +340,17 @@ var abp = abp || {};
340
340
  callback && callback(result);
341
341
  };
342
342
 
343
+ abp.message.prompt = function (message, titleOrOptionsOrCallback, callback) {
344
+ abp.log.warn('abp.message.prompt is not properly implemented!');
345
+
346
+ if (titleOrOptionsOrCallback && !(typeof titleOrOptionsOrCallback == 'string')) {
347
+ callback = titleOrOptionsOrCallback;
348
+ }
349
+
350
+ var result = prompt(message);
351
+ callback && callback(result);
352
+ };
353
+
343
354
  /* UI *******************************************************/
344
355
 
345
356
  abp.ui = abp.ui || {};