Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
144be55
logs in interpretAPI
Nandini0422 May 19, 2020
2eeeed7
another api interact
Nandini0422 May 19, 2020
2a52863
addition of JOS.tracker
Nandini0422 May 25, 2020
dd9f637
extra code elimination
Nandini0422 May 25, 2020
4adc051
diff --
Nandini0422 May 25, 2020
75f914c
diff --
Nandini0422 May 25, 2020
e5fad12
Merge branch 'update/Logs' of https://bitbucket.org/juspay/purescript…
Nandini0422 May 25, 2020
4dd0e84
file structure change
Nandini0422 May 25, 2020
7e4849c
fixing log
Nandini0422 May 26, 2020
f5b462e
_trackException
Nandini0422 May 26, 2020
939da1f
making _trackException a pure function
Nandini0422 May 26, 2020
1480f4c
js changes for trackException
Nandini0422 May 26, 2020
8fe95d6
Merged in update/Logs (pull request #3)
Nandini0422 May 26, 2020
24cb7d1
changes in sync with parameter change in tracker module
Nandini0422 Jun 12, 2020
84712f7
add a check for JOS being defined
rar-juspay Jun 15, 2020
28bad5e
Merged in bugfix/web-fixes (pull request #5)
rar-juspay Jun 15, 2020
ba098a0
Merged in add/logs (pull request #4)
Nandini0422 Jun 18, 2020
9bc2cb1
update dependancy
JamesGeorg Jun 28, 2020
4ae73f2
Merge branch 'master' of https://bitbucket.org/juspay/purescript-presto
JamesGeorg Jun 28, 2020
d14d3c5
..
JamesGeorg Jun 28, 2020
0929318
Merged in updateDeps (pull request #6)
JamesGeorg Jun 28, 2020
d820f76
Revert presto
JamesGeorg Jul 8, 2020
e45178a
Merged in revertDeps (pull request #7)
JamesGeorg Jul 8, 2020
0dfa95e
fg10
JamesGeorg Oct 10, 2020
e76fbfa
PICAF-3451
JamesGeorg Feb 5, 2021
cfe47d5
PICAF-3451 :: Added standard encode
JamesGeorg Feb 6, 2021
348cbc5
PICAF-3839 Added encryption module for sharedprefs
kashif-m Mar 4, 2021
432245d
PICAF-3451 :: Fix standard Encode
JamesGeorg Mar 7, 2021
e308ab7
PICAF-3451 :: standard encode record bug fix
JamesGeorg Mar 7, 2021
2911eeb
PICAF-3839 added JOS function for removeDataFromSharedPrefs
kashif-m Apr 22, 2021
cdcff4e
Merged in PICAF-3839 (pull request #9)
kashif-m Apr 29, 2021
dc1d404
PICAF-3839 fix
kashif-m Apr 30, 2021
6459b56
PICAF-4269 exposed setLogFields and getLogFields
shivamashtikar Apr 8, 2021
5ca909c
PICAF-4269 added object foreign in state
shivamashtikar Apr 20, 2021
a37d9a4
PICAF-4269 Added a default State function
May 6, 2021
f4e33d7
PICAF-4985 : added debug dependency
May 8, 2021
939f0cf
Merged in feature/PICAF-4269-exposed-function-for-log-information (pu…
SauravCVJuspay May 17, 2021
5a0bcd3
Merge branch 'master' into PICAF-3451
shivamashtikar May 17, 2021
4cd8642
PICAF-3839 added try catch
kashif-m May 18, 2021
ebca435
Merged in PICAF-3839 (pull request #12)
kashif-m May 18, 2021
1bd657d
Merge branch 'master' into PICAF-3451
shivamashtikar Jun 7, 2021
7d6991c
PICAF-5359 :: dynamic state changes synced with master
JamesGeorg Sep 20, 2021
bad0dd8
PICAF-5979 request as string support in API calls + warning--
Nandini0422 Sep 23, 2021
7a4b37b
PICAF-5979 exporting defaultMakeRequestString
Nandini0422 Sep 23, 2021
27fa2b4
PICAF-6764 :: Fixed callAPI decode logic
JamesGeorg Sep 29, 2021
da90515
PICAF-6852 added support for terminating forked flow
shivamashtikar Oct 6, 2021
b638307
PICAF-7148 exposed function to acess fiber
shivamashtikar Oct 28, 2021
4885346
PICAF-7343 :: Add string decode support
monali-n Nov 18, 2021
889028b
PICAF-9805 Added logs for backend resp
SauravCVJuspay Mar 8, 2022
41c1925
PICAF-10310 making backend log optional in apiInteract
avi892nash-juspay Mar 16, 2022
404ab6d
PICAF-17749 trackAction check added
SauravCVJuspay Nov 3, 2022
16594a5
ci: PICAF-19105: Jenkins configuration added for compilation and version
shivamashtikar Dec 22, 2022
67a5b99
build: PICAF-19105: added purescript and pulp dependency
shivamashtikar Dec 22, 2022
d3d88bd
feat: PICAF-18952: Shifted Presto to PS15
avi892nash-juspay Dec 26, 2022
3510de0
chore(release): 2.0.0 [skip ci]
Dec 26, 2022
8b899de
fix: PICAF-19105: adding branch rule in Jenkins
avi892nash-juspay Dec 26, 2022
1ac2730
chore(release): 2.0.1 [skip ci]
Dec 27, 2022
3883e37
fix: PICAF-18952: Updating es-lint rules and adding eslint:fix command
anuragdvd Jan 2, 2023
1e06f41
chore(release): 2.0.2 [skip ci]
Jan 6, 2023
b6c4a8b
chore: PICAF-19932: updating urls to Juspay Bitbucket server url
shivamashtikar Jan 23, 2023
db2a173
chore: PICAF-19932: updating Git credentials in Jenkinsfile
shivamashtikar Jan 24, 2023
a99d323
feat: PICAF-20619: Timeout for API's
Feb 27, 2023
5c85309
chore(release): 2.1.0 [skip ci]
Mar 23, 2023
5d4ae68
feat: PICAF-22934: Added API-fallback url
Jun 15, 2023
fe8bbba
fix: PICAF-22934: Passing mkURL function to construct url at presto end
Jun 20, 2023
58288e6
chore(release): 2.2.0 [skip ci]
Jun 26, 2023
1cbe852
fix: PICAF-22934: Logging the success api url
Jun 27, 2023
e4fb74a
chore(release): 2.2.1 [skip ci]
Jun 27, 2023
2269924
removed un neccessary restrcition for RestEndpoint
RitikaHanish Jun 4, 2024
8c10bbc
Merge pull request #53 from RitikaHanish/update/github-purescript-presto
kavya-shree-s Jun 5, 2024
4639252
revert of restEndpointChange
RitikaHanish Jun 5, 2024
2d5e69f
Merge pull request #54 from RitikaHanish/update/github-purescript-presto
kavya-shree-s Jun 5, 2024
64b1403
refactor: PICAF-3213: removed un-necessary response type constraints
RitikaHanish Jul 17, 2024
3bd8081
Merge pull request #55 from RitikaHanish/update/github-purescript-presto
kavya-shree-s Aug 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"env": { "browser": true, "es2015": true },
"extends": "eslint:recommended",
"parserOptions": { "ecmaVersion": 2015, "sourceType": "module" },
"rules": {
"block-scoped-var": "error",
"no-caller": "error",
"no-extra-parens": "off",
"no-extend-native": "error",
"no-loop-func": "error",
"no-new": "error",
"no-return-assign": "error",
"no-sequences": "error",
"no-shadow": "error",
"no-unused-expressions": "error",
"no-undef": "error",
"no-eq-null": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"quotes": ["error", "double"],
"strict": ["error", "global"],
"no-unused-vars": "off",
"no-empty": "off",
"radix": "off",
"no-param-reassign": "off",
"eqeqeq": "off",
"no-bitwise": "off",
"consistent-return": "off",
"guard-for-in": "off",
"no-mixed-spaces-and-tabs": "off",
"no-use-before-define": "off",
"no-dupe-keys": "off"
}
}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/bower_components/
/.pulp-cache/
/output/
/output/
.psc-ide-port
/.psci_modules
/Session.vim
/node_modules
9 changes: 9 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

BRANCH_NAME=$(git branch | grep '*' | sed 's/* //')

if [[ $BRANCH_NAME != *"no branch"* ]]
then
npx --no -- commitlint --edit "${1}"
fi
12 changes: 12 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# Adding hooks to prepare commit message.
# This hook triggers Jira input modules.
# Helps in maintaining code compatblity.

BRANCH_NAME=$(git branch | grep '*' | sed 's/* //')

if [[ $BRANCH_NAME != *"no branch"* ]]
then
exec < /dev/tty && node_modules/.bin/git-cz --hook || true
fi
10 changes: 10 additions & 0 deletions .tidyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"importSort": "source",
"importWrap": "source",
"indent": 2,
"operatorsFile": null,
"ribbon": 1,
"typeArrowPlacement": "first",
"unicode": "never",
"width": null
}
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## [2.2.1](https://ssh.bitbucket.juspay.net/picaf/purescript-presto/compare/v2.2.0...v2.2.1) (2023-06-27)


### Bug Fixes

* PICAF-22934: Logging the success api url ([1cbe852](https://ssh.bitbucket.juspay.net/picaf/purescript-presto/commit/1cbe852ae359850a390fbaf9ba64bb7281ab4323))

# [2.2.0](https://ssh.bitbucket.juspay.net/picaf/purescript-presto/compare/v2.1.0...v2.2.0) (2023-06-26)


### Bug Fixes

* PICAF-22934: Passing mkURL function to construct url at presto end ([fe8bbba](https://ssh.bitbucket.juspay.net/picaf/purescript-presto/commit/fe8bbba4f2a56400c53f9c9f55b2bfb694c4062a))


### Features

* PICAF-22934: Added API-fallback url ([5d4ae68](https://ssh.bitbucket.juspay.net/picaf/purescript-presto/commit/5d4ae6895527b90a3cefdf49d4f442c1afbfd9dc))

# [2.1.0](https://ssh.bitbucket.juspay.net/picaf/purescript-presto/compare/v2.0.2...v2.1.0) (2023-03-23)


### Features

* PICAF-20619: Timeout for API's ([a99d323](https://ssh.bitbucket.juspay.net/picaf/purescript-presto/commit/a99d32302f2ff31658d1cb534ef5f561e5642d8e))

## [2.0.2](https://bitbucket.org/juspay/purescript-presto/compare/v2.0.1...v2.0.2) (2023-01-06)


### Bug Fixes

* PICAF-18952: Updating es-lint rules and adding eslint:fix command ([3883e37](https://bitbucket.org/juspay/purescript-presto/commits/3883e3722043fc53f3bb100667dd7c2d50f4ac94))

## [2.0.1](https://bitbucket.org/juspay/purescript-presto/compare/v2.0.0...v2.0.1) (2022-12-27)


### Bug Fixes

* PICAF-19105: adding branch rule in Jenkins ([8b899de](https://bitbucket.org/juspay/purescript-presto/commits/8b899de86870ffbbefd5f36ad3854dd7342cdb49))

# [2.0.0](https://bitbucket.org/juspay/purescript-presto/compare/v1.2.0...v2.0.0) (2022-12-26)


### Features

* PICAF-18952: Shifted Presto to PS15 ([d3d88bd](https://bitbucket.org/juspay/purescript-presto/commits/d3d88bd9e8b226a7f2fdc256a44c1e8d4559fb25))


### BREAKING CHANGES

* Purescript version is changing to v0.15.6
61 changes: 61 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
def isVersionBumpCandidateBranch(branch) {
(branch =~ /(main|hotfix-)/)
}

pipeline {
agent {
label "sdk"
}
environment {
NPM_REPO_NAME = "purescript-presto"
GIT_AUTHOR_NAME = 'jenkins.user'
GIT_AUTHOR_EMAIL = '[email protected]'
GIT_COMMITTER_NAME = 'jenkins.user'
GIT_COMMITTER_EMAIL = '[email protected]'
GIT_USERNAME = 'jenkins.user'
GIT_EMAIL = '[email protected]'

}

stages {
stage('Checkout') {
steps {
scmSkip(deleteBuild: false, skipPattern:'.*\\[skip ci\\].*')
script {
if (sh(script: "git log -1 --pretty=%B | grep -F -ie '[skip ci]' -e '[ci skip]'", returnStatus: true) == 0) {
currentBuild.result = 'ABORTED'
error 'Aborting because commit message contains [skip ci]'
}
}
}
}

stage("npm/spago install") {
steps {
script {
sh ("npm config set package-lock=false; npm i")
sh ("npm run spago:install")
}
}
}

stage("PS compilation") {
steps {
script {
// build packages to ensure compilation / tests work fine before updating version
sh ("npm run compile")
}
}
}

stage("npm release") {
steps {
script {
if (isVersionBumpCandidateBranch(env.BRANCH_NAME)) {
sh ("npx semantic-release --debug")
}
}
}
}
}
}
36 changes: 18 additions & 18 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@
"tests"
],
"dependencies": {
"purescript-prelude": "^4.0.0",
"purescript-aff": "^5.0.0",
"purescript-avar": "^3.0.0",
"purescript-console": "^4.1.0",
"purescript-control": "^4.0.0",
"purescript-datetime": "^4.0.0",
"purescript-exceptions": "^4.0.0",
"purescript-exists": "^4.0.0",
"purescript-free": "^5.0.0",
"purescript-foreign-generic": "^7.0.0",
"purescript-foreign-object": "^1.0.0",
"purescript-generics-rep": "^6.0.0",
"purescript-transformers": "^4.1.0",
"purescript-record": "^1.0.0",
"purescript-typelevel-prelude": "^3.0.0",
"purescript-tuples": "^5.0.0"
"purescript-prelude": "^6.0.0",
"purescript-aff": "^7.0.0",
"purescript-avar": "^5.0.0",
"purescript-console": "^6.0.0",
"purescript-control": "^6.0.0",
"purescript-datetime": "^6.0.0",
"purescript-exceptions": "^6.0.0",
"purescript-exists": "^6.0.0",
"purescript-free": "^7.0.0",
"purescript-foreign-generic": "[email protected]:picaf/purescript-foreign-generic.git#v12.0.0",
"purescript-transformers": "^6.0.0",
"purescript-foreign-object": "^4.0.0",
"purescript-record": "^4.0.0",
"purescript-typelevel-prelude": "^7.0.0",
"purescript-tuples": "^7.0.0",
"purescript-debug": "^6.0.0"
},
"devDependencies": {
"purescript-psci-support": "^4.0.0",
"purescript-spec": "^3.0.0"
"purescript-psci-support": "^6.0.0",
"purescript-spec": "^7.0.0"
},
"homepage": "https://github.com/juspay/purescript-presto",
"description": "eDSL for writing Apps",
Expand Down
Loading