ic-mops 0.0.1 → 0.1.2

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/commands/init.js CHANGED
@@ -3,7 +3,7 @@ import chalk from 'chalk';
3
3
  import path from 'path';
4
4
  import fs from 'fs';
5
5
 
6
- export async function init(name = {}) {
6
+ export async function init(name = '') {
7
7
  let configFile = path.join(process.cwd(), 'mops.toml');
8
8
  let exists = fs.existsSync(configFile);
9
9
  if (exists) {
@@ -81,6 +81,7 @@ service : {
81
81
  getLastConfig: (PackageName__1) -> (PackageConfig) query;
82
82
  getLastVersion: (PackageName__1) -> (Version) query;
83
83
  getReadmeFile: (PackageName__1, Version) -> (File) query;
84
+ getRecentlyUpdatedPackages: () -> (vec PackageSummary) query;
84
85
  notifyInstall: (PackageName__1, Version) -> () oneway;
85
86
  search: (Text) -> (vec PackageSummary) query;
86
87
  startPublish: (PackageConfig) -> (Result_1);
@@ -60,6 +60,7 @@ export interface _SERVICE {
60
60
  'getLastConfig' : ActorMethod<[PackageName__1], PackageConfig>,
61
61
  'getLastVersion' : ActorMethod<[PackageName__1], Version>,
62
62
  'getReadmeFile' : ActorMethod<[PackageName__1, Version], File>,
63
+ 'getRecentlyUpdatedPackages' : ActorMethod<[], Array<PackageSummary>>,
63
64
  'notifyInstall' : ActorMethod<[PackageName__1, Version], undefined>,
64
65
  'search' : ActorMethod<[Text], Array<PackageSummary>>,
65
66
  'startPublish' : ActorMethod<[PackageConfig], Result_1>,
@@ -63,6 +63,11 @@ export const idlFactory = ({ IDL }) => {
63
63
  'getLastConfig' : IDL.Func([PackageName__1], [PackageConfig], ['query']),
64
64
  'getLastVersion' : IDL.Func([PackageName__1], [Version], ['query']),
65
65
  'getReadmeFile' : IDL.Func([PackageName__1, Version], [File], ['query']),
66
+ 'getRecentlyUpdatedPackages' : IDL.Func(
67
+ [],
68
+ [IDL.Vec(PackageSummary)],
69
+ ['query'],
70
+ ),
66
71
  'notifyInstall' : IDL.Func([PackageName__1, Version], [], ['oneway']),
67
72
  'search' : IDL.Func([Text], [IDL.Vec(PackageSummary)], ['query']),
68
73
  'startPublish' : IDL.Func([PackageConfig], [Result_1], []),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.0.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "cli.js"