Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added $ulid Function for Dynamic Variable #1378

Open
wants to merge 111 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
b218cdf
Merge branch 'release/0.0.12-beta.1'
shamasis Apr 2, 2016
da6c152
Merge branch 'release/0.0.12'
Apr 4, 2016
d44da44
Merge branch 'develop'
Apr 7, 2016
189bb2f
Merge branch 'develop'
shamasis Jun 9, 2016
f5d463f
Merge branch 'master' of https://github.com/postmanlabs/postman-colle…
shamasis Jun 9, 2016
a1da6d9
Merge branch 'develop'
Jul 13, 2016
ec3ae0b
Merge branch 'develop'
Jul 21, 2016
94b5847
Merge branch 'develop'
Jul 26, 2016
c14c902
Merge branch 'develop'
Jul 31, 2016
6d3cf96
Merge branch 'release/0.4.11'
shamasis Aug 5, 2016
7690088
Merge branch 'release/v0.4.14'
kunagpal Aug 24, 2016
a8752a6
Merge branch 'develop'
Sep 20, 2016
6c4f878
Merge branch 'release/0.5.3-beta.1'
shamasis Sep 28, 2016
a239d76
Merge branch 'release/v0.5.3'
Sep 28, 2016
7d90d08
Merge branch 'release/v0.5.4'
Oct 6, 2016
bde89a7
Merge branch 'release/v0.5.5'
Oct 14, 2016
87f866e
Merge branch 'release/v0.5.6'
Nov 2, 2016
241405d
Merge branch 'release/v0.5.7'
Nov 17, 2016
d9f41e9
Merge branch 'release/v0.5.8'
Dec 14, 2016
bf6e975
Merge branch 'release/v0.5.9'
czardoz Dec 19, 2016
4ede157
Merge branch 'release/v0.5.10'
czardoz Dec 26, 2016
7887a73
Merge branch 'release/v0.5.11'
czardoz Jan 31, 2017
8f13ff6
Merge branch 'release/v0.5.12'
czardoz Feb 16, 2017
b626c21
Merge branch 'release/v0.5.13'
czardoz Feb 24, 2017
687616a
Merge branch 'release/v1.0.0'
czardoz Mar 6, 2017
9155bf3
Merge branch 'release/v1.0.1'
czardoz Mar 14, 2017
1a11b8d
Merge branch 'release/v1.0.2'
czardoz Mar 21, 2017
a34dd02
Merge branch 'release/v1.1.0'
czardoz Apr 3, 2017
8e02e67
Merge branch 'release/v1.1.1-beta.2'
czardoz Apr 12, 2017
a6fe770
Merge branch 'release/v1.2.0'
czardoz Apr 24, 2017
8ae3d63
Merge branch 'release/v1.2.1'
czardoz Apr 25, 2017
9b48872
Merge branch 'release/v1.2.2'
czardoz Apr 27, 2017
9cce8f5
Merge branch 'release/1.2.3'
kunagpal May 8, 2017
a6dd586
Merge branch 'release/v1.2.4'
czardoz May 9, 2017
7247569
Merge branch 'release/v1.2.5'
czardoz May 11, 2017
a5a67b4
Merge branch 'release/v1.2.6'
czardoz May 29, 2017
6e67549
Merge branch 'release/1.2.7'
kunagpal May 30, 2017
3356ce9
Merge branch 'release/v1.2.8'
czardoz May 31, 2017
9cd9934
Merge branch 'release/1.2.9'
kunagpal Jun 27, 2017
14f15fc
Merge branch 'release/2.0.0'
kunagpal Jul 3, 2017
ebebaaf
Merge branch 'release/2.0.1'
kunagpal Jul 3, 2017
0678320
Merge branch 'release/2.0.2'
kunagpal Jul 5, 2017
afa44cf
Merge branch 'release/2.1.0'
kunagpal Jul 18, 2017
bab6f31
Merge branch 'release/2.1.1'
kunagpal Aug 18, 2017
9c4b1d4
Merge branch 'release/2.1.2'
kunagpal Aug 21, 2017
45d091b
Merge branch 'release/2.1.3'
kunagpal Aug 28, 2017
a5bb731
Merge branch 'release/3.0.0'
kunagpal Sep 26, 2017
d50b41b
Merge branch 'release/3.0.1'
kunagpal Oct 12, 2017
ba4f576
Merge branch 'release/3.0.2'
kunagpal Nov 6, 2017
bc62160
Merge branch 'release/3.0.3'
kunagpal Nov 8, 2017
549bafc
Merge branch 'release/3.0.4'
kamalaknn Nov 20, 2017
6814e8e
Merge branch 'release/3.0.5'
kamalaknn Nov 23, 2017
aab12eb
Merge branch 'release/3.0.6'
kamalaknn Nov 30, 2017
2cd3a30
Merge branch 'release/3.0.7'
kunagpal Jan 14, 2018
2d915f5
Merge branch 'release/3.0.8'
kunagpal Mar 20, 2018
b12b5db
Merge branch 'develop'
kamalaknn May 16, 2018
90b72f3
Merge branch 'develop'
kamalaknn May 22, 2018
ec63751
Merge branch 'release/3.1.0'
kamalaknn Jun 28, 2018
7aadfbe
Merge branch 'develop'
kamalaknn Jun 28, 2018
33323e1
Merge branch 'release/3.1.1'
kamalaknn Jun 30, 2018
18a0581
Merge branch 'release/3.2.0'
kunagpal Aug 20, 2018
2d64dc5
Merge branch 'release/3.2.1'
kunagpal Sep 5, 2018
d10d8e1
Merge branch 'release/3.3.0'
kunagpal Sep 20, 2018
1789779
Merge branch 'release/3.4.0'
codenirvana Dec 6, 2018
cfc06e7
Merge branch 'release/3.4.1'
codenirvana Jan 2, 2019
1f910cb
Merge branch 'release/3.4.2'
codenirvana Feb 1, 2019
77fce3e
Merge branch 'release/3.4.3'
codenirvana Feb 15, 2019
7b9972c
Merge branch 'release/3.4.4'
codenirvana Feb 19, 2019
03a5e9c
Merge branch 'release/3.4.5'
codenirvana Mar 1, 2019
5824825
Merge branch 'release/3.4.6'
codenirvana Mar 19, 2019
3735c39
Merge branch 'release/3.4.7'
codenirvana Apr 8, 2019
e831707
Merge branch 'release/3.4.8'
codenirvana May 9, 2019
2bf558f
Merge branch 'release/3.4.9'
codenirvana Jun 7, 2019
dff3c75
Merge branch 'release/3.5.0'
codenirvana Jun 17, 2019
fe445cc
Merge branch 'release/3.5.1'
codenirvana Aug 1, 2019
ddcafe2
Merge branch 'release/3.5.2'
codenirvana Sep 3, 2019
7118acb
Merge branch 'release/3.5.3'
codenirvana Sep 6, 2019
25cabe6
Merge branch 'release/3.5.4'
codenirvana Oct 1, 2019
e9dc1b2
Merge branch 'release/3.5.5'
codenirvana Dec 2, 2019
41746e2
Merge branch 'release/3.6.0'
codenirvana Mar 2, 2020
13f5337
Merge branch 'release/3.6.1'
codenirvana May 15, 2020
8d1d6db
Merge branch 'release/3.6.2'
codenirvana Jun 4, 2020
fe64699
Merge branch 'release/3.6.3'
codenirvana Jul 13, 2020
57f2ef6
Merge branch 'release/3.6.4'
codenirvana Jul 13, 2020
79cd626
Merge branch 'release/3.6.5'
codenirvana Aug 13, 2020
e968d3f
Merge branch 'release/3.6.6' into master
codenirvana Aug 31, 2020
22f1204
Merge branch 'release/3.6.7' into master
codenirvana Sep 16, 2020
8cd6dfb
Merge branch 'release/3.6.8'
Oct 7, 2020
0b08d56
Merge branch 'release/3.6.9'
codenirvana Jan 2, 2021
3b62bbc
Merge branch 'release/3.6.10'
codenirvana Mar 23, 2021
86a3371
Merge branch 'release/3.6.11'
codenirvana Apr 11, 2021
0e637dc
Merge branch 'release/4.0.0' into main
Jun 22, 2021
0728eb3
Merge branch 'release/4.0.1'
codenirvana Jul 25, 2021
d3bf539
Merge branch 'release/4.0.2'
codenirvana Aug 9, 2021
23b1aaf
Merge branch 'release/4.1.0'
codenirvana Aug 16, 2021
ec2fe51
Merge branch 'release/4.1.1'
codenirvana Jan 3, 2022
0e40167
Merge branch 'release/4.1.2'
codenirvana Mar 28, 2022
e12a4ab
Merge branch 'release/4.1.3'
codenirvana May 24, 2022
57e9a63
Merge branch 'release/4.1.4'
codenirvana Jun 6, 2022
991c8c8
Merge branch 'release/4.1.5'
codenirvana Aug 2, 2022
9a07469
Merge branch 'release/4.1.6'
codenirvana Nov 28, 2022
85e4c05
Merge branch 'release/4.1.7'
codenirvana Jan 24, 2023
1bee9fd
Merge branch 'release/4.2.0'
codenirvana Aug 3, 2023
ee2cc8d
Merge branch 'release/4.2.1'
codenirvana Sep 11, 2023
d332e0c
Merge branch 'release/4.3.0'
codenirvana Nov 18, 2023
9b99f37
Merge branch 'release/4.4.0'
codenirvana Feb 28, 2024
b31a70e
Merge branch 'release/4.4.1'
codenirvana Jul 29, 2024
0bc9665
Merge branch 'release/4.5.0'
codenirvana Aug 1, 2024
bb6cdf7
added ulid dependency for dynamic variables
madeindra Aug 29, 2024
eb6d3f0
added ulid function in dynamic variables
madeindra Aug 29, 2024
aea6328
Merge branch 'develop' into feature/ulid-function
madeindra Aug 29, 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
5 changes: 5 additions & 0 deletions lib/superstring/dynamic-variables.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var faker = require('@faker-js/faker/locale/en'),
uuid = require('uuid'),
ulid = require('ulid'),

