motoko 2.0.2 → 2.0.3

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/lib/package.js +2 -2
  2. package/package.json +1 -1
package/lib/package.js CHANGED
@@ -62,7 +62,7 @@ async function fetchFromCDN(mo, repo, directory = '') {
62
62
  const stripped =
63
63
  directory +
64
64
  f.name.slice(repo.dir ? repo.dir.length + 1 : 0);
65
- mo.addFile(stripped, content);
65
+ mo.write(stripped, content);
66
66
  files[stripped] = content;
67
67
  })();
68
68
  promises.push(promise);
@@ -100,7 +100,7 @@ async function fetchFromGithub(mo, repo, directory = '') {
100
100
  directory +
101
101
  (directory ? '/' : '') +
102
102
  f.path.slice(repo.dir ? repo.dir.length + 1 : 0);
103
- mo.addFile(stripped, content);
103
+ mo.write(stripped, content);
104
104
  files[stripped] = content;
105
105
  })();
106
106
  promises.push(promise);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "motoko",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Compile Motoko smart contracts in Node.js and the browser.",
5
5
  "author": "Ryan Vandersmith (https://github.com/rvanasa)",
6
6
  "license": "Apache-2.0",