Skip to content

Commit

Permalink
Release release-1_0_1
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicmarmionswrve committed Jul 14, 2022
1 parent aa2541e commit d8133b3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion SwrveCoreSDK/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swrve/web-core",
"version": "1.0.0",
"version": "1.0.1",
"description": "Swrve marketing engagement platform web core SDK",
"keywords": [
"swrve",
Expand Down
8 changes: 0 additions & 8 deletions SwrveCoreSDK/src/Swrve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1330,14 +1330,6 @@ export class Swrve {
if (/[Ss]wrve/.exec(name)) {
throw new Error(SwrveConstants.INVALID_EVENT_NAME);
}

if (name.length > 191) {
throw new Error(SwrveConstants.INVALID_EVENT_LENGTH);
}

if (name.indexOf(" ") !== -1) {
throw new Error(SwrveConstants.INVALID_SPACES);
}
}

private checkFirstUserInitiated(): void {
Expand Down
3 changes: 0 additions & 3 deletions SwrveCoreSDK/src/utils/SwrveConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,5 @@ export const APP_ID_ERROR =
export const INVALID_FUNCTION = "Please pass a valid function to $.";
export const GET_INSTANCE_ERROR = "Please call SwrveCoreSDK.getInstance() first.";
export const INVALID_EVENT_NAME = "Event name may not contain the word Swrve.";
export const INVALID_EVENT_LENGTH =
"Event name may not be more than 191 characters.";
export const INVALID_SPACES = "Event name may not include spaces.";
export const NO_SYNCHRONOUS_STORAGE = "Local Storage is not available.";
export const REQUIRED_DEPENDENCY_PLATFORM = "IPlatform implementation is a required dependency for Swrve SDK core."

0 comments on commit d8133b3

Please sign in to comment.