@anglr/datetime 2.0.1 → 3.0.0-beta.20220315103241

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anglr/datetime",
3
- "version": "2.0.1",
3
+ "version": "3.0.0-beta.20220315103241",
4
4
  "description": "Angular library for datetime manipulation components",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -20,7 +20,7 @@
20
20
  "bundle": "npm run clean && npm run build",
21
21
  "deploy": "npm publish --loglevel error",
22
22
  "deploy:next": "npm publish --tag next --loglevel error",
23
- "test": "karma start karma.conf.ts --single-run",
23
+ "test": "jest",
24
24
  "lint": "eslint src/**/*.ts",
25
25
  "doc": "path-exists docs && npm run doc:generate || echo \"No docs generated!\"",
26
26
  "predoc:generate": "cd docs && git pull && cd ..",
@@ -80,14 +80,13 @@
80
80
  "rxjs": "^6.6.7",
81
81
  "@jscrpt/common": "^2.2.0",
82
82
  "@anglr/common": "^10.0.0",
83
+ "@types/node": "14.14.31",
83
84
  "moment": "^2.29.1",
84
85
  "date-fns": "^2.27.0",
85
86
  "positions": "^1.6.2",
86
- "@types/jasmine": "3.6.7",
87
87
  "@angular/compiler-cli": "^13.1.0",
88
88
  "@angular/compiler": "^13.1.0",
89
89
  "@angular/language-service": "^13.1.0",
90
- "@ngtools/webpack": "11.2.4",
91
90
  "@microsoft/api-extractor": "7.19.2",
92
91
  "@microsoft/api-documenter": "7.13.77",
93
92
  "tslib": "2.3.1",
@@ -95,16 +94,14 @@
95
94
  "@typescript-eslint/eslint-plugin": "4.33.0",
96
95
  "@typescript-eslint/parser": "4.33.0",
97
96
  "eslint-plugin-ressurectit": "0.1.0",
98
- "karma": "6.2.0",
99
- "karma-cli": "2.0.0",
100
- "karma-jasmine": "4.0.1",
101
- "karma-chrome-launcher": "3.1.0",
102
- "karma-webpack": "5.0.0",
103
- "puppeteer": "8.0.0",
104
- "jasmine-core": "3.7.1",
105
- "webpack": "5.27.1",
106
- "raw-loader": "4.0.2",
107
- "ts-node": "9.1.1",
97
+ "eslint-plugin-jest": "26.1.1",
98
+ "jest": "27.5.1",
99
+ "ts-jest": "27.1.3",
100
+ "jest-preset-angular": "11.1.1",
101
+ "@types/jest": "27.4.1",
102
+ "zone.js": "0.11.5",
103
+ "@angular/platform-browser-dynamic": "^13.1.0",
104
+ "@angular/platform-browser": "^13.1.0",
108
105
  "rimraf": "3.0.2",
109
106
  "copyfiles": "2.4.1",
110
107
  "replace-in-file": "6.3.2",
