react-native-pdf-renderer 0.0.4 → 0.0.5

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.
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // MIT License
2
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
4
  if (k2 === undefined) k2 = k;
4
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -23,6 +24,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
24
  return result;
24
25
  };
25
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
+ // Copyright (c) 2023 Douglas Nassif Roma Junior
28
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
29
+ // of this software and associated documentation files (the "Software"), to deal
30
+ // in the Software without restriction, including without limitation the rights
31
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
32
+ // copies of the Software, and to permit persons to whom the Software is
33
+ // furnished to do so, subject to the following conditions:
34
+ // The above copyright notice and this permission notice shall be included in all
35
+ // copies or substantial portions of the Software.
36
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
39
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
42
+ // SOFTWARE.
26
43
  const react_1 = __importStar(require("react"));
27
44
  const react_native_1 = require("react-native");
28
45
  const PdfRendererNative = (0, react_native_1.requireNativeComponent)('RNPdfRendererView');
package/dist/index.js CHANGED
@@ -1,8 +1,25 @@
1
1
  "use strict";
2
+ // MIT License
2
3
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
4
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
5
  };
5
6
  Object.defineProperty(exports, "__esModule", { value: true });
6
7
  exports.default = void 0;
8
+ // Copyright (c) 2023 Douglas Nassif Roma Junior
9
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ // of this software and associated documentation files (the "Software"), to deal
11
+ // in the Software without restriction, including without limitation the rights
12
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ // copies of the Software, and to permit persons to whom the Software is
14
+ // furnished to do so, subject to the following conditions:
15
+ // The above copyright notice and this permission notice shall be included in all
16
+ // copies or substantial portions of the Software.
17
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ // SOFTWARE.
7
24
  var PdfRendererView_1 = require("./PdfRendererView");
8
25
  Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(PdfRendererView_1).default; } });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-pdf-renderer",
3
3
  "displayName": "React-Native Pdf Renderer",
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "description": "⚛ A blazing fast, zero dependencies, pure native PDF Renderer for Android and iOS.",
6
6
  "main": "dist",
7
7
  "license": "MIT",
@@ -1,15 +0,0 @@
1
- const path = require('path');
2
- const fs = require('fs');
3
-
4
- const packageJson = require('../package.json');
5
-
6
- packageJson.main = 'dist';
7
- packageJson.types = 'dist';
8
-
9
- fs.writeFileSync(
10
- path.resolve(__dirname, '..', 'package.json'),
11
- JSON.stringify(packageJson, null, 2) + '\n',
12
- {
13
- encoding: 'utf-8',
14
- },
15
- );