// locale list generated from: https://github.com/chromium/chromium/blob/master/ui/base/l10n/l10n_util.cc
LOCALES = ['af', 'am', 'an', 'ar', 'ast', 'az', 'be', 'bg', 'bh', 'bn', 'br', 'bs', 'ca', 'ceb', 'ckb', 'co', 'cs',
Expand Down Expand Up @@ -616,6 +617,10 @@ var faker = require('@faker-js/faker/locale/en'),
$randomSemver: {
description: 'A random semantic version number',
generator: faker.system.semver
},
$ulid: {
description: 'An universally unique lexicographically sortable identifier',
generator: ulid.ulid
}
};

Expand Down
63 changes: 36 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"mime-types": "2.1.35",
"postman-url-encoder": "3.0.5",
"semver": "7.6.3",
"ulid": "2.3.0",
"uuid": "8.3.2"
},
"devDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions test/unit/dynamic-variables.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,10 @@ describe('Dynamic variable', function () {
expect(avatarImage).to.be.a('string')
.and.match(/^https:\/\/(avatars\.githubusercontent\.com|cloudflare-ipfs\.com)\/.+/);
});

it('$ulid should return a valid ulid', function () {
expect(dynamicVariables.$ulid.generator())
.to.match(/^[0-9A-HJKMNP-TV-Z]{26}$/);
});
});
});