package/version.bak CHANGED
@@ -1 +1 @@
1
- 2.0.1
1
+ 3.0.0-beta.20220315103241
@@ -1,57 +0,0 @@
1
- "use strict";
2
- const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin, path = require('path');
3
- process.env.CHROME_BIN = require('puppeteer').executablePath();
4
- // karma.conf.js
5
- module.exports = function (config) {
6
- config.set({
7
- basePath: '.',
8
- browsers: ['ChromeHeadlessNS'],
9
- customLaunchers: {
10
- ChromeHeadlessNS: {
11
- base: 'ChromeHeadless',
12
- flags: ['--no-sandbox']
13
- }
14
- },
15
- frameworks: ['jasmine', 'webpack'],
16
- plugins: [
17
- 'karma-chrome-launcher',
18
- 'karma-jasmine',
19
- 'karma-webpack'
20
- ],
21
- preprocessors: {
22
- 'tests/**/*.ts': ['webpack']
23
- },
24
- files: [
25
- {
26
- pattern: 'tests/**/*.ts',
27
- watched: false
28
- }
29
- ],
30
- reporters: ['progress'],
31
- webpack: {
32
- module: {
33
- rules: [
34
- {
35
- test: /\.ts$/,
36
- loader: '@ngtools/webpack'
37
- },
38
- {
39
- test: /\.html$/,
40
- loader: 'raw-loader'
41
- },
42
- {
43
- test: /\.css$/,
44
- loader: 'raw-loader'
45
- }
46
- ]
47
- },
48
- plugins: [
49
- new AngularCompilerPlugin({
50
- tsConfigPath: path.join(__dirname, 'tsconfig.karma.json'),
51
- sourceMap: true
52
- })
53
- ]
54
- }
55
- });
56
- };
57
- //# sourceMappingURL=karma.conf.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"karma.conf.js","sourceRoot":"","sources":["../karma.conf.ts"],"names":[],"mappings":";AAAA,MAAM,qBAAqB,GAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC,qBAAqB,EAC1E,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7B,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,cAAc,EAAE,CAAC;AAE/D,gBAAgB;AAChB,MAAM,CAAC,OAAO,GAAG,UAAS,MAAW;IAEjC,MAAM,CAAC,GAAG,CACV;QACI,QAAQ,EAAE,GAAG;QACb,QAAQ,EAAE,CAAC,kBAAkB,CAAC;QAC9B,eAAe,EACf;YACI,gBAAgB,EAChB;gBACI,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,CAAC,cAAc,CAAC;aAC1B;SACJ;QACD,UAAU,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;QAClC,OAAO,EACP;YACI,uBAAuB;YACvB,eAAe;YACf,eAAe;SAClB;QACD,aAAa,EACb;YACI,eAAe,EAAE,CAAC,SAAS,CAAC;SAC/B;QACD,KAAK,EACL;YACI;gBACI,OAAO,EAAE,eAAe;gBACxB,OAAO,EAAE,KAAK;aACjB;SACJ;QACD,SAAS,EAAE,CAAC,UAAU,CAAC;QACvB,OAAO,EACP;YACI,MAAM,EACN;gBACI,KAAK,EACL;oBACI;wBACI,IAAI,EAAE,OAAO;wBACb,MAAM,EAAE,kBAAkB;qBAC7B;oBACD;wBACI,IAAI,EAAE,SAAS;wBACf,MAAM,EAAE,YAAY;qBACvB;oBACD;wBACI,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,YAAY;qBACvB;iBACJ;aACJ;YACD,OAAO,EACP;gBACI,IAAI,qBAAqB,CACzB;oBACI,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC;oBACzD,SAAS,EAAE,IAAI;iBAClB,CAAC;aACL;SACJ;KACJ,CAAC,CAAC;AACP,CAAC,CAAC","sourcesContent":["const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin,\n path = require('path');\n\nprocess.env.CHROME_BIN = require('puppeteer').executablePath();\n\n// karma.conf.js\nmodule.exports = function(config: any)\n{\n config.set(\n {\n basePath: '.',\n browsers: ['ChromeHeadlessNS'],\n customLaunchers:\n {\n ChromeHeadlessNS:\n {\n base: 'ChromeHeadless',\n flags: ['--no-sandbox']\n }\n },\n frameworks: ['jasmine', 'webpack'],\n plugins:\n [\n 'karma-chrome-launcher',\n 'karma-jasmine',\n 'karma-webpack'\n ],\n preprocessors:\n {\n 'tests/**/*.ts': ['webpack']\n },\n files:\n [\n {\n pattern: 'tests/**/*.ts',\n watched: false\n }\n ],\n reporters: ['progress'],\n webpack:\n {\n module:\n {\n rules:\n [\n {\n test: /\\.ts$/,\n loader: '@ngtools/webpack'\n },\n {\n test: /\\.html$/,\n loader: 'raw-loader'\n },\n {\n test: /\\.css$/,\n loader: 'raw-loader'\n }\n ]\n },\n plugins:\n [\n new AngularCompilerPlugin(\n {\n tsConfigPath: path.join(__dirname, 'tsconfig.karma.json'),\n sourceMap: true\n })\n ]\n }\n });\n};"]}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin, path = require('path');
3
- process.env.CHROME_BIN = require('puppeteer').executablePath();
4
- // karma.conf.js
5
- module.exports = function (config) {
6
- config.set({
7
- basePath: '.',
8
- browsers: ['ChromeHeadlessNS'],
9
- customLaunchers: {
10
- ChromeHeadlessNS: {
11
- base: 'ChromeHeadless',
12
- flags: ['--no-sandbox']
13
- }
14
- },
15
- frameworks: ['jasmine', 'webpack'],
16
- plugins: [
17
- 'karma-chrome-launcher',
18
- 'karma-jasmine',
19
- 'karma-webpack'
20
- ],
21
- preprocessors: {
22
- 'tests/**/*.ts': ['webpack']
23
- },
24
- files: [
25
- {
26
- pattern: 'tests/**/*.ts',
27
- watched: false
28
- }
29
- ],
30
- reporters: ['progress'],
31
- webpack: {
32
- module: {
33
- rules: [
34
- {
35
- test: /\.ts$/,
36
- loader: '@ngtools/webpack'
37
- },
38
- {
39
- test: /\.html$/,
40
- loader: 'raw-loader'
41
- },
42
- {
43
- test: /\.css$/,
44
- loader: 'raw-loader'
45
- }
46
- ]
47
- },
48
- plugins: [
49
- new AngularCompilerPlugin({
50
- tsConfigPath: path.join(__dirname, 'tsconfig.karma.json'),
51
- sourceMap: true
52
- })
53
- ]
54
- }
55
- });
56
- };
57
- //# sourceMappingURL=karma.conf.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"karma.conf.js","sourceRoot":"","sources":["../karma.conf.ts"],"names":[],"mappings":";AAAA,MAAM,qBAAqB,GAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC,qBAAqB,EAC1E,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7B,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,cAAc,EAAE,CAAC;AAE/D,gBAAgB;AAChB,MAAM,CAAC,OAAO,GAAG,UAAS,MAAW;IAEjC,MAAM,CAAC,GAAG,CACV;QACI,QAAQ,EAAE,GAAG;QACb,QAAQ,EAAE,CAAC,kBAAkB,CAAC;QAC9B,eAAe,EACf;YACI,gBAAgB,EAChB;gBACI,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,CAAC,cAAc,CAAC;aAC1B;SACJ;QACD,UAAU,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;QAClC,OAAO,EACP;YACI,uBAAuB;YACvB,eAAe;YACf,eAAe;SAClB;QACD,aAAa,EACb;YACI,eAAe,EAAE,CAAC,SAAS,CAAC;SAC/B;QACD,KAAK,EACL;YACI;gBACI,OAAO,EAAE,eAAe;gBACxB,OAAO,EAAE,KAAK;aACjB;SACJ;QACD,SAAS,EAAE,CAAC,UAAU,CAAC;QACvB,OAAO,EACP;YACI,MAAM,EACN;gBACI,KAAK,EACL;oBACI;wBACI,IAAI,EAAE,OAAO;wBACb,MAAM,EAAE,kBAAkB;qBAC7B;oBACD;wBACI,IAAI,EAAE,SAAS;wBACf,MAAM,EAAE,YAAY;qBACvB;oBACD;wBACI,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,YAAY;qBACvB;iBACJ;aACJ;YACD,OAAO,EACP;gBACI,IAAI,qBAAqB,CACzB;oBACI,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC;oBACzD,SAAS,EAAE,IAAI;iBAClB,CAAC;aACL;SACJ;KACJ,CAAC,CAAC;AACP,CAAC,CAAC","sourcesContent":["const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin,\n path = require('path');\n\nprocess.env.CHROME_BIN = require('puppeteer').executablePath();\n\n// karma.conf.js\nmodule.exports = function(config: any)\n{\n config.set(\n {\n basePath: '.',\n browsers: ['ChromeHeadlessNS'],\n customLaunchers:\n {\n ChromeHeadlessNS:\n {\n base: 'ChromeHeadless',\n flags: ['--no-sandbox']\n }\n },\n frameworks: ['jasmine', 'webpack'],\n plugins:\n [\n 'karma-chrome-launcher',\n 'karma-jasmine',\n 'karma-webpack'\n ],\n preprocessors:\n {\n 'tests/**/*.ts': ['webpack']\n },\n files:\n [\n {\n pattern: 'tests/**/*.ts',\n watched: false\n }\n ],\n reporters: ['progress'],\n webpack:\n {\n module:\n {\n rules:\n [\n {\n test: /\\.ts$/,\n loader: '@ngtools/webpack'\n },\n {\n test: /\\.html$/,\n loader: 'raw-loader'\n },\n {\n test: /\\.css$/,\n loader: 'raw-loader'\n }\n ]\n },\n plugins:\n [\n new AngularCompilerPlugin(\n {\n tsConfigPath: path.join(__dirname, 'tsconfig.karma.json'),\n sourceMap: true\n })\n ]\n }\n });\n};"]}
package/karma.conf.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const AngularCompilerPlugin: any, path: any;
2
- //# sourceMappingURL=karma.conf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"karma.conf.d.ts","sourceRoot":"","sources":["karma.conf.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,qBAAqB,KAAqD,EAC1E,IAAI,KAAkB,CAAC"}
@@ -1,19 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions":
4
- {
5
- "target": "ES2015",
6
- "paths":
7
- {
8
- "date-fns": ["../node_modules/date-fns/typings.d.ts"],
9
- "moment": ["../node_modules/moment/ts3.1-typings/moment.d.ts"],
10
- "@anglr/datetime": ["index.ts"],
11
- "@anglr/datetime/moment": ["../moment/src/moment.ts"],
12
- "@anglr/datetime/date-fns": ["../date-fns/src/date-fns.ts"]
13
- }
14
- },
15
- "include":
16
- [
17
- "tests/**/*.ts"
18
- ]
19
- }