diff --git a/package-lock.json b/package-lock.json index bf8d42581..1f24a665d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "6.0.2", "license": "MIT", "dependencies": { - "beauty-amp-core2": "0.4.5", + "beauty-amp-core2": "0.4.6", "cli-progress": "3.12.0", "command-exists": "1.2.9", "conf": "12.0.0", @@ -1068,9 +1068,9 @@ ] }, "node_modules/beauty-amp-core2": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/beauty-amp-core2/-/beauty-amp-core2-0.4.5.tgz", - "integrity": "sha512-mhmHf8/6qf1yCdqkL66j9T3C5Z0Q+jP+XWK6ajnA+L/cG3bEjnN6ywRy97eSzij5JVSRNxs8w2857whB6+o5jw==", + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/beauty-amp-core2/-/beauty-amp-core2-0.4.6.tgz", + "integrity": "sha512-kEyX5uhmRU28Zy0uAcceHOoU7PZXXMuKUuuP0y7iMMSwluZrsRxhMcy23EEXJ+iASP9jQ/ffXavlfHc36yPvMg==", "dependencies": { "lodash": "^4.17.21", "prettier": "^2.8.8" diff --git a/package.json b/package.json index ac79363ec..6af2e9d6b 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "version:patch": "npm version --no-commit-hooks patch" }, "dependencies": { - "beauty-amp-core2": "0.4.5", + "beauty-amp-core2": "0.4.6", "cli-progress": "3.12.0", "command-exists": "1.2.9", "conf": "12.0.0", diff --git a/test/resources/9999999/transactionalSMS/build-expected.amp b/test/resources/9999999/transactionalSMS/build-expected.amp index 90327ec0e..cdf0c6b39 100644 --- a/test/resources/9999999/transactionalSMS/build-expected.amp +++ b/test/resources/9999999/transactionalSMS/build-expected.amp @@ -24,7 +24,7 @@ line3 SET @rx = '^\+((?:9[679]\d8[035789]\d|6[789]\d|5[90]\d|42\d|3[578]\d|2[1-689]\d)|9[0-58]|8[1246]|6[0-6]|5[1-8]|4[013-9]|3[0-469]|2[70]|7|1)' SET @prefix = concat('+', RegExMatch(@num, @rx, 1)) IF @count>0 THEN - FOR @I = 1 TO @COUNT DO + FOR @i = 1 TO @count DO SET @sk = Field(Row(@rs, @i), 'Id') IF Field(Row(@rs, 1), 'et4ae5__HasOptedOutOfMobile__c') == 'false' THEN SET @result = UpdateSingleSalesforceObject('Contact', @sk, 'et4ae5__HasOptedOutOfMobile__c', 'true') diff --git a/test/resources/9999999/transactionalSMS/get-expected.amp b/test/resources/9999999/transactionalSMS/get-expected.amp index 550ecfdd8..47307e6c5 100644 --- a/test/resources/9999999/transactionalSMS/get-expected.amp +++ b/test/resources/9999999/transactionalSMS/get-expected.amp @@ -24,7 +24,7 @@ line3 SET @rx = '^\+((?:9[679]\d8[035789]\d|6[789]\d|5[90]\d|42\d|3[578]\d|2[1-689]\d)|9[0-58]|8[1246]|6[0-6]|5[1-8]|4[013-9]|3[0-469]|2[70]|7|1)' SET @prefix = concat('+', RegExMatch(@num, @rx, 1)) IF @count>0 THEN - FOR @I = 1 TO @COUNT DO + FOR @i = 1 TO @count DO SET @sk = Field(Row(@rs, @i), 'Id') IF Field(Row(@rs, 1), 'et4ae5__HasOptedOutOfMobile__c') == 'false' THEN SET @result = UpdateSingleSalesforceObject('Contact', @sk, 'et4ae5__HasOptedOutOfMobile__c', 'true') diff --git a/test/resources/9999999/transactionalSMS/patch-expected.amp b/test/resources/9999999/transactionalSMS/patch-expected.amp index e1ef91076..9c94b4199 100644 --- a/test/resources/9999999/transactionalSMS/patch-expected.amp +++ b/test/resources/9999999/transactionalSMS/patch-expected.amp @@ -18,7 +18,7 @@ SET @rx = '^\+((?:9[679]\d8[035789]\d|6[789]\d|5[90]\d|42\d|3[578]\d|2[1-689]\d)|9[0-58]|8[1246]|6[0-6]|5[1-8]|4[013-9]|3[0-469]|2[70]|7|1)' SET @prefix = concat('+', RegExMatch(@num, @rx, 1)) IF @count>0 THEN - FOR @I = 1 TO @COUNT DO + FOR @i = 1 TO @count DO SET @sk = Field(Row(@rs, @i), 'Id') IF Field(Row(@rs, 1), 'et4ae5__HasOptedOutOfMobile__c') == 'false' THEN SET @result = UpdateSingleSalesforceObject('Contact', @sk, 'et4ae5__HasOptedOutOfMobile__c', 'true') diff --git a/test/resources/9999999/transactionalSMS/post-expected.amp b/test/resources/9999999/transactionalSMS/post-expected.amp index b11a84731..a211011bd 100644 --- a/test/resources/9999999/transactionalSMS/post-expected.amp +++ b/test/resources/9999999/transactionalSMS/post-expected.amp @@ -18,7 +18,7 @@ SET @rx = '^\+((?:9[679]\d8[035789]\d|6[789]\d|5[90]\d|42\d|3[578]\d|2[1-689]\d)|9[0-58]|8[1246]|6[0-6]|5[1-8]|4[013-9]|3[0-469]|2[70]|7|1)' SET @prefix = concat('+', RegExMatch(@num, @rx, 1)) IF @count>0 THEN - FOR @I = 1 TO @COUNT DO + FOR @i = 1 TO @count DO SET @sk = Field(Row(@rs, @i), 'Id') IF Field(Row(@rs, 1), 'et4ae5__HasOptedOutOfMobile__c') == 'false' THEN SET @result = UpdateSingleSalesforceObject('Contact', @sk, 'et4ae5__HasOptedOutOfMobile__c', 'true') diff --git a/test/resources/9999999/transactionalSMS/template-expected.amp b/test/resources/9999999/transactionalSMS/template-expected.amp index 26bc6dc2f..d5aa49c01 100644 --- a/test/resources/9999999/transactionalSMS/template-expected.amp +++ b/test/resources/9999999/transactionalSMS/template-expected.amp @@ -24,7 +24,7 @@ line3 SET @rx = '^\+((?:9[679]\d8[035789]\d|6[789]\d|5[90]\d|42\d|3[578]\d|2[1-689]\d)|9[0-58]|8[1246]|6[0-6]|5[1-8]|4[013-9]|3[0-469]|2[70]|7|1)' SET @prefix = concat('+', RegExMatch(@num, @rx, 1)) IF @count>0 THEN - FOR @I = 1 TO @COUNT DO + FOR @i = 1 TO @count DO SET @sk = Field(Row(@rs, @i), 'Id') IF Field(Row(@rs, 1), 'et4ae5__HasOptedOutOfMobile__c') == 'false' THEN SET @result = UpdateSingleSalesforceObject('Contact', @sk, 'et4ae5__HasOptedOutOfMobile__c', 'true')