@kwiz/common 1.0.72 → 1.0.74
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/lib/cjs/_dependencies.js.map +1 -0
- package/lib/cjs/config.js.map +1 -0
- package/lib/cjs/exports-index.js.map +1 -0
- package/lib/cjs/helpers/Guid.js.map +1 -0
- package/lib/cjs/helpers/_dependencies.js.map +1 -0
- package/lib/cjs/helpers/base64.js.map +1 -0
- package/lib/cjs/helpers/browser.js.map +1 -0
- package/lib/cjs/helpers/browserinfo.js.map +1 -0
- package/{dist → lib/cjs}/helpers/collections.base.js +0 -3
- package/lib/cjs/helpers/collections.base.js.map +1 -0
- package/lib/cjs/helpers/collections.js.map +1 -0
- package/lib/cjs/helpers/color.js.map +1 -0
- package/{dist → lib/cjs}/helpers/cookies.js +6 -1
- package/lib/cjs/helpers/cookies.js.map +1 -0
- package/lib/cjs/helpers/date.js.map +1 -0
- package/{dist → lib/cjs}/helpers/debug.js +1 -1
- package/lib/cjs/helpers/debug.js.map +1 -0
- package/lib/cjs/helpers/emails.js.map +1 -0
- package/lib/cjs/helpers/eval.js.map +1 -0
- package/lib/cjs/helpers/exports-index.js.map +1 -0
- package/lib/cjs/helpers/file.js.map +1 -0
- package/lib/cjs/helpers/flatted.js.map +1 -0
- package/lib/cjs/helpers/functions.js.map +1 -0
- package/lib/cjs/helpers/graph/calendar.types.js.map +1 -0
- package/lib/cjs/helpers/graph/exports-index.js.map +1 -0
- package/lib/cjs/helpers/http.js.map +1 -0
- package/lib/cjs/helpers/images.js.map +1 -0
- package/lib/cjs/helpers/json.js.map +1 -0
- package/lib/cjs/helpers/md5.js.map +1 -0
- package/lib/cjs/helpers/objects.js.map +1 -0
- package/{dist → lib/cjs}/helpers/promises.js +8 -3
- package/lib/cjs/helpers/promises.js.map +1 -0
- package/lib/cjs/helpers/random.js.map +1 -0
- package/lib/cjs/helpers/scheduler/exports-index.js.map +1 -0
- package/lib/cjs/helpers/scheduler/scheduler.js.map +1 -0
- package/{dist → lib/cjs}/helpers/sharepoint.js +17 -17
- package/lib/cjs/helpers/sharepoint.js.map +1 -0
- package/lib/cjs/helpers/strings.js.map +1 -0
- package/lib/cjs/helpers/typecheckers.js.map +1 -0
- package/lib/cjs/helpers/url.js.map +1 -0
- package/lib/cjs/helpers/urlhelper.js.map +1 -0
- package/{dist → lib/cjs}/index.js +5 -2
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/types/auth.js.map +1 -0
- package/lib/cjs/types/common.types.js.map +1 -0
- package/lib/cjs/types/exports-index.js.map +1 -0
- package/lib/cjs/types/flatted.types.js.map +1 -0
- package/lib/cjs/types/globals.types.js.map +1 -0
- package/lib/cjs/types/graph/calendar.types.js.map +1 -0
- package/lib/cjs/types/graph/exports-index.js.map +1 -0
- package/lib/cjs/types/knownscript.types.js.map +1 -0
- package/lib/cjs/types/libs/datajs.types.js.map +1 -0
- package/lib/cjs/types/libs/exports-index.js.map +1 -0
- package/lib/cjs/types/libs/ics.types.js.map +1 -0
- package/lib/cjs/types/libs/msal.types.js.map +1 -0
- package/{dist → lib/cjs}/types/locales.js.map +1 -1
- package/lib/cjs/types/localstoragecache.types.js.map +1 -0
- package/lib/cjs/types/location.types.js.map +1 -0
- package/{dist → lib/cjs}/types/moment.js.map +1 -1
- package/{dist → lib/cjs}/types/regex.types.js.map +1 -1
- package/lib/cjs/types/rest.types.js.map +1 -0
- package/lib/cjs/types/sharepoint.types.js.map +1 -0
- package/lib/cjs/types/sharepoint.utils.types.js.map +1 -0
- package/lib/cjs/utils/_dependencies.js.map +1 -0
- package/lib/cjs/utils/auth/common.js.map +1 -0
- package/{dist → lib/cjs}/utils/auth/discovery.js +16 -14
- package/lib/cjs/utils/auth/discovery.js.map +1 -0
- package/lib/cjs/utils/auth/exports-index.js.map +1 -0
- package/{dist → lib/cjs}/utils/base64.js +4 -3
- package/lib/cjs/utils/base64.js.map +1 -0
- package/{dist → lib/cjs}/utils/consolelogger.js +31 -26
- package/lib/cjs/utils/consolelogger.js.map +1 -0
- package/{dist → lib/cjs}/utils/date.js +3 -3
- package/lib/cjs/utils/date.js.map +1 -0
- package/{dist → lib/cjs}/utils/emails.js +2 -2
- package/lib/cjs/utils/emails.js.map +1 -0
- package/lib/cjs/utils/exports-index.js.map +1 -0
- package/{dist → lib/cjs}/utils/knownscript.js +9 -5
- package/lib/cjs/utils/knownscript.js.map +1 -0
- package/{dist → lib/cjs}/utils/localstoragecache.js +41 -28
- package/lib/cjs/utils/localstoragecache.js.map +1 -0
- package/{dist → lib/cjs}/utils/rest.js +63 -48
- package/lib/cjs/utils/rest.js.map +1 -0
- package/{dist → lib/cjs}/utils/script.js +15 -10
- package/lib/cjs/utils/script.js.map +1 -0
- package/lib/cjs/utils/sharepoint.rest/common.js.map +1 -0
- package/{dist → lib/cjs}/utils/sharepoint.rest/date.js +10 -9
- package/lib/cjs/utils/sharepoint.rest/date.js.map +1 -0
- package/lib/cjs/utils/sharepoint.rest/exports-index.js.map +1 -0
- package/{dist → lib/cjs}/utils/sharepoint.rest/file.folder.js +49 -46
- package/lib/cjs/utils/sharepoint.rest/file.folder.js.map +1 -0
- package/{dist → lib/cjs}/utils/sharepoint.rest/item.js +51 -45
- package/lib/cjs/utils/sharepoint.rest/item.js.map +1 -0
- package/{dist → lib/cjs}/utils/sharepoint.rest/list.js +131 -124
- package/lib/cjs/utils/sharepoint.rest/list.js.map +1 -0
- package/{dist → lib/cjs}/utils/sharepoint.rest/listutils/GetListItemsByCaml.js +55 -50
- package/lib/cjs/utils/sharepoint.rest/listutils/GetListItemsByCaml.js.map +1 -0
- package/{dist → lib/cjs}/utils/sharepoint.rest/listutils/GetListItemsById.js +31 -23
- package/lib/cjs/utils/sharepoint.rest/listutils/GetListItemsById.js.map +1 -0
- package/{dist → lib/cjs}/utils/sharepoint.rest/listutils/common.js +20 -16
- package/lib/cjs/utils/sharepoint.rest/listutils/common.js.map +1 -0
- package/lib/cjs/utils/sharepoint.rest/listutils/exports-index.js.map +1 -0
- package/{dist → lib/cjs}/utils/sharepoint.rest/location.js +3 -3
- package/lib/cjs/utils/sharepoint.rest/location.js.map +1 -0
- package/{dist → lib/cjs}/utils/sharepoint.rest/navigation-links.js +3 -3
- package/lib/cjs/utils/sharepoint.rest/navigation-links.js.map +1 -0
- package/{dist → lib/cjs}/utils/sharepoint.rest/user-search.js +7 -5
- package/lib/cjs/utils/sharepoint.rest/user-search.js.map +1 -0
- package/{dist → lib/cjs}/utils/sharepoint.rest/user.js +52 -47
- package/lib/cjs/utils/sharepoint.rest/user.js.map +1 -0
- package/{dist → lib/cjs}/utils/sharepoint.rest/web.js +167 -158
- package/lib/cjs/utils/sharepoint.rest/web.js.map +1 -0
- package/{dist → lib/cjs}/utils/sod.js +12 -11
- package/lib/cjs/utils/sod.js.map +1 -0
- package/lib/esm/_dependencies.js +12 -0
- package/lib/esm/_dependencies.js.map +1 -0
- package/lib/esm/config.js +12 -0
- package/lib/esm/config.js.map +1 -0
- package/lib/esm/exports-index.js +5 -0
- package/lib/esm/exports-index.js.map +1 -0
- package/lib/esm/helpers/Guid.js +179 -0
- package/lib/esm/helpers/Guid.js.map +1 -0
- package/{src/helpers/_dependencies.ts → lib/esm/helpers/_dependencies.js} +3 -3
- package/lib/esm/helpers/_dependencies.js.map +1 -0
- package/lib/esm/helpers/base64.js +157 -0
- package/lib/esm/helpers/base64.js.map +1 -0
- package/lib/esm/helpers/browser.js +1158 -0
- package/lib/esm/helpers/browser.js.map +1 -0
- package/lib/esm/helpers/browserinfo.js +206 -0
- package/lib/esm/helpers/browserinfo.js.map +1 -0
- package/lib/esm/helpers/collections.base.js +372 -0
- package/lib/esm/helpers/collections.base.js.map +1 -0
- package/lib/esm/helpers/collections.js +96 -0
- package/lib/esm/helpers/collections.js.map +1 -0
- package/lib/esm/helpers/color.js +51 -0
- package/lib/esm/helpers/color.js.map +1 -0
- package/lib/esm/helpers/cookies.js +53 -0
- package/lib/esm/helpers/cookies.js.map +1 -0
- package/lib/esm/helpers/date.js +163 -0
- package/lib/esm/helpers/date.js.map +1 -0
- package/lib/esm/helpers/debug.js +156 -0
- package/lib/esm/helpers/debug.js.map +1 -0
- package/lib/esm/helpers/emails.js +6 -0
- package/lib/esm/helpers/emails.js.map +1 -0
- package/lib/esm/helpers/eval.js +6 -0
- package/lib/esm/helpers/eval.js.map +1 -0
- package/lib/esm/helpers/exports-index.js +30 -0
- package/lib/esm/helpers/exports-index.js.map +1 -0
- package/lib/esm/helpers/file.js +49 -0
- package/lib/esm/helpers/file.js.map +1 -0
- package/lib/esm/helpers/flatted.js +131 -0
- package/lib/esm/helpers/flatted.js.map +1 -0
- package/lib/esm/helpers/functions.js +13 -0
- package/lib/esm/helpers/functions.js.map +1 -0
- package/lib/esm/helpers/graph/calendar.types.js +10 -0
- package/lib/esm/helpers/graph/calendar.types.js.map +1 -0
- package/lib/esm/helpers/graph/exports-index.js +2 -0
- package/lib/esm/helpers/graph/exports-index.js.map +1 -0
- package/lib/esm/helpers/http.js +65 -0
- package/lib/esm/helpers/http.js.map +1 -0
- package/lib/esm/helpers/images.js +18 -0
- package/lib/esm/helpers/images.js.map +1 -0
- package/lib/esm/helpers/json.js +39 -0
- package/lib/esm/helpers/json.js.map +1 -0
- package/lib/esm/helpers/md5.js +168 -0
- package/lib/esm/helpers/md5.js.map +1 -0
- package/lib/esm/helpers/objects.js +258 -0
- package/lib/esm/helpers/objects.js.map +1 -0
- package/lib/esm/helpers/promises.js +152 -0
- package/lib/esm/helpers/promises.js.map +1 -0
- package/lib/esm/helpers/random.js +27 -0
- package/lib/esm/helpers/random.js.map +1 -0
- package/lib/esm/helpers/scheduler/exports-index.js +2 -0
- package/lib/esm/helpers/scheduler/exports-index.js.map +1 -0
- package/lib/esm/helpers/scheduler/scheduler.js +103 -0
- package/lib/esm/helpers/scheduler/scheduler.js.map +1 -0
- package/lib/esm/helpers/sharepoint.js +669 -0
- package/lib/esm/helpers/sharepoint.js.map +1 -0
- package/lib/esm/helpers/strings.js +273 -0
- package/lib/esm/helpers/strings.js.map +1 -0
- package/lib/esm/helpers/typecheckers.js +238 -0
- package/lib/esm/helpers/typecheckers.js.map +1 -0
- package/lib/esm/helpers/url.js +190 -0
- package/lib/esm/helpers/url.js.map +1 -0
- package/lib/esm/helpers/urlhelper.js +100 -0
- package/lib/esm/helpers/urlhelper.js.map +1 -0
- package/lib/esm/index.js +6 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/types/auth.js +38 -0
- package/lib/esm/types/auth.js.map +1 -0
- package/lib/esm/types/common.types.js +3 -0
- package/lib/esm/types/common.types.js.map +1 -0
- package/lib/esm/types/exports-index.js +16 -0
- package/lib/esm/types/exports-index.js.map +1 -0
- package/lib/esm/types/flatted.types.js +2 -0
- package/lib/esm/types/flatted.types.js.map +1 -0
- package/lib/esm/types/globals.types.js +2 -0
- package/lib/esm/types/globals.types.js.map +1 -0
- package/lib/esm/types/graph/calendar.types.js +2 -0
- package/lib/esm/types/graph/calendar.types.js.map +1 -0
- package/lib/esm/types/graph/exports-index.js +2 -0
- package/lib/esm/types/graph/exports-index.js.map +1 -0
- package/lib/esm/types/knownscript.types.js +2 -0
- package/lib/esm/types/knownscript.types.js.map +1 -0
- package/lib/esm/types/libs/datajs.types.js +2 -0
- package/lib/esm/types/libs/datajs.types.js.map +1 -0
- package/lib/esm/types/libs/exports-index.js +4 -0
- package/lib/esm/types/libs/exports-index.js.map +1 -0
- package/lib/esm/types/libs/ics.types.js +2 -0
- package/lib/esm/types/libs/ics.types.js.map +1 -0
- package/lib/esm/types/libs/msal.types.js +28 -0
- package/lib/esm/types/libs/msal.types.js.map +1 -0
- package/lib/esm/types/locales.js +2 -0
- package/lib/esm/types/locales.js.map +1 -0
- package/lib/esm/types/localstoragecache.types.js +2 -0
- package/lib/esm/types/localstoragecache.types.js.map +1 -0
- package/lib/esm/types/location.types.js +2 -0
- package/lib/esm/types/location.types.js.map +1 -0
- package/lib/esm/types/moment.js +2 -0
- package/lib/esm/types/moment.js.map +1 -0
- package/lib/esm/types/regex.types.js +2 -0
- package/lib/esm/types/regex.types.js.map +1 -0
- package/lib/esm/types/rest.types.js +21 -0
- package/lib/esm/types/rest.types.js.map +1 -0
- package/lib/esm/types/sharepoint.types.js +660 -0
- package/lib/esm/types/sharepoint.types.js.map +1 -0
- package/lib/esm/types/sharepoint.utils.types.js +51 -0
- package/lib/esm/types/sharepoint.utils.types.js.map +1 -0
- package/{src/utils/_dependencies.ts → lib/esm/utils/_dependencies.js} +4 -4
- package/lib/esm/utils/_dependencies.js.map +1 -0
- package/lib/esm/utils/auth/common.js +61 -0
- package/lib/esm/utils/auth/common.js.map +1 -0
- package/lib/esm/utils/auth/discovery.js +104 -0
- package/lib/esm/utils/auth/discovery.js.map +1 -0
- package/lib/esm/utils/auth/exports-index.js +3 -0
- package/lib/esm/utils/auth/exports-index.js.map +1 -0
- package/lib/esm/utils/base64.js +27 -0
- package/lib/esm/utils/base64.js.map +1 -0
- package/lib/esm/utils/consolelogger.js +271 -0
- package/lib/esm/utils/consolelogger.js.map +1 -0
- package/lib/esm/utils/date.js +26 -0
- package/lib/esm/utils/date.js.map +1 -0
- package/lib/esm/utils/emails.js +23 -0
- package/lib/esm/utils/emails.js.map +1 -0
- package/lib/esm/utils/exports-index.js +12 -0
- package/lib/esm/utils/exports-index.js.map +1 -0
- package/lib/esm/utils/knownscript.js +247 -0
- package/lib/esm/utils/knownscript.js.map +1 -0
- package/lib/esm/utils/localstoragecache.js +378 -0
- package/lib/esm/utils/localstoragecache.js.map +1 -0
- package/lib/esm/utils/rest.js +432 -0
- package/lib/esm/utils/rest.js.map +1 -0
- package/lib/esm/utils/script.js +154 -0
- package/lib/esm/utils/script.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/common.js +134 -0
- package/lib/esm/utils/sharepoint.rest/common.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/date.js +54 -0
- package/lib/esm/utils/sharepoint.rest/date.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/exports-index.js +12 -0
- package/lib/esm/utils/sharepoint.rest/exports-index.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/file.folder.js +444 -0
- package/lib/esm/utils/sharepoint.rest/file.folder.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/item.js +453 -0
- package/lib/esm/utils/sharepoint.rest/item.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/list.js +924 -0
- package/lib/esm/utils/sharepoint.rest/list.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/listutils/GetListItemsByCaml.js +624 -0
- package/lib/esm/utils/sharepoint.rest/listutils/GetListItemsByCaml.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/listutils/GetListItemsById.js +214 -0
- package/lib/esm/utils/sharepoint.rest/listutils/GetListItemsById.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/listutils/common.js +198 -0
- package/lib/esm/utils/sharepoint.rest/listutils/common.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/listutils/exports-index.js +4 -0
- package/lib/esm/utils/sharepoint.rest/listutils/exports-index.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/location.js +103 -0
- package/lib/esm/utils/sharepoint.rest/location.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/navigation-links.js +80 -0
- package/lib/esm/utils/sharepoint.rest/navigation-links.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/user-search.js +218 -0
- package/lib/esm/utils/sharepoint.rest/user-search.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/user.js +414 -0
- package/lib/esm/utils/sharepoint.rest/user.js.map +1 -0
- package/lib/esm/utils/sharepoint.rest/web.js +1158 -0
- package/lib/esm/utils/sharepoint.rest/web.js.map +1 -0
- package/lib/esm/utils/sod.js +164 -0
- package/lib/esm/utils/sod.js.map +1 -0
- package/{dist → lib/types}/helpers/collections.base.d.ts +1 -1
- package/{dist → lib/types}/helpers/collections.d.ts +1 -1
- package/{dist → lib/types}/helpers/cookies.d.ts +1 -0
- package/{dist → lib/types}/helpers/flatted.d.ts +1 -1
- package/{dist → lib/types}/helpers/graph/calendar.types.d.ts +1 -1
- package/{dist → lib/types}/helpers/sharepoint.d.ts +3 -1
- package/{dist → lib/types}/helpers/strings.d.ts +1 -1
- package/{dist → lib/types}/helpers/url.d.ts +1 -1
- package/{dist → lib/types}/utils/auth/discovery.d.ts +1 -1
- package/{dist → lib/types}/utils/knownscript.d.ts +5 -1
- package/{dist → lib/types}/utils/localstoragecache.d.ts +1 -1
- package/{dist → lib/types}/utils/rest.d.ts +1 -1
- package/{dist → lib/types}/utils/script.d.ts +1 -1
- package/{dist → lib/types}/utils/sharepoint.rest/date.d.ts +1 -1
- package/{dist → lib/types}/utils/sharepoint.rest/file.folder.d.ts +4 -1
- package/{dist → lib/types}/utils/sharepoint.rest/item.d.ts +3 -1
- package/{dist → lib/types}/utils/sharepoint.rest/list.d.ts +4 -1
- package/{dist → lib/types}/utils/sharepoint.rest/listutils/GetListItemsByCaml.d.ts +1 -1
- package/{dist → lib/types}/utils/sharepoint.rest/listutils/GetListItemsById.d.ts +2 -1
- package/{dist → lib/types}/utils/sharepoint.rest/listutils/common.d.ts +2 -1
- package/{dist → lib/types}/utils/sharepoint.rest/navigation-links.d.ts +1 -1
- package/{dist → lib/types}/utils/sharepoint.rest/user-search.d.ts +1 -1
- package/{dist → lib/types}/utils/sharepoint.rest/user.d.ts +3 -1
- package/{dist → lib/types}/utils/sharepoint.rest/web.d.ts +3 -1
- package/{dist → lib/types}/utils/sod.d.ts +1 -1
- package/package.json +15 -7
- package/src/helpers/browser.ts +1 -1
- package/src/helpers/collections.base.ts +1 -2
- package/src/helpers/collections.ts +1 -1
- package/src/helpers/cookies.ts +5 -0
- package/src/helpers/debug.ts +1 -1
- package/src/helpers/flatted.ts +1 -1
- package/src/helpers/graph/calendar.types.ts +1 -1
- package/src/helpers/promises.ts +10 -5
- package/src/helpers/sharepoint.ts +3 -1
- package/src/helpers/strings.ts +1 -1
- package/src/helpers/url.ts +1 -1
- package/src/utils/auth/discovery.ts +3 -1
- package/src/utils/base64.ts +2 -1
- package/src/utils/consolelogger.ts +7 -1
- package/src/utils/date.ts +1 -1
- package/src/utils/emails.ts +1 -1
- package/src/utils/knownscript.ts +7 -1
- package/src/utils/localstoragecache.ts +41 -21
- package/src/utils/rest.ts +23 -4
- package/src/utils/script.ts +4 -1
- package/src/utils/sharepoint.rest/date.ts +3 -1
- package/src/utils/sharepoint.rest/file.folder.ts +7 -1
- package/src/utils/sharepoint.rest/item.ts +9 -1
- package/src/utils/sharepoint.rest/list.ts +10 -1
- package/src/utils/sharepoint.rest/listutils/GetListItemsByCaml.ts +9 -1
- package/src/utils/sharepoint.rest/listutils/GetListItemsById.ts +14 -4
- package/src/utils/sharepoint.rest/listutils/common.ts +6 -1
- package/src/utils/sharepoint.rest/location.ts +1 -1
- package/src/utils/sharepoint.rest/navigation-links.ts +2 -1
- package/src/utils/sharepoint.rest/user-search.ts +4 -1
- package/src/utils/sharepoint.rest/user.ts +7 -1
- package/src/utils/sharepoint.rest/web.ts +12 -2
- package/src/utils/sod.ts +3 -1
- package/dist/_dependencies.js.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/exports-index.js.map +0 -1
- package/dist/helpers/Guid.js.map +0 -1
- package/dist/helpers/_dependencies.js.map +0 -1
- package/dist/helpers/base64.js.map +0 -1
- package/dist/helpers/browser.js.map +0 -1
- package/dist/helpers/browserinfo.js.map +0 -1
- package/dist/helpers/collections.base.js.map +0 -1
- package/dist/helpers/collections.js.map +0 -1
- package/dist/helpers/color.js.map +0 -1
- package/dist/helpers/cookies.js.map +0 -1
- package/dist/helpers/date.js.map +0 -1
- package/dist/helpers/debug.js.map +0 -1
- package/dist/helpers/emails.js.map +0 -1
- package/dist/helpers/eval.js.map +0 -1
- package/dist/helpers/exports-index.js.map +0 -1
- package/dist/helpers/file.js.map +0 -1
- package/dist/helpers/flatted.js.map +0 -1
- package/dist/helpers/functions.js.map +0 -1
- package/dist/helpers/graph/calendar.types.js.map +0 -1
- package/dist/helpers/graph/exports-index.js.map +0 -1
- package/dist/helpers/http.js.map +0 -1
- package/dist/helpers/images.js.map +0 -1
- package/dist/helpers/json.js.map +0 -1
- package/dist/helpers/md5.js.map +0 -1
- package/dist/helpers/objects.js.map +0 -1
- package/dist/helpers/promises.js.map +0 -1
- package/dist/helpers/random.js.map +0 -1
- package/dist/helpers/scheduler/exports-index.js.map +0 -1
- package/dist/helpers/scheduler/scheduler.js.map +0 -1
- package/dist/helpers/sharepoint.js.map +0 -1
- package/dist/helpers/strings.js.map +0 -1
- package/dist/helpers/typecheckers.js.map +0 -1
- package/dist/helpers/url.js.map +0 -1
- package/dist/helpers/urlhelper.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types/auth.js.map +0 -1
- package/dist/types/common.types.js.map +0 -1
- package/dist/types/exports-index.js.map +0 -1
- package/dist/types/flatted.types.js.map +0 -1
- package/dist/types/globals.types.js.map +0 -1
- package/dist/types/graph/calendar.types.js.map +0 -1
- package/dist/types/graph/exports-index.js.map +0 -1
- package/dist/types/knownscript.types.js.map +0 -1
- package/dist/types/libs/datajs.types.js.map +0 -1
- package/dist/types/libs/exports-index.js.map +0 -1
- package/dist/types/libs/ics.types.js.map +0 -1
- package/dist/types/libs/msal.types.js.map +0 -1
- package/dist/types/localstoragecache.types.js.map +0 -1
- package/dist/types/location.types.js.map +0 -1
- package/dist/types/rest.types.js.map +0 -1
- package/dist/types/sharepoint.types.js.map +0 -1
- package/dist/types/sharepoint.utils.types.js.map +0 -1
- package/dist/utils/_dependencies.js.map +0 -1
- package/dist/utils/auth/common.js.map +0 -1
- package/dist/utils/auth/discovery.js.map +0 -1
- package/dist/utils/auth/exports-index.js.map +0 -1
- package/dist/utils/base64.js.map +0 -1
- package/dist/utils/consolelogger.js.map +0 -1
- package/dist/utils/date.js.map +0 -1
- package/dist/utils/emails.js.map +0 -1
- package/dist/utils/exports-index.js.map +0 -1
- package/dist/utils/knownscript.js.map +0 -1
- package/dist/utils/localstoragecache.js.map +0 -1
- package/dist/utils/rest.js.map +0 -1
- package/dist/utils/script.js.map +0 -1
- package/dist/utils/sharepoint.rest/common.js.map +0 -1
- package/dist/utils/sharepoint.rest/date.js.map +0 -1
- package/dist/utils/sharepoint.rest/exports-index.js.map +0 -1
- package/dist/utils/sharepoint.rest/file.folder.js.map +0 -1
- package/dist/utils/sharepoint.rest/item.js.map +0 -1
- package/dist/utils/sharepoint.rest/list.js.map +0 -1
- package/dist/utils/sharepoint.rest/listutils/GetListItemsByCaml.js.map +0 -1
- package/dist/utils/sharepoint.rest/listutils/GetListItemsById.js.map +0 -1
- package/dist/utils/sharepoint.rest/listutils/common.js.map +0 -1
- package/dist/utils/sharepoint.rest/listutils/exports-index.js.map +0 -1
- package/dist/utils/sharepoint.rest/location.js.map +0 -1
- package/dist/utils/sharepoint.rest/navigation-links.js.map +0 -1
- package/dist/utils/sharepoint.rest/user-search.js.map +0 -1
- package/dist/utils/sharepoint.rest/user.js.map +0 -1
- package/dist/utils/sharepoint.rest/web.js.map +0 -1
- package/dist/utils/sod.js.map +0 -1
- /package/{dist → lib/cjs}/_dependencies.js +0 -0
- /package/{dist → lib/cjs}/config.js +0 -0
- /package/{dist → lib/cjs}/exports-index.js +0 -0
- /package/{dist → lib/cjs}/helpers/Guid.js +0 -0
- /package/{dist → lib/cjs}/helpers/_dependencies.js +0 -0
- /package/{dist → lib/cjs}/helpers/base64.js +0 -0
- /package/{dist → lib/cjs}/helpers/browser.js +0 -0
- /package/{dist → lib/cjs}/helpers/browserinfo.js +0 -0
- /package/{dist → lib/cjs}/helpers/collections.js +0 -0
- /package/{dist → lib/cjs}/helpers/color.js +0 -0
- /package/{dist → lib/cjs}/helpers/date.js +0 -0
- /package/{dist → lib/cjs}/helpers/emails.js +0 -0
- /package/{dist → lib/cjs}/helpers/eval.js +0 -0
- /package/{dist → lib/cjs}/helpers/exports-index.js +0 -0
- /package/{dist → lib/cjs}/helpers/file.js +0 -0
- /package/{dist → lib/cjs}/helpers/flatted.js +0 -0
- /package/{dist → lib/cjs}/helpers/functions.js +0 -0
- /package/{dist → lib/cjs}/helpers/graph/calendar.types.js +0 -0
- /package/{dist → lib/cjs}/helpers/graph/exports-index.js +0 -0
- /package/{dist → lib/cjs}/helpers/http.js +0 -0
- /package/{dist → lib/cjs}/helpers/images.js +0 -0
- /package/{dist → lib/cjs}/helpers/json.js +0 -0
- /package/{dist → lib/cjs}/helpers/md5.js +0 -0
- /package/{dist → lib/cjs}/helpers/objects.js +0 -0
- /package/{dist → lib/cjs}/helpers/random.js +0 -0
- /package/{dist → lib/cjs}/helpers/scheduler/exports-index.js +0 -0
- /package/{dist → lib/cjs}/helpers/scheduler/scheduler.js +0 -0
- /package/{dist → lib/cjs}/helpers/strings.js +0 -0
- /package/{dist → lib/cjs}/helpers/typecheckers.js +0 -0
- /package/{dist → lib/cjs}/helpers/url.js +0 -0
- /package/{dist → lib/cjs}/helpers/urlhelper.js +0 -0
- /package/{dist → lib/cjs}/types/auth.js +0 -0
- /package/{dist → lib/cjs}/types/common.types.js +0 -0
- /package/{dist → lib/cjs}/types/exports-index.js +0 -0
- /package/{dist → lib/cjs}/types/flatted.types.js +0 -0
- /package/{dist → lib/cjs}/types/globals.types.js +0 -0
- /package/{dist → lib/cjs}/types/graph/calendar.types.js +0 -0
- /package/{dist → lib/cjs}/types/graph/exports-index.js +0 -0
- /package/{dist → lib/cjs}/types/knownscript.types.js +0 -0
- /package/{dist → lib/cjs}/types/libs/datajs.types.js +0 -0
- /package/{dist → lib/cjs}/types/libs/exports-index.js +0 -0
- /package/{dist → lib/cjs}/types/libs/ics.types.js +0 -0
- /package/{dist → lib/cjs}/types/libs/msal.types.js +0 -0
- /package/{dist → lib/cjs}/types/locales.js +0 -0
- /package/{dist → lib/cjs}/types/localstoragecache.types.js +0 -0
- /package/{dist → lib/cjs}/types/location.types.js +0 -0
- /package/{dist → lib/cjs}/types/moment.js +0 -0
- /package/{dist → lib/cjs}/types/regex.types.js +0 -0
- /package/{dist → lib/cjs}/types/rest.types.js +0 -0
- /package/{dist → lib/cjs}/types/sharepoint.types.js +0 -0
- /package/{dist → lib/cjs}/types/sharepoint.utils.types.js +0 -0
- /package/{dist → lib/cjs}/utils/_dependencies.js +0 -0
- /package/{dist → lib/cjs}/utils/auth/common.js +0 -0
- /package/{dist → lib/cjs}/utils/auth/exports-index.js +0 -0
- /package/{dist → lib/cjs}/utils/exports-index.js +0 -0
- /package/{dist → lib/cjs}/utils/sharepoint.rest/common.js +0 -0
- /package/{dist → lib/cjs}/utils/sharepoint.rest/exports-index.js +0 -0
- /package/{dist → lib/cjs}/utils/sharepoint.rest/listutils/exports-index.js +0 -0
- /package/{dist → lib/types}/_dependencies.d.ts +0 -0
- /package/{dist → lib/types}/config.d.ts +0 -0
- /package/{dist → lib/types}/exports-index.d.ts +0 -0
- /package/{dist → lib/types}/helpers/Guid.d.ts +0 -0
- /package/{dist → lib/types}/helpers/_dependencies.d.ts +0 -0
- /package/{dist → lib/types}/helpers/base64.d.ts +0 -0
- /package/{dist → lib/types}/helpers/browser.d.ts +0 -0
- /package/{dist → lib/types}/helpers/browserinfo.d.ts +0 -0
- /package/{dist → lib/types}/helpers/color.d.ts +0 -0
- /package/{dist → lib/types}/helpers/date.d.ts +0 -0
- /package/{dist → lib/types}/helpers/debug.d.ts +0 -0
- /package/{dist → lib/types}/helpers/emails.d.ts +0 -0
- /package/{dist → lib/types}/helpers/eval.d.ts +0 -0
- /package/{dist → lib/types}/helpers/exports-index.d.ts +0 -0
- /package/{dist → lib/types}/helpers/file.d.ts +0 -0
- /package/{dist → lib/types}/helpers/functions.d.ts +0 -0
- /package/{dist → lib/types}/helpers/graph/exports-index.d.ts +0 -0
- /package/{dist → lib/types}/helpers/http.d.ts +0 -0
- /package/{dist → lib/types}/helpers/images.d.ts +0 -0
- /package/{dist → lib/types}/helpers/json.d.ts +0 -0
- /package/{dist → lib/types}/helpers/md5.d.ts +0 -0
- /package/{dist → lib/types}/helpers/objects.d.ts +0 -0
- /package/{dist → lib/types}/helpers/promises.d.ts +0 -0
- /package/{dist → lib/types}/helpers/random.d.ts +0 -0
- /package/{dist → lib/types}/helpers/scheduler/exports-index.d.ts +0 -0
- /package/{dist → lib/types}/helpers/scheduler/scheduler.d.ts +0 -0
- /package/{dist → lib/types}/helpers/typecheckers.d.ts +0 -0
- /package/{dist → lib/types}/helpers/urlhelper.d.ts +0 -0
- /package/{dist → lib/types}/index.d.ts +0 -0
- /package/{dist → lib/types}/types/auth.d.ts +0 -0
- /package/{dist → lib/types}/types/common.types.d.ts +0 -0
- /package/{dist → lib/types}/types/exports-index.d.ts +0 -0
- /package/{dist → lib/types}/types/flatted.types.d.ts +0 -0
- /package/{dist → lib/types}/types/globals.types.d.ts +0 -0
- /package/{dist → lib/types}/types/graph/calendar.types.d.ts +0 -0
- /package/{dist → lib/types}/types/graph/exports-index.d.ts +0 -0
- /package/{dist → lib/types}/types/knownscript.types.d.ts +0 -0
- /package/{dist → lib/types}/types/libs/datajs.types.d.ts +0 -0
- /package/{dist → lib/types}/types/libs/exports-index.d.ts +0 -0
- /package/{dist → lib/types}/types/libs/ics.types.d.ts +0 -0
- /package/{dist → lib/types}/types/libs/msal.types.d.ts +0 -0
- /package/{dist → lib/types}/types/locales.d.ts +0 -0
- /package/{dist → lib/types}/types/localstoragecache.types.d.ts +0 -0
- /package/{dist → lib/types}/types/location.types.d.ts +0 -0
- /package/{dist → lib/types}/types/moment.d.ts +0 -0
- /package/{dist → lib/types}/types/regex.types.d.ts +0 -0
- /package/{dist → lib/types}/types/rest.types.d.ts +0 -0
- /package/{dist → lib/types}/types/sharepoint.types.d.ts +0 -0
- /package/{dist → lib/types}/types/sharepoint.utils.types.d.ts +0 -0
- /package/{dist → lib/types}/utils/_dependencies.d.ts +0 -0
- /package/{dist → lib/types}/utils/auth/common.d.ts +0 -0
- /package/{dist → lib/types}/utils/auth/exports-index.d.ts +0 -0
- /package/{dist → lib/types}/utils/base64.d.ts +0 -0
- /package/{dist → lib/types}/utils/consolelogger.d.ts +0 -0
- /package/{dist → lib/types}/utils/date.d.ts +0 -0
- /package/{dist → lib/types}/utils/emails.d.ts +0 -0
- /package/{dist → lib/types}/utils/exports-index.d.ts +0 -0
- /package/{dist → lib/types}/utils/sharepoint.rest/common.d.ts +0 -0
- /package/{dist → lib/types}/utils/sharepoint.rest/exports-index.d.ts +0 -0
- /package/{dist → lib/types}/utils/sharepoint.rest/listutils/exports-index.d.ts +0 -0
- /package/{dist → lib/types}/utils/sharepoint.rest/location.d.ts +0 -0
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IDictionary } from "../types/common.types";
|
|
2
|
+
import { FieldTypeAsString, FieldTypes, IFieldCalculatedInfo, IFieldInfo, IFieldInfoEX, IFieldJsonSchema, IFieldTaxonomyInfo, PrincipalType, RententionLabelFieldValueType, SPBasePermissionKind, ThumbnailValueType, UrlValueType } from "../types/sharepoint.types";
|
|
3
|
+
import { UserEntityValueType } from "../types/sharepoint.utils.types";
|
|
2
4
|
import { waitFor, waitForWindowObject } from "./browser";
|
|
3
5
|
import { firstOrNull, forEach } from "./collections.base";
|
|
4
6
|
import { deleteCookie, getCookie, setCookie } from "./cookies";
|
package/src/helpers/strings.ts
CHANGED
package/src/helpers/url.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDictionary } from "
|
|
1
|
+
import { IDictionary } from "../types/common.types";
|
|
2
2
|
import { ArrayFill, lastOrNull } from "./collections.base";
|
|
3
3
|
import { isNullOrEmptyString, isString } from "./typecheckers";
|
|
4
4
|
import { URLHelper } from "./urlhelper";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { promiseOnce } from "../../helpers/promises";
|
|
2
|
+
import { isNullOrEmptyString, isValidGuid } from "../../helpers/typecheckers";
|
|
3
|
+
import { AzureEnvironment, ITenantInfo } from "../../types/auth";
|
|
2
4
|
import { GetJson, GetJsonSync } from "../rest";
|
|
3
5
|
|
|
4
6
|
interface IOpenidConfiguration {
|
package/src/utils/base64.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { blobToBase64
|
|
1
|
+
import { blobToBase64 } from "../helpers/base64";
|
|
2
|
+
import { isNullOrEmptyString } from "../helpers/typecheckers";
|
|
2
3
|
import { GetJson } from "./rest";
|
|
3
4
|
import { GetFile } from "./sharepoint.rest/file.folder";
|
|
4
5
|
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import { BuildNumber,
|
|
1
|
+
import { BuildNumber, ReleaseStatus } from "../_dependencies";
|
|
2
|
+
import { getSecondsElapsed } from "../helpers/date";
|
|
3
|
+
import { consoleLoggerFilter, isDebug } from "../helpers/debug";
|
|
4
|
+
import { getGlobal } from "../helpers/objects";
|
|
5
|
+
import { padLeft, padRight } from "../helpers/strings";
|
|
6
|
+
import { isFunction, isNullOrEmptyString, isNumber, isNumeric, isString } from "../helpers/typecheckers";
|
|
7
|
+
import { IDictionary } from "../types/common.types";
|
|
2
8
|
|
|
3
9
|
const DEFAULT_LOGGER_NAME = "DEFAULT";
|
|
4
10
|
const LoggerPrefix = "[kw]";
|
package/src/utils/date.ts
CHANGED
package/src/utils/emails.ts
CHANGED
package/src/utils/knownscript.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { assign } from "../helpers/objects";
|
|
2
|
+
import { isNullOrUndefined } from "../helpers/typecheckers";
|
|
3
|
+
import { IKnownScript, ksGlobal } from "../types/knownscript.types";
|
|
4
|
+
import { IDataJs } from "../types/libs/datajs.types";
|
|
5
|
+
import { ICS } from "../types/libs/ics.types";
|
|
6
|
+
import { IMSAL } from "../types/libs/msal.types";
|
|
7
|
+
import { IKLocales } from "../types/locales";
|
|
1
8
|
import { typeMomentJS, typeMonentJSTimeZone } from "../types/moment";
|
|
2
|
-
import { ICS, IDataJs, IKLocales, IKnownScript, IMSAL, assign, isNullOrUndefined, ksGlobal } from "./_dependencies";
|
|
3
9
|
import script from "./script";
|
|
4
10
|
|
|
5
11
|
/** /products/common/scripts/ */
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { sizeOf } from "../helpers/collections.base";
|
|
2
|
+
import { isDebug } from "../helpers/debug";
|
|
3
|
+
import { flatted } from "../helpers/flatted";
|
|
4
|
+
import { jsonParse } from "../helpers/json";
|
|
5
|
+
import { getGlobal } from "../helpers/objects";
|
|
6
|
+
import { isDate, isNullOrEmptyString, isNullOrUndefined, isNumber } from "../helpers/typecheckers";
|
|
7
|
+
import { ILocalStorageCacheLifetime } from "../types/localstoragecache.types";
|
|
2
8
|
import { ConsoleLogger } from "./consolelogger";
|
|
3
9
|
|
|
4
10
|
/**key with prefix, value is a date string */
|
|
@@ -17,11 +23,30 @@ export const DEFAULT_EXPIRATION = 20 * 60 * 1000; // 20 minutes;
|
|
|
17
23
|
* and all client side apps will need to be rebuilt */
|
|
18
24
|
export const MODULE_REVISION = "1";
|
|
19
25
|
/** key (no prefix) is kept in lower case. not case sensitive */
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
|
|
27
|
+
function _getCache() {
|
|
28
|
+
let _cache = getGlobal<{
|
|
29
|
+
purgeCalled: boolean;
|
|
30
|
+
expirations: IExpirationsDictionary;
|
|
31
|
+
[keyNoPrefixToLower: string]: any;
|
|
32
|
+
}>("common_utils_localstoragecache_module_cache");
|
|
33
|
+
|
|
34
|
+
if (!_cache.purgeCalled) {
|
|
35
|
+
//issue 7081 - purge all orphans/expired items
|
|
36
|
+
_cache.purgeCalled = true;
|
|
37
|
+
//clear expired cache items.
|
|
38
|
+
(globalThis || window).setTimeout(() => {
|
|
39
|
+
purgeCache();
|
|
40
|
+
if (isDebug()) {
|
|
41
|
+
let size = _getStoredSize();
|
|
42
|
+
logger.debug(`Size of items in local storage: ${size}KB`);
|
|
43
|
+
}
|
|
44
|
+
}, 5000);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return _cache;
|
|
48
|
+
}
|
|
49
|
+
|
|
25
50
|
var _supportsLocalStorage: boolean = null;
|
|
26
51
|
|
|
27
52
|
function _parseExpiration(exp: number | ILocalStorageCacheLifetime | Date): Date {
|
|
@@ -79,6 +104,7 @@ function _parseExpiration(exp: number | ILocalStorageCacheLifetime | Date): Date
|
|
|
79
104
|
}
|
|
80
105
|
|
|
81
106
|
function _getCacheExpirations(): IExpirationsDictionary {
|
|
107
|
+
let _cache = _getCache();
|
|
82
108
|
if (isNullOrUndefined(_cache.expirations)) {
|
|
83
109
|
_cache.expirations = jsonParse<IExpirationsDictionary>(_getItem(LOCAL_STORGAGE_EXPIRATIONS_KEY));
|
|
84
110
|
|
|
@@ -101,6 +127,7 @@ function _getCacheExpirations(): IExpirationsDictionary {
|
|
|
101
127
|
}
|
|
102
128
|
|
|
103
129
|
function _saveCacheExpirations() {
|
|
130
|
+
let _cache = _getCache();
|
|
104
131
|
if (!isNullOrUndefined(_cache.expirations) && sizeOf(_cache.expirations) > 0) {
|
|
105
132
|
_setItem(LOCAL_STORGAGE_EXPIRATIONS_KEY, JSON.stringify(_cache.expirations));
|
|
106
133
|
}
|
|
@@ -108,9 +135,10 @@ function _saveCacheExpirations() {
|
|
|
108
135
|
_removeItem(LOCAL_STORGAGE_EXPIRATIONS_KEY);
|
|
109
136
|
}
|
|
110
137
|
}
|
|
138
|
+
|
|
111
139
|
function _setCacheExpiration(keyWithPrefix: string, expireDate: Date) {
|
|
112
140
|
var expirations = _getCacheExpirations();
|
|
113
|
-
expirations[keyWithPrefix] = expireDate.
|
|
141
|
+
expirations[keyWithPrefix] = expireDate.toISOString();
|
|
114
142
|
_saveCacheExpirations();
|
|
115
143
|
}
|
|
116
144
|
|
|
@@ -168,7 +196,7 @@ function _getStoredSize() {
|
|
|
168
196
|
let keys = getCacheKeys();
|
|
169
197
|
let total = 0;
|
|
170
198
|
let length = 0;
|
|
171
|
-
let useBlob = 'Blob' in
|
|
199
|
+
let useBlob = 'Blob' in (globalThis || window);
|
|
172
200
|
|
|
173
201
|
keys.forEach((key) => {
|
|
174
202
|
let v = _getItem(`${keyPrefix}${key}`);
|
|
@@ -211,6 +239,8 @@ export function getCacheItem<T>(key: string, options?: {
|
|
|
211
239
|
key = key.toLowerCase();
|
|
212
240
|
let keyWithPrefix = keyPrefix + key;
|
|
213
241
|
|
|
242
|
+
let _cache = _getCache();
|
|
243
|
+
|
|
214
244
|
if (typeof (_cache[key]) !== "undefined"
|
|
215
245
|
&& _cache[key] !== null) {
|
|
216
246
|
return _cache[key] as T;
|
|
@@ -269,12 +299,15 @@ export function setCacheItem(key: string, value: any, expiration: number | ILoca
|
|
|
269
299
|
_setCacheExpiration(keyWithPrefix, expireDate);
|
|
270
300
|
}
|
|
271
301
|
|
|
302
|
+
let _cache = _getCache();
|
|
303
|
+
|
|
272
304
|
_cache[key] = value;
|
|
273
305
|
}
|
|
274
306
|
}
|
|
275
307
|
|
|
276
308
|
export function removeCacheItem(key: string) {
|
|
277
309
|
key = key.toLowerCase();
|
|
310
|
+
let _cache = _getCache();
|
|
278
311
|
delete _cache[key];
|
|
279
312
|
let keyWithPrefix = keyPrefix + key;
|
|
280
313
|
|
|
@@ -406,17 +439,4 @@ function purgeCache(removeAll?: boolean) {
|
|
|
406
439
|
export function clearCache(): void {
|
|
407
440
|
return purgeCache(true);
|
|
408
441
|
}
|
|
409
|
-
|
|
410
|
-
if (!_cache.purgeCalled) {
|
|
411
|
-
//issue 7081 - purge all orphans/expired items
|
|
412
|
-
_cache.purgeCalled = true;
|
|
413
|
-
//clear expired cache items.
|
|
414
|
-
$w.setTimeout(() => {
|
|
415
|
-
purgeCache();
|
|
416
|
-
if (isDebug()) {
|
|
417
|
-
let size = _getStoredSize();
|
|
418
|
-
logger.debug(`Size of items in local storage: ${size}KB`);
|
|
419
|
-
}
|
|
420
|
-
}, 3000);
|
|
421
|
-
}
|
|
422
442
|
//#endregion
|
package/src/utils/rest.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsonParse } from "../helpers/json";
|
|
2
|
+
import { assign, getGlobal, hasOwnProperty, jsonClone } from "../helpers/objects";
|
|
3
|
+
import { isNullOrEmptyString, isNullOrUndefined, isNumber, isObject, isPrimitiveValue, isString } from "../helpers/typecheckers";
|
|
4
|
+
import { IDictionary } from "../types/common.types";
|
|
5
|
+
import { AllRestCacheOptionsKeys, IJsonSyncResult, IRequestBody, IRequestObjects, IRestCacheOptions, IRestError, IRestOptions, IRestRequestOptions, jsonTypes } from "../types/rest.types";
|
|
2
6
|
import { ConsoleLogger } from "./consolelogger";
|
|
3
7
|
import { getCacheItem, setCacheItem } from "./localstoragecache";
|
|
4
8
|
import { getFormDigest } from "./sharepoint.rest/web";
|
|
@@ -36,9 +40,17 @@ interface IPendingRequest<T> {
|
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
//if allowCache is true, results will be stored/returned from here
|
|
39
|
-
|
|
43
|
+
function _getCachedResults() {
|
|
44
|
+
var _cachedResults = getGlobal<{ [key: string]: IJsonSyncResult<any>; }>("utils_restmodule_cachedResults");
|
|
45
|
+
return _cachedResults;
|
|
46
|
+
}
|
|
47
|
+
|
|
40
48
|
//cannot use from top window, example: DVP, if you open view item popup and close it too fast, there might be a pending request that never resolves since the handler code was unloaded from the window.
|
|
41
|
-
|
|
49
|
+
function _getPendingRequests() {
|
|
50
|
+
var _pendingRequests = getGlobal<IDictionary<IPendingRequest<any>>>("utils_restmodule_pendingRequests", undefined, true);
|
|
51
|
+
return _pendingRequests;
|
|
52
|
+
}
|
|
53
|
+
|
|
42
54
|
|
|
43
55
|
function getDefaultOptions(): IRestOptions {
|
|
44
56
|
return {
|
|
@@ -142,6 +154,7 @@ function getCachedResult<T>(objects: IRequestObjects): IJsonSyncResult<T> {
|
|
|
142
154
|
return null;
|
|
143
155
|
}
|
|
144
156
|
|
|
157
|
+
let _cachedResults = _getCachedResults();
|
|
145
158
|
if (isNullOrUndefined(_cachedResults[cacheKey])) {
|
|
146
159
|
//try to load from local storage
|
|
147
160
|
let result = getCacheItem<IJsonSyncResult<T>>('jsr_' + cacheKey);
|
|
@@ -191,6 +204,7 @@ function setCachedResult<T>(cacheOptions: IRestCacheOptions & { cacheKey?: strin
|
|
|
191
204
|
response.cachedTime = new Date().getTime();
|
|
192
205
|
let isResultSerializable = _canSafelyStringify(response.result);
|
|
193
206
|
|
|
207
|
+
let _cachedResults = _getCachedResults();
|
|
194
208
|
_cachedResults[cacheOptions.cacheKey] = {
|
|
195
209
|
...response,
|
|
196
210
|
result: isResultSerializable ? jsonClone(response.result) : response.result
|
|
@@ -209,7 +223,9 @@ function getPendingRequest<T = any>(objects: IRequestObjects): IPendingRequest<T
|
|
|
209
223
|
var cacheKey = objects.cacheOptions.cacheKey;
|
|
210
224
|
// if (isNullOrEmptyString(cacheKey)) {
|
|
211
225
|
// logger.warn('cache is not supported for this type of request.');
|
|
212
|
-
// }
|
|
226
|
+
// }
|
|
227
|
+
|
|
228
|
+
let _pendingRequests = _getPendingRequests();
|
|
213
229
|
|
|
214
230
|
if (!isNullOrEmptyString(cacheKey) && !isNullOrUndefined(_pendingRequests[cacheKey])) {
|
|
215
231
|
//returned from cache
|
|
@@ -240,6 +256,7 @@ function setPendingRequest<T = any>(cacheKey: string, objects: IRequestObjects,
|
|
|
240
256
|
return null;
|
|
241
257
|
}
|
|
242
258
|
|
|
259
|
+
let _pendingRequests = _getPendingRequests();
|
|
243
260
|
_pendingRequests[cacheKey] = { objects: objects, promise: promise, listeners: [] };
|
|
244
261
|
return _pendingRequests[cacheKey];
|
|
245
262
|
}
|
|
@@ -250,6 +267,7 @@ function removePendingRequest(cacheKey: string) {
|
|
|
250
267
|
}
|
|
251
268
|
|
|
252
269
|
try {
|
|
270
|
+
let _pendingRequests = _getPendingRequests();
|
|
253
271
|
_pendingRequests[cacheKey] = null;
|
|
254
272
|
delete _pendingRequests[cacheKey];
|
|
255
273
|
} catch (ex) {
|
|
@@ -477,6 +495,7 @@ export function GetJson<T>(url: string, body?: IRequestBody, options?: IRestOpti
|
|
|
477
495
|
|
|
478
496
|
/** if you detected a change that invalidates all requests stored in memory - this will clear all in-memory cached results */
|
|
479
497
|
export function GetJsonClearCache() {
|
|
498
|
+
let _cachedResults = _getCachedResults();
|
|
480
499
|
Object.keys(_cachedResults).forEach(key => {
|
|
481
500
|
delete _cachedResults[key];
|
|
482
501
|
});
|
package/src/utils/script.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isDebug } from "../helpers/debug";
|
|
2
|
+
import { noop } from "../helpers/objects";
|
|
3
|
+
import { isNotEmptyArray, isNullOrEmptyString, isNullOrUndefined } from "../helpers/typecheckers";
|
|
4
|
+
import { IKnownScript, ksGlobal } from "../types/knownscript.types";
|
|
2
5
|
import Sod from "./sod";
|
|
3
6
|
|
|
4
7
|
export interface IScriptUtils {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isISODate, isISODateUTC } from "../../helpers/date";
|
|
2
|
+
import { isDate, isNullOrEmptyString, isNullOrUndefined } from "../../helpers/typecheckers";
|
|
3
|
+
import { DateOrNull } from "../../types/common.types";
|
|
2
4
|
import { toIsoDateFormat } from "../date";
|
|
3
5
|
import { LocaleKnownScript } from "../knownscript";
|
|
4
6
|
import { SPServerLocalTimeToUTCSync } from "./web";
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsonStringify } from "../../helpers/json";
|
|
2
|
+
import { isNotEmptyArray, isNullOrEmptyString, isNullOrUndefined, isNumber, isNumeric, newGuid } from "../../helpers/typecheckers";
|
|
3
|
+
import { encodeURIComponentEX, makeServerRelativeUrl, normalizeUrl } from "../../helpers/url";
|
|
4
|
+
import { IDictionary } from "../../types/common.types";
|
|
5
|
+
import { IRequestBody, IRestOptions, IRestResponseType, jsonTypes } from "../../types/rest.types";
|
|
6
|
+
import { IFolderBasicInfo, IFolderInfo } from "../../types/sharepoint.types";
|
|
7
|
+
import { FileLevel, IFileInfo, ModerationStatus } from "../../types/sharepoint.utils.types";
|
|
2
8
|
import { ConsoleLogger } from "../consolelogger";
|
|
3
9
|
import { GetJson, GetJsonSync, longLocalCache, mediumLocalCache, noLocalCache, shortLocalCache } from "../rest";
|
|
4
10
|
import { GetRestBaseUrl, GetSiteUrl } from "./common";
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { chunkArray } from "../../helpers/collections.base";
|
|
2
|
+
import { hasOwnProperty } from "../../helpers/objects";
|
|
3
|
+
import { promiseNParallel } from "../../helpers/promises";
|
|
4
|
+
import { isBoolean, isDate, isNotEmptyArray, isNullOrEmptyArray, isNullOrEmptyString, isNullOrUndefined, isNumber, isObject, isString } from "../../helpers/typecheckers";
|
|
5
|
+
import { encodeURIComponentEX } from "../../helpers/url";
|
|
6
|
+
import { IDictionary } from "../../types/common.types";
|
|
7
|
+
import { jsonTypes } from "../../types/rest.types";
|
|
8
|
+
import { DateTimeFieldFormatType, IAttachmentInfo, IFieldCurrencyInfo, IFieldDateTimeInfo, IFieldInfoEX, IFieldNumberInfo, TaxonomyValueType } from "../../types/sharepoint.types";
|
|
9
|
+
import { IRestItem } from "../../types/sharepoint.utils.types";
|
|
1
10
|
import { LocaleKnownScript } from "../../utils/knownscript";
|
|
2
|
-
import { DateTimeFieldFormatType, IAttachmentInfo, IDictionary, IFieldCurrencyInfo, IFieldDateTimeInfo, IFieldInfoEX, IFieldNumberInfo, IRestItem, TaxonomyValueType, chunkArray, encodeURIComponentEX, hasOwnProperty, isBoolean, isDate, isNotEmptyArray, isNullOrEmptyArray, isNullOrEmptyString, isNullOrUndefined, isNumber, isObject, isString, jsonTypes, promiseNParallel } from "../_dependencies";
|
|
3
11
|
import { ConsoleLogger } from "../consolelogger";
|
|
4
12
|
import { GetJson, GetJsonSync } from "../rest";
|
|
5
13
|
import { GetFieldNameFromRawValues, GetSiteUrl, __getSPRestErrorData, getFieldNameForUpdate } from "./common";
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PushNoDuplicate, firstOrNull, makeUniqueArray, toHash } from "../../helpers/collections.base";
|
|
2
|
+
import { jsonStringify } from "../../helpers/json";
|
|
3
|
+
import { NormalizeListName, SPBasePermissions, SchemaXmlToJson, extendFieldInfo } from "../../helpers/sharepoint";
|
|
4
|
+
import { normalizeGuid } from "../../helpers/strings";
|
|
5
|
+
import { SafeIfElse, isBoolean, isNotEmptyArray, isNullOrEmptyArray, isNullOrEmptyString, isNullOrUndefined, isNumber, isPromise, isString, isValidGuid } from "../../helpers/typecheckers";
|
|
6
|
+
import { makeServerRelativeUrl, normalizeUrl } from "../../helpers/url";
|
|
7
|
+
import { IDictionary } from "../../types/common.types";
|
|
8
|
+
import { IRestOptions, contentTypes, jsonTypes } from "../../types/rest.types";
|
|
9
|
+
import { BaseTypes, FieldTypeAsString, FieldTypes, IFieldInfo, IFieldInfoEX, IFieldInfoExHash, IFieldJsonSchema, IFieldLookupInfo, ISPEventReceiver, ListTemplateTypes, PageType, SPBasePermissionKind } from "../../types/sharepoint.types";
|
|
10
|
+
import { GeListItemsFoldersBehaviour, IListWorkflowAssociation, IRestItem, ListExperienceOptions, iContentType, iList, iListView } from "../../types/sharepoint.utils.types";
|
|
2
11
|
import { ConsoleLogger } from "../consolelogger";
|
|
3
12
|
import { GetJson, GetJsonSync, longLocalCache, shortLocalCache } from "../rest";
|
|
4
13
|
import { GetRestBaseUrl, GetSiteUrl, LIST_EXPAND, LIST_SELECT } from "./common";
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsLocalDev } from "../../../_dependencies";
|
|
2
|
+
import { chunkArray, firstIndexOf, firstOrNull, makeUniqueArray, toHash } from "../../../helpers/collections.base";
|
|
3
|
+
import { EnsureViewFields, GetOrderByFromCaml, RemoveOrderByFromCaml, getFieldOutputType } from "../../../helpers/sharepoint";
|
|
4
|
+
import { isDate, isNotEmptyArray, isNullOrEmptyArray, isNullOrEmptyString, isNullOrNaN, isNullOrUndefined, isNumeric } from "../../../helpers/typecheckers";
|
|
5
|
+
import { encodeURIComponentEX } from "../../../helpers/url";
|
|
6
|
+
import { IDictionary } from "../../../types/common.types";
|
|
7
|
+
import { jsonTypes } from "../../../types/rest.types";
|
|
8
|
+
import { IFieldInfoEX } from "../../../types/sharepoint.types";
|
|
9
|
+
import { GeListItemsFoldersBehaviour, IRestItem } from "../../../types/sharepoint.utils.types";
|
|
2
10
|
import { ConsoleLogger } from "../../consolelogger";
|
|
3
11
|
import { GetJson } from "../../rest";
|
|
4
12
|
import { GetSiteUrl, __getSPRestErrorData } from "../common";
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { chunkArray } from "../../../helpers/collections.base";
|
|
2
|
+
import { getGlobal, jsonClone } from "../../../helpers/objects";
|
|
3
|
+
import { isBoolean, isNotEmptyArray, isNullOrEmptyArray, isNullOrUndefined, isNumber } from "../../../helpers/typecheckers";
|
|
4
|
+
import { jsonTypes } from "../../../types/rest.types";
|
|
5
|
+
import { IRestItem } from "../../../types/sharepoint.utils.types";
|
|
2
6
|
import { GetJson, GetJsonSync } from "../../rest";
|
|
3
7
|
import { GetListRestUrl } from "../list";
|
|
4
8
|
|
|
5
|
-
|
|
6
|
-
getItemsByIdCache: {}
|
|
7
|
-
}
|
|
9
|
+
function _getGlobalCache() {
|
|
10
|
+
let _cache = getGlobal<{ getItemsByIdCache: { [cachekey: string]: IRestItem[]; }; }>("SharePoint_Rest_List_Cache", {
|
|
11
|
+
getItemsByIdCache: {}
|
|
12
|
+
});
|
|
13
|
+
return _cache;
|
|
14
|
+
}
|
|
8
15
|
|
|
9
16
|
/** return array will use the item ID as indexer, not a real array */
|
|
10
17
|
export async function GetItemsById<T extends IRestItem>(siteUrl: string, listIdOrTitle: string, itemIds: number[], options?: {
|
|
@@ -129,6 +136,7 @@ export function GetItemsByIdSync<T extends IRestItem>(siteUrl: string, listIdOrT
|
|
|
129
136
|
}
|
|
130
137
|
|
|
131
138
|
function _addCacheItem<T extends IRestItem>(cacheKey: string, item: T) {
|
|
139
|
+
let g_cache = _getGlobalCache();
|
|
132
140
|
if (isNullOrUndefined(g_cache.getItemsByIdCache[cacheKey])) {
|
|
133
141
|
g_cache.getItemsByIdCache[cacheKey] = [];
|
|
134
142
|
}
|
|
@@ -136,6 +144,7 @@ function _addCacheItem<T extends IRestItem>(cacheKey: string, item: T) {
|
|
|
136
144
|
}
|
|
137
145
|
|
|
138
146
|
function _getCacheItem<T extends IRestItem>(cacheKey: string, itemId: number) {
|
|
147
|
+
let g_cache = _getGlobalCache();
|
|
139
148
|
if (isNullOrUndefined(g_cache.getItemsByIdCache[cacheKey])) {
|
|
140
149
|
g_cache.getItemsByIdCache[cacheKey] = [];
|
|
141
150
|
}
|
|
@@ -148,6 +157,7 @@ function _getCacheItem<T extends IRestItem>(cacheKey: string, itemId: number) {
|
|
|
148
157
|
}
|
|
149
158
|
|
|
150
159
|
function _refreshCache(cacheKey: string) {
|
|
160
|
+
let g_cache = _getGlobalCache();
|
|
151
161
|
g_cache.getItemsByIdCache[cacheKey] = [];
|
|
152
162
|
}
|
|
153
163
|
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lastIndexOf, toHash } from "../../../helpers/collections.base";
|
|
2
|
+
import { isNotEmptyArray, isNullOrEmptyString, isNullOrUndefined, isNumber } from "../../../helpers/typecheckers";
|
|
3
|
+
import { IDictionary } from "../../../types/common.types";
|
|
4
|
+
import { jsonTypes } from "../../../types/rest.types";
|
|
5
|
+
import { FileSystemObjectTypes, IFieldInfoEX, IFieldLookupInfo } from "../../../types/sharepoint.types";
|
|
6
|
+
import { GeListItemsFoldersBehaviour, IRestItem } from "../../../types/sharepoint.utils.types";
|
|
2
7
|
import { ConsoleLogger } from "../../consolelogger";
|
|
3
8
|
import { DecodeFieldValuesAsTextKey, GetFieldNameFromRawValues } from "../common";
|
|
4
9
|
import { GetItemsByIdSync } from "./GetListItemsById";
|
|
@@ -2,7 +2,7 @@ import { waitFor } from "../../helpers/browser";
|
|
|
2
2
|
import { isNullOrEmptyArray, isNullOrEmptyString, isNullOrUndefined, isTypeofFullNameUndefined } from "../../helpers/typecheckers";
|
|
3
3
|
import { SPFxAuthTokenType } from "../../types/auth";
|
|
4
4
|
import { IMeetingLocation, IMeetingLocationEntityType } from "../../types/location.types";
|
|
5
|
-
import { jsonTypes } from "
|
|
5
|
+
import { jsonTypes } from "../../types/rest.types";
|
|
6
6
|
import { GetSPFxClientAuthToken } from "../auth/common";
|
|
7
7
|
import { GetJson, shortLocalCache } from "../rest";
|
|
8
8
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isNullOrEmptyString, isNullOrUndefined } from "../../helpers/typecheckers";
|
|
2
|
+
import { INavLinkInfo } from "../../types/sharepoint.types";
|
|
2
3
|
import { ConsoleLogger } from "../consolelogger";
|
|
3
4
|
import { GetJson } from "../rest";
|
|
4
5
|
import { GetRestBaseUrl, GetSiteUrl } from "./common";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { firstIndexOf } from "../../helpers/collections.base";
|
|
2
|
+
import { contentTypes, jsonTypes } from "../../types/rest.types";
|
|
3
|
+
import { PrincipalType } from "../../types/sharepoint.types";
|
|
4
|
+
import { IUserInfo } from "../../types/sharepoint.utils.types";
|
|
2
5
|
import { GetJson } from "../rest";
|
|
3
6
|
import { EnsureUser } from "./user";
|
|
4
7
|
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsonStringify } from "../../helpers/json";
|
|
2
|
+
import { ISPPeoplePickerControlFormEntity, IsSPPeoplePickerControlFormEntity, getPrincipalTypeFromPickerEntity } from "../../helpers/sharepoint";
|
|
3
|
+
import { isNullOrEmptyArray, isNullOrEmptyString, isNullOrNaN, isNullOrUndefined, isNumber } from "../../helpers/typecheckers";
|
|
4
|
+
import { encodeURIComponentEX } from "../../helpers/url";
|
|
5
|
+
import { contentTypes, jsonTypes } from "../../types/rest.types";
|
|
6
|
+
import { ISiteGroupInfo, PrincipalType } from "../../types/sharepoint.types";
|
|
7
|
+
import { IGroupInfo, IUserInfo } from "../../types/sharepoint.utils.types";
|
|
2
8
|
import { ConsoleLogger } from "../consolelogger";
|
|
3
9
|
import { GetJson, GetJsonSync, longLocalCache, shortLocalCache } from "../rest";
|
|
4
10
|
import { GetRestBaseUrl, GetSiteUrl } from "./common";
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { sortArray } from "../../helpers/collections.base";
|
|
2
|
+
import { jsonStringify } from "../../helpers/json";
|
|
3
|
+
import { getGlobal } from "../../helpers/objects";
|
|
4
|
+
import { SPBasePermissions, extendFieldInfo } from "../../helpers/sharepoint";
|
|
5
|
+
import { normalizeGuid } from "../../helpers/strings";
|
|
6
|
+
import { isDate, isNotEmptyArray, isNullOrEmptyArray, isNullOrEmptyString, isNullOrNaN, isNullOrUndefined, isNumeric, isString, isTypeofFullNameNullOrUndefined, isValidGuid } from "../../helpers/typecheckers";
|
|
7
|
+
import { makeFullUrl, makeServerRelativeUrl, normalizeUrl } from "../../helpers/url";
|
|
8
|
+
import { IDictionary } from "../../types/common.types";
|
|
9
|
+
import { IRestOptions, jsonTypes } from "../../types/rest.types";
|
|
10
|
+
import { IContextWebInformation, IFieldInfoEX, IFolderInfo, IRententionLabel, ISiteGroupInfo, IUserCustomActionInfo, IWebInfo, SPBasePermissionKind } from "../../types/sharepoint.types";
|
|
11
|
+
import { IAppTile, IGroupInfo, IRestRoleDefinition, IRootWebInfo, ISiteInfo, ITimeZone, IUserInfo, IWebBasicInfo, IWebRegionalSettings, WebTypes, iContentType, iList } from "../../types/sharepoint.utils.types";
|
|
12
|
+
import { AutoDiscoverTenantInfo } from "../auth/discovery";
|
|
2
13
|
import { ConsoleLogger } from "../consolelogger";
|
|
3
14
|
import { toIsoDateFormat } from "../date";
|
|
4
|
-
import { AutoDiscoverTenantInfo } from "../exports-index";
|
|
5
15
|
import { GetJson, GetJsonSync, longLocalCache, mediumLocalCache, noLocalCache, shortLocalCache, weeekLongLocalCache } from "../rest";
|
|
6
16
|
import { CONTENT_TYPES_SELECT, CONTENT_TYPES_SELECT_WITH_FIELDS, GetRestBaseUrl, GetSiteUrl, LIST_EXPAND, LIST_SELECT, WEB_SELECT, hasGlobalContext } from "./common";
|
|
7
17
|
import { GetListFields, GetListFieldsSync, GetListRestUrl } from "./list";
|
package/src/utils/sod.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isDebug } from "../helpers/debug";
|
|
2
|
+
import { getFromFullName, isFunction, isNullOrEmptyString, isNullOrUndefined, isString, isTypeofFullNameNullOrUndefined, typeofFullName } from "../helpers/typecheckers";
|
|
3
|
+
import { ksGlobal } from "../types/knownscript.types";
|
|
2
4
|
|
|
3
5
|
declare global {
|
|
4
6
|
interface Window {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_dependencies.js","sourceRoot":"","sources":["../src/_dependencies.ts"],"names":[],"mappings":";;;AACW,QAAA,WAAW,GAAG,OAAO,CAAC;AACtB,QAAA,UAAU,GAAG,KAAK,CAAC;AACnB,QAAA,aAAa,GAAG,KAAK,CAAC;AACjC,SAAgB,eAAe,CAAC,MAI/B;IACG,IAAI,OAAO,MAAM,CAAC,WAAW,KAAK,QAAQ;QAAE,mBAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IAC7E,IAAI,OAAO,MAAM,CAAC,UAAU,KAAK,SAAS;QAAE,kBAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IAC3E,IAAI,OAAO,MAAM,CAAC,aAAa,KAAK,QAAQ;QAAE,qBAAa,GAAG,MAAM,CAAC,aAAa,CAAC;AACvF,CAAC;AARD,0CAQC"}
|
package/dist/config.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAClD,yDAAsD;AAEtD,SAAgB,MAAM,CAAC,MAKtB;IACG,IAAA,+BAAe,EAAC,MAAM,CAAC,CAAC;IACxB,SAAS,SAAS,CAAC,IAAY;QAC3B,OAAO,6BAAa,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IACvD,CAAC;IACD,OAAO;QACH,MAAM,EAAE,SAAS;KACpB,CAAA;AACL,CAAC;AAbD,wBAaC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exports-index.js","sourceRoot":"","sources":["../src/exports-index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,wDAAsC;AACtC,2CAAyB"}
|
package/dist/helpers/Guid.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Guid.js","sourceRoot":"","sources":["../../src/helpers/Guid.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,iDAAwE;AAExE,MAAa,IAAI;IAUb;;;OAGG;IACH,YAAY,IAAI;QA2IhB;;;;;;WAMG;QACI,aAAQ,GAAG;YACd,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC,CAAA;QAnJG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,OAAO,CAAC,qBAAqB;QACvC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC/D,CAAC;IACD;;;;;;;;;;;;;;;;;OAiBG;IACI,MAAM,CAAC,KAAK,CAAC,UAAU;QAC1B,IAAI,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,MAAM,IAAI,KAAK,CAAC,4BAA4B,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