prototyped.js 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/dependabot.yml +26 -0
- package/.github/workflows/release.yml +8 -10
- package/.github/workflows/test.yml +12 -7
- package/build/cjs/index.js +5 -1
- package/build/cjs/index.js.map +1 -1
- package/package.json +12 -12
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Basic set up for package managers
|
|
2
|
+
|
|
3
|
+
version: 2
|
|
4
|
+
|
|
5
|
+
updates:
|
|
6
|
+
|
|
7
|
+
# Maintain dependencies for GitHub Actions
|
|
8
|
+
- package-ecosystem: "github-actions"
|
|
9
|
+
directory: "/"
|
|
10
|
+
schedule:
|
|
11
|
+
interval: "daily"
|
|
12
|
+
commit-message:
|
|
13
|
+
prefix: "deps(CI)"
|
|
14
|
+
reviewers:
|
|
15
|
+
- ardalanamini
|
|
16
|
+
|
|
17
|
+
# Maintain dependencies for npm
|
|
18
|
+
- package-ecosystem: "npm"
|
|
19
|
+
directory: "/"
|
|
20
|
+
schedule:
|
|
21
|
+
interval: "daily"
|
|
22
|
+
commit-message:
|
|
23
|
+
prefix: "deps"
|
|
24
|
+
prefix-development: "deps(Dev)"
|
|
25
|
+
reviewers:
|
|
26
|
+
- ardalanamini
|
|
@@ -16,7 +16,7 @@ jobs:
|
|
|
16
16
|
|
|
17
17
|
environment:
|
|
18
18
|
name: release
|
|
19
|
-
url: https://github.com/
|
|
19
|
+
url: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}
|
|
20
20
|
|
|
21
21
|
runs-on: ubuntu-latest
|
|
22
22
|
|
|
@@ -24,13 +24,11 @@ jobs:
|
|
|
24
24
|
- test
|
|
25
25
|
|
|
26
26
|
steps:
|
|
27
|
-
- uses: actions/checkout@
|
|
27
|
+
- uses: actions/checkout@v3
|
|
28
28
|
|
|
29
29
|
- name: Changelog
|
|
30
|
+
uses: ardalanamini/auto-changelog@v2
|
|
30
31
|
id: changelog
|
|
31
|
-
uses: ardalanamini/auto-changelog@v1
|
|
32
|
-
with:
|
|
33
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
34
32
|
|
|
35
33
|
- name: Create Release
|
|
36
34
|
uses: softprops/action-gh-release@v1
|
|
@@ -53,9 +51,9 @@ jobs:
|
|
|
53
51
|
- release
|
|
54
52
|
|
|
55
53
|
steps:
|
|
56
|
-
- uses: actions/checkout@
|
|
54
|
+
- uses: actions/checkout@v3
|
|
57
55
|
|
|
58
|
-
- uses: actions/setup-node@
|
|
56
|
+
- uses: actions/setup-node@v3
|
|
59
57
|
with:
|
|
60
58
|
node-version: 16
|
|
61
59
|
registry-url: https://registry.npmjs.org/
|
|
@@ -75,7 +73,7 @@ jobs:
|
|
|
75
73
|
|
|
76
74
|
environment:
|
|
77
75
|
name: release
|
|
78
|
-
url: https://github.com
|
|
76
|
+
url: https://github.com/${{ github.repository }}/packages
|
|
79
77
|
|
|
80
78
|
permissions:
|
|
81
79
|
contents: read
|
|
@@ -87,9 +85,9 @@ jobs:
|
|
|
87
85
|
- release
|
|
88
86
|
|
|
89
87
|
steps:
|
|
90
|
-
- uses: actions/checkout@
|
|
88
|
+
- uses: actions/checkout@v3
|
|
91
89
|
|
|
92
|
-
- uses: actions/setup-node@
|
|
90
|
+
- uses: actions/setup-node@v3
|
|
93
91
|
with:
|
|
94
92
|
node-version: 16
|
|
95
93
|
registry-url: https://npm.pkg.github.com/
|
|
@@ -5,7 +5,7 @@ name: Test
|
|
|
5
5
|
|
|
6
6
|
on:
|
|
7
7
|
schedule:
|
|
8
|
-
- cron: "0 0
|
|
8
|
+
- cron: "0 0 1 * *"
|
|
9
9
|
push:
|
|
10
10
|
branches:
|
|
11
11
|
- master
|
|
@@ -35,19 +35,24 @@ jobs:
|
|
|
35
35
|
env:
|
|
36
36
|
OS: ${{ matrix.os }}
|
|
37
37
|
NODE_VERSION: ${{ matrix.node-version }}
|
|
38
|
-
REF: ${{ github.
|
|
38
|
+
REF: ${{ github.ref_name }}
|
|
39
39
|
|
|
40
40
|
steps:
|
|
41
|
-
- uses: actions/checkout@
|
|
41
|
+
- uses: actions/checkout@v3
|
|
42
42
|
|
|
43
43
|
- name: Setup Cache
|
|
44
|
-
uses: actions/cache@
|
|
44
|
+
uses: actions/cache@v3
|
|
45
45
|
with:
|
|
46
46
|
path: '**/node_modules'
|
|
47
|
-
key:
|
|
47
|
+
key: node-modules-${{ matrix.os }}-${{ github.ref_name }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
|
|
48
|
+
restore-keys: |
|
|
49
|
+
node-modules-${{ matrix.os }}-${{ github.ref_name }}-${{ matrix.node-version }}
|
|
50
|
+
node-modules-${{ matrix.os }}-master-${{ matrix.node-version }}
|
|
51
|
+
node-modules-${{ matrix.os }}-${{ github.ref_name }}-
|
|
52
|
+
node-modules-${{ matrix.os }}-master-
|
|
48
53
|
|
|
49
54
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
50
|
-
uses: actions/setup-node@
|
|
55
|
+
uses: actions/setup-node@v3
|
|
51
56
|
with:
|
|
52
57
|
node-version: ${{ matrix.node-version }}
|
|
53
58
|
|
|
@@ -70,7 +75,7 @@ jobs:
|
|
|
70
75
|
run: npm run test:ci
|
|
71
76
|
|
|
72
77
|
- name: Upload coverage to CodeCov
|
|
73
|
-
uses: codecov/codecov-action@
|
|
78
|
+
uses: codecov/codecov-action@v3
|
|
74
79
|
if: ${{ github.event_name != 'schedule'}}
|
|
75
80
|
with:
|
|
76
81
|
env_vars: OS,NODE_VERSION,REF
|
package/build/cjs/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA0C;AAC1C,8DAA8C;AAC9C,wDAAwC;AACxC,4DAA4C;AAC5C,8DAA8C;AAC9C,wDAAwC;AACxC,4DAA4C;AAC5C,4DAA4C;AAC5C,4DAA4C","sourcesContent":["export * as array from \"./array/index.js\";\nexport * as boolean from \"./boolean/index.js\";\nexport * as date from \"./date/index.js\";\nexport * as func from \"./function/index.js\";\nexport * as globals from \"./globals/index.js\";\nexport * as math from \"./math/index.js\";\nexport * as number from \"./number/index.js\";\nexport * as object from \"./object/index.js\";\nexport * as string from \"./string/index.js\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prototyped.js",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Common typescript ready prototypes available in both CommonJS and ECMAScript",
|
|
5
5
|
"author": "Ardalan Amini <ardalanamini22@gmail.com> (https://ardalanamini.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1459,26 +1459,26 @@
|
|
|
1459
1459
|
"lint:fix": "npm run lint -- --fix",
|
|
1460
1460
|
"lint:prettier": "prettier -w src __tests__",
|
|
1461
1461
|
"lint:format": "npm run lint:prettier && npm run lint:fix",
|
|
1462
|
-
"test": "node --expose-gc node_modules/jest/bin/jest",
|
|
1462
|
+
"test": "node --no-compilation-cache --expose-gc node_modules/jest/bin/jest",
|
|
1463
1463
|
"test:coverage": "npm test -- --coverage",
|
|
1464
1464
|
"test:ci": "npm run test:coverage -- --no-cache --ci --verbose --runInBand --logHeapUsage",
|
|
1465
1465
|
"docs": "typedoc && node scripts/docs.js",
|
|
1466
1466
|
"regenerate:package.json": "node scripts/regenerate-package-json.js"
|
|
1467
1467
|
},
|
|
1468
1468
|
"peerDependencies": {
|
|
1469
|
-
"@types/node": "
|
|
1469
|
+
"@types/node": "^17.0.23"
|
|
1470
1470
|
},
|
|
1471
1471
|
"devDependencies": {
|
|
1472
1472
|
"@types/jest": "^27.4.1",
|
|
1473
|
-
"@types/node": "^
|
|
1474
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
1475
|
-
"@typescript-eslint/parser": "^5.
|
|
1476
|
-
"eslint": "^8.
|
|
1477
|
-
"eslint-plugin-import": "^2.
|
|
1473
|
+
"@types/node": "^17.0.23",
|
|
1474
|
+
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
|
1475
|
+
"@typescript-eslint/parser": "^5.18.0",
|
|
1476
|
+
"eslint": "^8.13.0",
|
|
1477
|
+
"eslint-plugin-import": "^2.26.0",
|
|
1478
1478
|
"jest": "^27.5.1",
|
|
1479
|
-
"prettier": "^2.
|
|
1480
|
-
"ts-jest": "^27.1.
|
|
1481
|
-
"typedoc": "^0.22.
|
|
1482
|
-
"typescript": "^4.
|
|
1479
|
+
"prettier": "^2.6.2",
|
|
1480
|
+
"ts-jest": "^27.1.4",
|
|
1481
|
+
"typedoc": "^0.22.15",
|
|
1482
|
+
"typescript": "^4.6.3"
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|