isomorphic-region-loader 0.0.3 → 1.0.4

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.
Files changed (45) hide show
  1. package/app.d.ts +1 -0
  2. package/app.js +6 -0
  3. package/app.js.map +1 -0
  4. package/browser/README.md +24 -0
  5. package/browser/esm2020/isomorphic-region-loader.mjs +5 -0
  6. package/browser/esm2020/lib/index.mjs +20 -0
  7. package/browser/esm2020/public-api.mjs +2 -0
  8. package/browser/fesm2015/isomorphic-region-loader.mjs +21 -0
  9. package/browser/fesm2015/isomorphic-region-loader.mjs.map +1 -0
  10. package/browser/fesm2020/isomorphic-region-loader.mjs +21 -0
  11. package/browser/fesm2020/isomorphic-region-loader.mjs.map +1 -0
  12. package/browser/isomorphic-region-loader.d.ts +5 -0
  13. package/browser/lib/index.d.ts +3 -0
  14. package/browser/package.json +31 -0
  15. package/browser/public-api.d.ts +1 -0
  16. package/client/README.md +24 -0
  17. package/client/esm2020/isomorphic-region-loader.mjs +5 -0
  18. package/client/esm2020/lib/index.mjs +20 -0
  19. package/client/esm2020/public-api.mjs +2 -0
  20. package/client/fesm2015/isomorphic-region-loader.mjs +21 -0
  21. package/client/fesm2015/isomorphic-region-loader.mjs.map +1 -0
  22. package/client/fesm2020/isomorphic-region-loader.mjs +21 -0
  23. package/client/fesm2020/isomorphic-region-loader.mjs.map +1 -0
  24. package/client/isomorphic-region-loader.d.ts +5 -0
  25. package/client/lib/index.d.ts +3 -0
  26. package/client/package.json +31 -0
  27. package/client/public-api.d.ts +1 -0
  28. package/index.d.ts +3 -0
  29. package/index.js +7 -36
  30. package/index.js.map +1 -0
  31. package/lib/index.d.ts +5 -0
  32. package/lib/index.js +24 -0
  33. package/lib/index.js.map +1 -0
  34. package/lib/region-remover.backend.d.ts +15 -0
  35. package/lib/region-remover.backend.js +147 -0
  36. package/lib/region-remover.backend.js.map +1 -0
  37. package/lib/region.backend.d.ts +29 -0
  38. package/lib/region.backend.js +179 -0
  39. package/lib/region.backend.js.map +1 -0
  40. package/package.json +9 -8
  41. package/package.json_devDependencies.json +3 -0
  42. package/package.json_tnp.json5 +23 -0
  43. package/tmp-environment.json +292 -0
  44. package/.vscode/settings.json +0 -19
  45. package/README.md +0 -63
