Andrew Petersen

Results 11 issues of Andrew Petersen

Thank you for creating such a cool tool! Is there currently a way to click on a file and find all of the other files that import/reference it?

Most developers exclude node_modules packages from their build process (typescript or es6). Therefore if you provide an ES6 module, that ES6 is getting injected straight into the bundle as is...

``` typescript export const processError = (err: Error): Error => { let message = err.message; try { message = JSON.parse(err.message)["odata.error"].message.value; } catch (_) {} throw new Error(message); }; ```

## Tasks - [x] Setup JEST w/ Typescript - [x] Test namespace - [x] Test Context - [x] Test Web - [x] Test List - [x] Test Profiles - [x]...

Add this? [https://codesnippets.dev/droopytersen/portalsdev/mms.ts](https://codesnippets.dev/droopytersen/portalsdev/mms.ts)

Where would they go on the SPScript global? ```javascript async function getSiteDesign(siteUrl, siteDesignName) { const ctx = SPScript.createContext(siteUrl); // GetSiteDesigns actually requires a POST let data = await ctx.authorizedPost( "/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.GetSiteDesigns"...

enhancement
v5.0

`ctx.themes` namespace? - getTheme(themeName) - getThemes() - applyTheme(themeName) - createTheme - deleteTheme ```javascript const findTheme = async function(siteUrl, themeName) { let ctx = SPScript.createContext(siteUrl); let response = await ctx.get("/thememanager/GetTenantThemingOptions").then(SPScript.utils.validateODataV2); let...

enhancement
v5.0