Skip to content

Commit

Permalink
Closes issue #302.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjandatta committed Oct 5, 2022
1 parent 22c8b34 commit f8bc555
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions @types/helper/spCfg.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ export interface ISPCfgListInfo {
/** The list creation information. */
ListInformation: ListProps;

/** The list url name. */
ListUrlName?: string;

/** The title default value. */
TitleFieldDefaultValue?: string;

Expand Down
3 changes: 3 additions & 0 deletions dist/gd-sprest.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3500,6 +3500,9 @@ declare module 'gd-sprest/helper/spCfg' {
/** The list creation information. */
ListInformation: ListProps;

/** The list url name. */
ListUrlName?: string;

/** The title default value. */
TitleFieldDefaultValue?: string;

Expand Down
2 changes: 1 addition & 1 deletion dist/gd-sprest.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/gd-sprest.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gd-sprest",
"version": "7.3.2",
"version": "7.3.3",
"description": "An easy way to develop against the SharePoint REST API.",
"author": "Gunjan Datta <[email protected]> (https://gunjandatta.github.io)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/helper/spCfg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export const SPConfig = (cfg: ISPConfigProps, webUrl?: string): ISPConfig => {
// Update the list name and remove spaces
let listInfo = cfgList.ListInformation;
let listName = listInfo.Title;
listInfo.Title = listName.replace(/ /g, "");
listInfo.Title = cfgList.ListUrlName || listName.replace(/ /g, "");

// Add the list
lists.add(listInfo)
Expand Down
2 changes: 1 addition & 1 deletion src/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IREST } from "../@types";
* SharePoint REST Library
*/
export const $REST: IREST = {
__ver: 7.32,
__ver: 7.33,
AppContext: (siteUrl: string) => { return Lib.Site.getAppContext(siteUrl); },
Apps: Lib.Apps,
ContextInfo: Lib.ContextInfo,
Expand Down

0 comments on commit f8bc555

Please sign in to comment.