package/app.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare function dummy1660579480817(): void;
package/app.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dummy1660579480817 = void 0;
4
+ function dummy1660579480817() { }
5
+ exports.dummy1660579480817 = dummy1660579480817;
6
+ //# sourceMappingURL=/Users/dariusz/projects/npm/isomorphic-region-loader/tmp-bundle-release/bundle/project/isomorphic-region-loader/bundle-nocutsrc/app.js.map
package/app.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["../tmp-source-bundle/app.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB,KAAK,CAAC;AAAxC,gDAAwC"}
@@ -0,0 +1,24 @@
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNvbW9ycGhpYy1yZWdpb24tbG9hZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vdG1wLWxpYnMtZm9yLWJ1bmRsZS9pc29tb3JwaGljLXJlZ2lvbi1sb2FkZXIvcHJvamVjdHMvaXNvbW9ycGhpYy1yZWdpb24tbG9hZGVyL3NyYy9pc29tb3JwaGljLXJlZ2lvbi1sb2FkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -0,0 +1,20 @@
1
+ /* */
2
+ /* */
3
+ function StripBrowserCode(content) {
4
+ /* */
5
+ /* */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* */
10
+ /* */
11
+ /* */
12
+ /* */
13
+ /* */
14
+ }
15
+ export { StripBrowserCode as StripBlockLoader };
16
+ /* */
17
+ /* */
18
+ /* */
19
+ export default StripBrowserCode;
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi90bXAtbGlicy1mb3ItYnVuZGxlL2lzb21vcnBoaWMtcmVnaW9uLWxvYWRlci9wcm9qZWN0cy9pc29tb3JwaGljLXJlZ2lvbi1sb2FkZXIvc3JjL2xpYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxLQUFLO0FBQ0wsS0FBSztBQU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JdfQ==
@@ -0,0 +1,21 @@
1
+ /* */
2
+ /* */
3
+ function StripBrowserCode(content) {
4
+ /* */
5
+ /* */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* */
10
+ /* */
11
+ /* */
12
+ /* */
13
+ /* */
14
+ }
15
+
16
+ /**
17
+ * Generated bundle index. Do not edit.
18
+ */
19
+
20
+ export { StripBrowserCode as StripBlockLoader };
21
+ //# sourceMappingURL=isomorphic-region-loader.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isomorphic-region-loader.mjs","sources":["../../../tmp-libs-for-bundle/isomorphic-region-loader/projects/isomorphic-region-loader/src/lib/index.ts","../../../tmp-libs-for-bundle/isomorphic-region-loader/projects/isomorphic-region-loader/src/isomorphic-region-loader.ts"],"sourcesContent":["/* */\n/* */\n \n\nfunction StripBrowserCode(content) {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n \n}\n\nexport { StripBrowserCode as StripBlockLoader };\n/* */\n/* */\n/* */\n \nexport default StripBrowserCode;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;AACA;AAGA,SAAS,gBAAgB,CAAC,OAAO,EAAA;;;;;;;;;;;AAYjC;;AChBA;;AAEG;;;;"}
@@ -0,0 +1,21 @@
1
+ /* */
2
+ /* */
3
+ function StripBrowserCode(content) {
4
+ /* */
5
+ /* */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* */
10
+ /* */
11
+ /* */
12
+ /* */
13
+ /* */
14
+ }
15
+
16
+ /**
17
+ * Generated bundle index. Do not edit.
18
+ */
19
+
20
+ export { StripBrowserCode as StripBlockLoader };
21
+ //# sourceMappingURL=isomorphic-region-loader.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isomorphic-region-loader.mjs","sources":["../../../tmp-libs-for-bundle/isomorphic-region-loader/projects/isomorphic-region-loader/src/lib/index.ts","../../../tmp-libs-for-bundle/isomorphic-region-loader/projects/isomorphic-region-loader/src/isomorphic-region-loader.ts"],"sourcesContent":["/* */\n/* */\n \n\nfunction StripBrowserCode(content) {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n \n}\n\nexport { StripBrowserCode as StripBlockLoader };\n/* */\n/* */\n/* */\n \nexport default StripBrowserCode;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;AACA;AAGA,SAAS,gBAAgB,CAAC,OAAO,EAAA;;;;;;;;;;;AAYjC;;AChBA;;AAEG;;;;"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="isomorphic-region-loader" />
5
+ export * from './public-api';
@@ -0,0 +1,3 @@
1
+ declare function StripBrowserCode(content: any): void;
2
+ export { StripBrowserCode as StripBlockLoader };
3
+ export default StripBrowserCode;
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "isomorphic-region-loader",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^13.2.0",
6
+ "@angular/core": "^13.2.0"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "module": "fesm2015/isomorphic-region-loader.mjs",
12
+ "es2020": "fesm2020/isomorphic-region-loader.mjs",
13
+ "esm2020": "esm2020/isomorphic-region-loader.mjs",
14
+ "fesm2020": "fesm2020/isomorphic-region-loader.mjs",
15
+ "fesm2015": "fesm2015/isomorphic-region-loader.mjs",
16
+ "typings": "isomorphic-region-loader.d.ts",
17
+ "exports": {
18
+ "./package.json": {
19
+ "default": "./package.json"
20
+ },
21
+ ".": {
22
+ "types": "./isomorphic-region-loader.d.ts",
23
+ "esm2020": "./esm2020/isomorphic-region-loader.mjs",
24
+ "es2020": "./fesm2020/isomorphic-region-loader.mjs",
25
+ "es2015": "./fesm2015/isomorphic-region-loader.mjs",
26
+ "node": "./fesm2015/isomorphic-region-loader.mjs",
27
+ "default": "./fesm2020/isomorphic-region-loader.mjs"
28
+ }
29
+ },
30
+ "sideEffects": false
31
+ }
@@ -0,0 +1 @@
1
+ export * from './lib';
@@ -0,0 +1,24 @@
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNvbW9ycGhpYy1yZWdpb24tbG9hZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vdG1wLWxpYnMtZm9yLWJ1bmRsZS9pc29tb3JwaGljLXJlZ2lvbi1sb2FkZXIvcHJvamVjdHMvaXNvbW9ycGhpYy1yZWdpb24tbG9hZGVyL3NyYy9pc29tb3JwaGljLXJlZ2lvbi1sb2FkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -0,0 +1,20 @@
1
+ /* */
2
+ /* */
3
+ function StripBrowserCode(content) {
4
+ /* */
5
+ /* */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* */
10
+ /* */
11
+ /* */
12
+ /* */
13
+ /* */
14
+ }
15
+ export { StripBrowserCode as StripBlockLoader };
16
+ /* */
17
+ /* */
18
+ /* */
19
+ export default StripBrowserCode;
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi90bXAtbGlicy1mb3ItYnVuZGxlL2lzb21vcnBoaWMtcmVnaW9uLWxvYWRlci9wcm9qZWN0cy9pc29tb3JwaGljLXJlZ2lvbi1sb2FkZXIvc3JjL2xpYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxLQUFLO0FBQ0wsS0FBSztBQUdMLFNBQVMsZ0JBQWdCLENBQUMsT0FBTztJQUNqQyxLQUFLO0lBQ0wsS0FBSztJQUNMLEtBQUs7SUFDTCxLQUFLO0lBQ0wsS0FBSztJQUNMLEtBQUs7SUFDTCxLQUFLO0lBQ0wsS0FBSztJQUNMLEtBQUs7SUFDTCxLQUFLO0FBRUwsQ0FBQztBQUVELE9BQU8sRUFBRSxnQkFBZ0IsSUFBSSxnQkFBZ0IsRUFBRSxDQUFDO0FBQ2hELEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUVMLGVBQWUsZ0JBQWdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiAqL1xuLyogKi9cbiAgXG5cbmZ1bmN0aW9uIFN0cmlwQnJvd3NlckNvZGUoY29udGVudCkge1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbiAgXG59XG5cbmV4cG9ydCB7IFN0cmlwQnJvd3NlckNvZGUgYXMgU3RyaXBCbG9ja0xvYWRlciB9O1xuLyogKi9cbi8qICovXG4vKiAqL1xuICBcbmV4cG9ydCBkZWZhdWx0IFN0cmlwQnJvd3NlckNvZGU7XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export * from './lib';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3RtcC1saWJzLWZvci1idW5kbGUvaXNvbW9ycGhpYy1yZWdpb24tbG9hZGVyL3Byb2plY3RzL2lzb21vcnBoaWMtcmVnaW9uLWxvYWRlci9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLE9BQU8sQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliJztcbiJdfQ==
@@ -0,0 +1,21 @@
1
+ /* */
2
+ /* */
3
+ function StripBrowserCode(content) {
4
+ /* */
5
+ /* */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* */
10
+ /* */
11
+ /* */
12
+ /* */
13
+ /* */
14
+ }
15
+
16
+ /**
17
+ * Generated bundle index. Do not edit.
18
+ */
19
+
20
+ export { StripBrowserCode as StripBlockLoader };
21
+ //# sourceMappingURL=isomorphic-region-loader.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isomorphic-region-loader.mjs","sources":["../../../tmp-libs-for-bundle/isomorphic-region-loader/projects/isomorphic-region-loader/src/lib/index.ts","../../../tmp-libs-for-bundle/isomorphic-region-loader/projects/isomorphic-region-loader/src/isomorphic-region-loader.ts"],"sourcesContent":["/* */\n/* */\n \n\nfunction StripBrowserCode(content) {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n \n}\n\nexport { StripBrowserCode as StripBlockLoader };\n/* */\n/* */\n/* */\n \nexport default StripBrowserCode;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;AACA;AAGA,SAAS,gBAAgB,CAAC,OAAO,EAAA;;;;;;;;;;;AAYjC;;AChBA;;AAEG;;;;"}
@@ -0,0 +1,21 @@
1
+ /* */
2
+ /* */
3
+ function StripBrowserCode(content) {
4
+ /* */
5
+ /* */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* */
10
+ /* */
11
+ /* */
12
+ /* */
13
+ /* */
14
+ }
15
+
16
+ /**
17
+ * Generated bundle index. Do not edit.
18
+ */
19
+
20
+ export { StripBrowserCode as StripBlockLoader };
21
+ //# sourceMappingURL=isomorphic-region-loader.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isomorphic-region-loader.mjs","sources":["../../../tmp-libs-for-bundle/isomorphic-region-loader/projects/isomorphic-region-loader/src/lib/index.ts","../../../tmp-libs-for-bundle/isomorphic-region-loader/projects/isomorphic-region-loader/src/isomorphic-region-loader.ts"],"sourcesContent":["/* */\n/* */\n \n\nfunction StripBrowserCode(content) {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n \n}\n\nexport { StripBrowserCode as StripBlockLoader };\n/* */\n/* */\n/* */\n \nexport default StripBrowserCode;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;AACA;AAGA,SAAS,gBAAgB,CAAC,OAAO,EAAA;;;;;;;;;;;AAYjC;;AChBA;;AAEG;;;;"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="isomorphic-region-loader" />
5
+ export * from './public-api';
@@ -0,0 +1,3 @@
1
+ declare function StripBrowserCode(content: any): void;
2
+ export { StripBrowserCode as StripBlockLoader };
3
+ export default StripBrowserCode;
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "isomorphic-region-loader",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^13.2.0",
6
+ "@angular/core": "^13.2.0"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "module": "fesm2015/isomorphic-region-loader.mjs",
12
+ "es2020": "fesm2020/isomorphic-region-loader.mjs",
13
+ "esm2020": "esm2020/isomorphic-region-loader.mjs",
14
+ "fesm2020": "fesm2020/isomorphic-region-loader.mjs",
15
+ "fesm2015": "fesm2015/isomorphic-region-loader.mjs",
16
+ "typings": "isomorphic-region-loader.d.ts",
17
+ "exports": {
18
+ "./package.json": {
19
+ "default": "./package.json"
20
+ },
21
+ ".": {
22
+ "types": "./isomorphic-region-loader.d.ts",
23
+ "esm2020": "./esm2020/isomorphic-region-loader.mjs",
24
+ "es2020": "./fesm2020/isomorphic-region-loader.mjs",
25
+ "es2015": "./fesm2015/isomorphic-region-loader.mjs",
26
+ "node": "./fesm2015/isomorphic-region-loader.mjs",
27
+ "default": "./fesm2020/isomorphic-region-loader.mjs"
28
+ }
29
+ },
30
+ "sideEffects": false
31
+ }
@@ -0,0 +1 @@
1
+ export * from './lib';
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import def from './lib';
2
+ export * from './lib';
3
+ export default def;
package/index.js CHANGED
@@ -1,36 +1,7 @@
1
- var loaderUtils = require("loader-utils");
2
-
3
- function StripBlockLoader(content) {
4
- var options = loaderUtils.getOptions(this) || {};
5
- var platform = options.platform || 'browser';
6
- content = replaceModule(content, 'isomorphic-rest', 'isomorphic-rest/client')
7
- if (platform === 'browser') {
8
- content = replace(content, ["backend", "nodejs", "node"]);
9
-
10
- } else {
11
- content = replace(content, ["browser", "dom", "client"]);
12
- }
13
-
14
-
15
- if (this.cacheable) {
16
- this.cacheable(true);
17
- }
18
-
19
- return content;
20
- }
21
-
22
- function replaceModule(c, moduleName, destModulesName) {
23
- var es5 = new RegExp("require\\((\\'|\")" + moduleName + "(\\'|\")\\)", 'g');
24
- c = c.replace(es5, "require(\"" + destModulesName + "\")");
25
- return c;
26
- }
27
-
28
- function replace(c, words) {
29
- if (words.length === 0) return c;
30
- var word = words.shift();
31
- var regexPattern = new RegExp("[\\t ]*\\/\\/\\s*#?region\\s+" + word + " ?[\\s\\S]*?\\/\\/\\s*#?endregion ?[\\t ]*\\n?", "g")
32
- c = c.replace(regexPattern, '');
33
- return replace(c, words);
34
- }
35
-
36
- module.exports = StripBlockLoader;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var lib_1 = require("./lib");
5
+ (0, tslib_1.__exportStar)(require("./lib"), exports);
6
+ exports.default = lib_1.default;
7
+ //# sourceMappingURL=/Users/dariusz/projects/npm/isomorphic-region-loader/tmp-bundle-release/bundle/project/isomorphic-region-loader/bundle-nocutsrc/index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../tmp-source-bundle/index.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qDAAsB;AACtB,kBAAe,aAAG,CAAC"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ declare function StripBrowserCode(content: any): any;
2
+ export { StripBrowserCode as StripBlockLoader };
3
+ export * from './region-remover.backend';
4
+ export * from './region.backend';
5
+ export default StripBrowserCode;
package/lib/index.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StripBlockLoader = void 0;
4
+ var tslib_1 = require("tslib");
5
+ //#region @backend
6
+ var region_remover_backend_1 = require("./region-remover.backend");
7
+ //#endregion
8
+ function StripBrowserCode(content) {
9
+ //#region @backend
10
+ // @ts-ignore
11
+ content = region_remover_backend_1.RegionRemover.from(this.resourcePath, content, ['@browser']).output + '\n';
12
+ if (this.cacheable) {
13
+ this.cacheable(true);
14
+ }
15
+ return content;
16
+ //#endregion
17
+ }
18
+ exports.StripBlockLoader = StripBrowserCode;
19
+ //#region @backend
20
+ (0, tslib_1.__exportStar)(require("./region-remover.backend"), exports);
21
+ (0, tslib_1.__exportStar)(require("./region.backend"), exports);
22
+ //#endregion
23
+ exports.default = StripBrowserCode;
24
+ //# sourceMappingURL=/Users/dariusz/projects/npm/isomorphic-region-loader/tmp-bundle-release/bundle/project/isomorphic-region-loader/bundle-nocutsrc/lib/index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../tmp-source-bundle/lib/index.ts"],"names":[],"mappings":";;;;AAAA,kBAAkB;AAClB,mEAAyD;AACzD,YAAY;AAEZ,SAAS,gBAAgB,CAAC,OAAO;IAC/B,kBAAkB;IAElB,aAAa;IACb,OAAO,GAAG,sCAAa,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC;IAErF,IAAI,IAAI,CAAC,SAAS,EAAE;QAClB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;KACtB;IAED,OAAO,OAAO,CAAC;IACf,YAAY;AACd,CAAC;AAE4B,4CAAgB;AAC7C,kBAAkB;AAClB,wEAAyC;AACzC,gEAAiC;AACjC,YAAY;AACZ,kBAAe,gBAAgB,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare class RegionRemover {
2
+ readonly fileAbsolutePath: string;
3
+ private content;
4
+ readonly project?: any;
5
+ private root;
6
+ private readonly START_REGION;
7
+ private readonly END_REGION;
8
+ static from(absoluteFilePath: string, content: string, replacementss?: any, // Models.dev.Replacement[],
9
+ project?: any): RegionRemover;
10
+ private matchStartRegion;
11
+ private matchEndRegion;
12
+ private constructor();
13
+ private tree;
14
+ get output(): string;
15
+ }
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegionRemover = void 0;
4
+ var tnp_core_1 = require("tnp-core");
5
+ // import { Models } from 'tnp-models';
6
+ var tnp_core_2 = require("tnp-core");
7
+ var region_backend_1 = require("./region.backend");
8
+ var REGEX_REGION = {
9
+ TS_JS_SCSS_SASS: {
10
+ START: new RegExp('\\/\\/\\s*\\#region'),
11
+ END: new RegExp('\\/\\/\\s*\\#endregion'),
12
+ },
13
+ HTML: {
14
+ START: new RegExp('\\<\\!\\-\\-\\s*\\#region'),
15
+ END: new RegExp('\\<\\!\\-\\-\\s*\\#endregion'),
16
+ },
17
+ CSS: {
18
+ START: new RegExp('\\/\\*\\s*\\#region'),
19
+ END: new RegExp('\\/\\*\\s*\\#endregion'),
20
+ },
21
+ };
22
+ var RegionRemover = /** @class */ (function () {
23
+ function RegionRemover(fileAbsolutePath, fileExtension, content, replacementss, // Models.dev.Replacement[],
24
+ project) {
25
+ this.fileAbsolutePath = fileAbsolutePath;
26
+ this.content = content;
27
+ this.project = project;
28
+ this.START_REGION = [];
29
+ this.END_REGION = [];
30
+ if (['js', 'ts', 'scss', 'sass'].includes(fileExtension)) {
31
+ this.START_REGION.push(REGEX_REGION.TS_JS_SCSS_SASS.START);
32
+ this.END_REGION.push(REGEX_REGION.TS_JS_SCSS_SASS.END);
33
+ }
34
+ if (['html'].includes(fileExtension)) {
35
+ this.START_REGION.push(REGEX_REGION.HTML.START);
36
+ this.END_REGION.push(REGEX_REGION.HTML.END);
37
+ }
38
+ if (['scss', 'sass', 'css'].includes(fileExtension)) {
39
+ this.START_REGION.push(REGEX_REGION.CSS.START);
40
+ this.END_REGION.push(REGEX_REGION.CSS.END);
41
+ }
42
+ var lines = this.content.split('\n');
43
+ this.root = new region_backend_1.Region(this, replacementss, void 0, 0, (lines.length - 1), tnp_core_1._.first(lines), tnp_core_1._.last(lines), lines);
44
+ this.tree(this.root);
45
+ }
46
+ RegionRemover.from = function (absoluteFilePath, content, replacementss, // Models.dev.Replacement[],
47
+ project) {
48
+ if (!tnp_core_1.path.isAbsolute(absoluteFilePath)) {
49
+ tnp_core_2.Helpers.error("[region-remover][from] path is not absolute:\n \"".concat(absoluteFilePath, "\"\n "), false, true);
50
+ }
51
+ var fileExtension = tnp_core_1.path.extname(absoluteFilePath);
52
+ if (fileExtension.startsWith('.')) {
53
+ fileExtension = fileExtension.replace('.', '');
54
+ }
55
+ if (!replacementss) {
56
+ replacementss = [
57
+ ['@backendFunc', "return (void 0);"],
58
+ '@backend',
59
+ ];
60
+ }
61
+ return new RegionRemover(absoluteFilePath, fileExtension, content, replacementss, project);
62
+ };
63
+ RegionRemover.prototype.matchStartRegion = function (l) {
64
+ var res = !tnp_core_1._.isUndefined(this.START_REGION.find(function (r) { return l.match(r); }));
65
+ return res;
66
+ };
67
+ RegionRemover.prototype.matchEndRegion = function (l) {
68
+ var res = !tnp_core_1._.isUndefined(this.END_REGION.find(function (r) { return l.match(r); }));
69
+ return res;
70
+ };
71
+ RegionRemover.prototype.tree = function (node) {
72
+ var contentLines = node.contentLines;
73
+ // if (contentLines.length <= 3) {
74
+ // for (let i = 0; i < contentLines.length; i++) {
75
+ // const l = contentLines[i];
76
+ // node.addNormalLine(l, i);
77
+ // }
78
+ // } else {
79
+ var stack = 0;
80
+ for (var i = 0; i < contentLines.length; i++) {
81
+ var l = contentLines[i];
82
+ if (!node.isRoot) {
83
+ if (i === 0) {
84
+ node.addNormalLine(l, 0);
85
+ continue;
86
+ }
87
+ if (i === (node.contentLines.length - 1)) {
88
+ node.addNormalLine(l, i);
89
+ continue;
90
+ }
91
+ }
92
+ if (node.lastRegionWithoutEnd) {
93
+ if (this.matchStartRegion(l)) {
94
+ node.addNormalLineToLastRegion(l, i);
95
+ stack++;
96
+ }
97
+ else if (this.matchEndRegion(l)) {
98
+ if (stack === 0) {
99
+ node.endLastRegion(i, l);
100
+ }
101
+ else if (stack > 0) {
102
+ node.addNormalLineToLastRegion(l, i);
103
+ stack--;
104
+ }
105
+ }
106
+ else {
107
+ if (i === (node.contentLines.length - (node.isRoot ? 1 : 2))) {
108
+ stack = 0;
109
+ node.endLastRegion(i, l);
110
+ }
111
+ else {
112
+ node.addNormalLineToLastRegion(l, i);
113
+ }
114
+ }
115
+ }
116
+ else {
117
+ if (this.matchStartRegion(l)) {
118
+ node.addRegion(this, node, i, l);
119
+ }
120
+ else if (this.matchEndRegion(l)) {
121
+ node.addNormalLine(l, i);
122
+ }
123
+ else {
124
+ node.addNormalLine(l, i);
125
+ }
126
+ }
127
+ }
128
+ // }
129
+ var children = node.regions;
130
+ if (children.length > 0) {
131
+ for (var index = 0; index < children.length; index++) {
132
+ var child = children[index];
133
+ this.tree(child);
134
+ }
135
+ }
136
+ };
137
+ Object.defineProperty(RegionRemover.prototype, "output", {
138
+ get: function () {
139
+ return this.root.toString().trimLeft();
140
+ },
141
+ enumerable: false,
142
+ configurable: true
143
+ });
144
+ return RegionRemover;
145
+ }());
146
+ exports.RegionRemover = RegionRemover;
147
+ //# sourceMappingURL=/Users/dariusz/projects/npm/isomorphic-region-loader/tmp-bundle-release/bundle/project/isomorphic-region-loader/bundle-nocutsrc/lib/region-remover.backend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"region-remover.backend.js","sourceRoot":"","sources":["../../tmp-source-bundle/lib/region-remover.backend.ts"],"names":[],"mappings":";;;AAAA,qCAAmC;AACnC,uCAAuC;AACvC,qCAAmC;AACnC,mDAA0C;AAK1C,IAAM,YAAY,GAAG;IACnB,eAAe,EAAE;QACf,KAAK,EAAE,IAAI,MAAM,CAAC,qBAAqB,CAAC;QACxC,GAAG,EAAE,IAAI,MAAM,CAAC,wBAAwB,CAAC;KAC1C;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,IAAI,MAAM,CAAC,2BAA2B,CAAC;QAC9C,GAAG,EAAE,IAAI,MAAM,CAAC,8BAA8B,CAAC;KAChD;IACD,GAAG,EAAE;QACH,KAAK,EAAE,IAAI,MAAM,CAAC,q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AC;IAED,sBAAI,iCAAM;aAAV;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC;QACzC,CAAC;;;OAAA;IAEH,oBAAC;AAAD,CAAC,AAvID,IAuIC;AAvIY,sCAAa"}
@@ -0,0 +1,29 @@
1
+ import { Models } from 'tnp-models';
2
+ import type { RegionRemover } from './region-remover.backend';
3
+ export declare class Region {
4
+ private context;
5
+ replacementss: Models.dev.Replacement[];
6
+ parent: Region;
7
+ startIndex: number;
8
+ endIndex: number;
9
+ lineStart: string;
10
+ lineEnd: string;
11
+ contentLines: string[];
12
+ constructor(context: RegionRemover, replacementss: Models.dev.Replacement[], parent: Region, startIndex: number, endIndex: number, lineStart: string, lineEnd: string, contentLines?: string[]);
13
+ private tmpOutput;
14
+ get hasEnd(): boolean;
15
+ get lastRegionWithoutEnd(): Region;
16
+ private regionsOrStrings;
17
+ get regions(): (string | Region)[];
18
+ private setEnd;
19
+ get isRoot(): boolean;
20
+ addNormalLine(l: string, lineIndex: number): void;
21
+ addNormalLineToLastRegion(l: string, lineIndex: number): void;
22
+ addRegion(context: RegionRemover, parent: Region, startIndex: number, lineStart: string): void;
23
+ endLastRegion(endIndex: number, lineEnd: string): void;
24
+ private containsTitle;
25
+ private get titleString();
26
+ toString(): string;
27
+ private get project();
28
+ private get absoluteFilePath();
29
+ }