@seam-rpc/core 1.0.5 → 1.1.1

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 (2) hide show
  1. package/dist/index.js +3 -9
  2. package/package.json +24 -23
package/dist/index.js CHANGED
@@ -1,9 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SeamFile = void 0;
4
- exports.extractFiles = extractFiles;
5
- exports.injectFiles = injectFiles;
6
- class SeamFile {
1
+ export class SeamFile {
7
2
  constructor(data, fileName, mimeType) {
8
3
  this.data = data;
9
4
  this.fileName = fileName;
@@ -13,8 +8,7 @@ class SeamFile {
13
8
  return new SeamFile(data.data, data.fileName, data.mimeType);
14
9
  }
15
10
  }
16
- exports.SeamFile = SeamFile;
17
- function extractFiles(input) {
11
+ export function extractFiles(input) {
18
12
  const files = [];
19
13
  const paths = [];
20
14
  function walk(value, path) {
@@ -37,7 +31,7 @@ function extractFiles(input) {
37
31
  paths,
38
32
  };
39
33
  }
40
- function injectFiles(json, files) {
34
+ export function injectFiles(json, files) {
41
35
  for (const file of files) {
42
36
  let value = json;
43
37
  for (let i = 0; i < file.path.length; i++) {
package/package.json CHANGED
@@ -1,23 +1,24 @@
1
- {
2
- "name": "@seam-rpc/core",
3
- "version": "1.0.5",
4
- "description": "",
5
- "main": "./dist/index.js",
6
- "files": [
7
- "dist"
8
- ],
9
- "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
11
- },
12
- "author": "Daniel Clímaco",
13
- "license": "ISC",
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://github.com/DanielC49/seam-rpc.git",
17
- "directory": "packages/client"
18
- },
19
- "homepage": "https://github.com/DanielC49/seam-rpc#readme",
20
- "bugs": {
21
- "url": "https://github.com/DanielC49/seam-rpc/issues"
22
- }
23
- }
1
+ {
2
+ "name": "@seam-rpc/core",
3
+ "version": "1.1.1",
4
+ "description": "",
5
+ "main": "./dist/index.js",
6
+ "type": "module",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "test": "echo \"Error: no test specified\" && exit 1"
12
+ },
13
+ "author": "Daniel Clímaco",
14
+ "license": "ISC",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/DanielC49/seam-rpc.git",
18
+ "directory": "packages/client"
19
+ },
20
+ "homepage": "https://github.com/DanielC49/seam-rpc#readme",
21
+ "bugs": {
22
+ "url": "https://github.com/DanielC49/seam-rpc/issues"
23
+ }
24
+ }