ic-mops 0.26.2 → 0.26.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.
- package/declarations/main/main.did +6 -0
- package/declarations/main/main.did.d.ts +5 -0
- package/declarations/main/main.did.js +5 -0
- package/dist/declarations/main/main.did +6 -0
- package/dist/declarations/main/main.did.d.ts +5 -0
- package/dist/declarations/main/main.did.js +5 -0
- package/dist/mops.js +1 -1
- package/dist/package.json +1 -1
- package/mops.ts +2 -2
- package/package.json +1 -1
|
@@ -130,6 +130,11 @@ type PackagePublication =
|
|
|
130
130
|
type PackageName__1 = text;
|
|
131
131
|
type PackageName = text;
|
|
132
132
|
type PackageId = text;
|
|
133
|
+
type PackageFileStatsPublic =
|
|
134
|
+
record {
|
|
135
|
+
sourceFiles: nat;
|
|
136
|
+
sourceSize: nat;
|
|
137
|
+
};
|
|
133
138
|
type PackageDetails =
|
|
134
139
|
record {
|
|
135
140
|
config: PackageConfigV2__1;
|
|
@@ -140,6 +145,7 @@ type PackageDetails =
|
|
|
140
145
|
downloadsInLast30Days: nat;
|
|
141
146
|
downloadsInLast7Days: nat;
|
|
142
147
|
downloadsTotal: nat;
|
|
148
|
+
fileStats: PackageFileStatsPublic;
|
|
143
149
|
owner: principal;
|
|
144
150
|
ownerInfo: User;
|
|
145
151
|
publication: PackagePublication;
|
|
@@ -62,6 +62,7 @@ export interface PackageDetails {
|
|
|
62
62
|
'downloadsTotal' : bigint,
|
|
63
63
|
'downloadsInLast30Days' : bigint,
|
|
64
64
|
'downloadTrend' : Array<DownloadsSnapshot>,
|
|
65
|
+
'fileStats' : PackageFileStatsPublic,
|
|
65
66
|
'versionHistory' : Array<PackageSummary__1>,
|
|
66
67
|
'dependents' : Array<PackageSummary__1>,
|
|
67
68
|
'devDeps' : Array<PackageSummary__1>,
|
|
@@ -69,6 +70,10 @@ export interface PackageDetails {
|
|
|
69
70
|
'config' : PackageConfigV2__1,
|
|
70
71
|
'publication' : PackagePublication,
|
|
71
72
|
}
|
|
73
|
+
export interface PackageFileStatsPublic {
|
|
74
|
+
'sourceFiles' : bigint,
|
|
75
|
+
'sourceSize' : bigint,
|
|
76
|
+
}
|
|
72
77
|
export type PackageId = string;
|
|
73
78
|
export type PackageName = string;
|
|
74
79
|
export type PackageName__1 = string;
|
|
@@ -93,6 +93,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
93
93
|
'endTime' : Time,
|
|
94
94
|
'downloads' : IDL.Nat,
|
|
95
95
|
});
|
|
96
|
+
const PackageFileStatsPublic = IDL.Record({
|
|
97
|
+
'sourceFiles' : IDL.Nat,
|
|
98
|
+
'sourceSize' : IDL.Nat,
|
|
99
|
+
});
|
|
96
100
|
const PackageDetails = IDL.Record({
|
|
97
101
|
'ownerInfo' : User,
|
|
98
102
|
'owner' : IDL.Principal,
|
|
@@ -101,6 +105,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
101
105
|
'downloadsTotal' : IDL.Nat,
|
|
102
106
|
'downloadsInLast30Days' : IDL.Nat,
|
|
103
107
|
'downloadTrend' : IDL.Vec(DownloadsSnapshot),
|
|
108
|
+
'fileStats' : PackageFileStatsPublic,
|
|
104
109
|
'versionHistory' : IDL.Vec(PackageSummary__1),
|
|
105
110
|
'dependents' : IDL.Vec(PackageSummary__1),
|
|
106
111
|
'devDeps' : IDL.Vec(PackageSummary__1),
|
|
@@ -130,6 +130,11 @@ type PackagePublication =
|
|
|
130
130
|
type PackageName__1 = text;
|
|
131
131
|
type PackageName = text;
|
|
132
132
|
type PackageId = text;
|
|
133
|
+
type PackageFileStatsPublic =
|
|
134
|
+
record {
|
|
135
|
+
sourceFiles: nat;
|
|
136
|
+
sourceSize: nat;
|
|
137
|
+
};
|
|
133
138
|
type PackageDetails =
|
|
134
139
|
record {
|
|
135
140
|
config: PackageConfigV2__1;
|
|
@@ -140,6 +145,7 @@ type PackageDetails =
|
|
|
140
145
|
downloadsInLast30Days: nat;
|
|
141
146
|
downloadsInLast7Days: nat;
|
|
142
147
|
downloadsTotal: nat;
|
|
148
|
+
fileStats: PackageFileStatsPublic;
|
|
143
149
|
owner: principal;
|
|
144
150
|
ownerInfo: User;
|
|
145
151
|
publication: PackagePublication;
|
|
@@ -62,6 +62,7 @@ export interface PackageDetails {
|
|
|
62
62
|
'downloadsTotal' : bigint,
|
|
63
63
|
'downloadsInLast30Days' : bigint,
|
|
64
64
|
'downloadTrend' : Array<DownloadsSnapshot>,
|
|
65
|
+
'fileStats' : PackageFileStatsPublic,
|
|
65
66
|
'versionHistory' : Array<PackageSummary__1>,
|
|
66
67
|
'dependents' : Array<PackageSummary__1>,
|
|
67
68
|
'devDeps' : Array<PackageSummary__1>,
|
|
@@ -69,6 +70,10 @@ export interface PackageDetails {
|
|
|
69
70
|
'config' : PackageConfigV2__1,
|
|
70
71
|
'publication' : PackagePublication,
|
|
71
72
|
}
|
|
73
|
+
export interface PackageFileStatsPublic {
|
|
74
|
+
'sourceFiles' : bigint,
|
|
75
|
+
'sourceSize' : bigint,
|
|
76
|
+
}
|
|
72
77
|
export type PackageId = string;
|
|
73
78
|
export type PackageName = string;
|
|
74
79
|
export type PackageName__1 = string;
|
|
@@ -93,6 +93,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
93
93
|
'endTime' : Time,
|
|
94
94
|
'downloads' : IDL.Nat,
|
|
95
95
|
});
|
|
96
|
+
const PackageFileStatsPublic = IDL.Record({
|
|
97
|
+
'sourceFiles' : IDL.Nat,
|
|
98
|
+
'sourceSize' : IDL.Nat,
|
|
99
|
+
});
|
|
96
100
|
const PackageDetails = IDL.Record({
|
|
97
101
|
'ownerInfo' : User,
|
|
98
102
|
'owner' : IDL.Principal,
|
|
@@ -101,6 +105,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
101
105
|
'downloadsTotal' : IDL.Nat,
|
|
102
106
|
'downloadsInLast30Days' : IDL.Nat,
|
|
103
107
|
'downloadTrend' : IDL.Vec(DownloadsSnapshot),
|
|
108
|
+
'fileStats' : PackageFileStatsPublic,
|
|
104
109
|
'versionHistory' : IDL.Vec(PackageSummary__1),
|
|
105
110
|
'dependents' : IDL.Vec(PackageSummary__1),
|
|
106
111
|
'devDeps' : IDL.Vec(PackageSummary__1),
|
package/dist/mops.js
CHANGED
|
@@ -16,7 +16,7 @@ if (!global.fetch) {
|
|
|
16
16
|
export let apiVersion = '1.2';
|
|
17
17
|
let networkFile = '';
|
|
18
18
|
try {
|
|
19
|
-
networkFile = new URL('./network.txt', import.meta.url)
|
|
19
|
+
networkFile = new URL('./network.txt', import.meta.url);
|
|
20
20
|
}
|
|
21
21
|
catch {
|
|
22
22
|
networkFile = path.join(__dirname, 'network.txt');
|
package/dist/package.json
CHANGED
package/mops.ts
CHANGED
|
@@ -23,9 +23,9 @@ if (!global.fetch) {
|
|
|
23
23
|
// (!) make changes in pair with backend
|
|
24
24
|
export let apiVersion = '1.2';
|
|
25
25
|
|
|
26
|
-
let networkFile = '';
|
|
26
|
+
let networkFile: string | URL = '';
|
|
27
27
|
try {
|
|
28
|
-
networkFile = new URL('./network.txt', import.meta.url)
|
|
28
|
+
networkFile = new URL('./network.txt', import.meta.url);
|
|
29
29
|
}
|
|
30
30
|
catch {
|
|
31
31
|
networkFile = path.join(__dirname, 'network.txt');
|