@atproto/dev-env 0.3.42 → 0.3.44
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +20 -0
- package/dist/seed/index.d.ts +1 -0
- package/dist/seed/index.d.ts.map +1 -1
- package/dist/seed/index.js +3 -1
- package/dist/seed/index.js.map +1 -1
- package/dist/seed/quotes.d.ts +4 -0
- package/dist/seed/quotes.d.ts.map +1 -0
- package/dist/seed/quotes.js +21 -0
- package/dist/seed/quotes.js.map +1 -0
- package/package.json +5 -5
- package/src/seed/index.ts +1 -0
- package/src/seed/quotes.ts +50 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# @atproto/dev-env
|
2
2
|
|
3
|
+
## 0.3.44
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`4ab248354`](https://github.com/bluesky-social/atproto/commit/4ab2483547d5dabfba88ed4419a4f374bbd7cae7)]:
|
8
|
+
- @atproto/bsky@0.0.78
|
9
|
+
- @atproto/api@0.13.3
|
10
|
+
- @atproto/pds@0.4.53
|
11
|
+
- @atproto/ozone@0.1.40
|
12
|
+
|
13
|
+
## 0.3.43
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- Updated dependencies [[`2a0c088cc`](https://github.com/bluesky-social/atproto/commit/2a0c088cc5d502ca70da9612a261186aa2f2e1fb), [`aba664fbd`](https://github.com/bluesky-social/atproto/commit/aba664fbdfbaddba321e96db2478e0bc8fc72d27)]:
|
18
|
+
- @atproto/bsky@0.0.77
|
19
|
+
- @atproto/api@0.13.2
|
20
|
+
- @atproto/pds@0.4.52
|
21
|
+
- @atproto/ozone@0.1.39
|
22
|
+
|
3
23
|
## 0.3.42
|
4
24
|
|
5
25
|
### Patch Changes
|
package/dist/seed/index.d.ts
CHANGED
@@ -6,4 +6,5 @@ export { default as likesSeed } from './likes';
|
|
6
6
|
export { default as repostsSeed } from './reposts';
|
7
7
|
export { default as usersBulkSeed } from './users-bulk';
|
8
8
|
export { default as usersSeed } from './users';
|
9
|
+
export { default as quotesSeed } from './quotes';
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/seed/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/seed/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AAExB,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/seed/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AAExB,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/seed/index.js
CHANGED
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
18
18
|
};
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
-
exports.usersSeed = exports.usersBulkSeed = exports.repostsSeed = exports.likesSeed = exports.followsSeed = exports.basicSeed = exports.authorFeedSeed = void 0;
|
20
|
+
exports.quotesSeed = exports.usersSeed = exports.usersBulkSeed = exports.repostsSeed = exports.likesSeed = exports.followsSeed = exports.basicSeed = exports.authorFeedSeed = void 0;
|
21
21
|
__exportStar(require("./client"), exports);
|
22
22
|
var author_feed_1 = require("./author-feed");
|
23
23
|
Object.defineProperty(exports, "authorFeedSeed", { enumerable: true, get: function () { return __importDefault(author_feed_1).default; } });
|
@@ -33,4 +33,6 @@ var users_bulk_1 = require("./users-bulk");
|
|
33
33
|
Object.defineProperty(exports, "usersBulkSeed", { enumerable: true, get: function () { return __importDefault(users_bulk_1).default; } });
|
34
34
|
var users_1 = require("./users");
|
35
35
|
Object.defineProperty(exports, "usersSeed", { enumerable: true, get: function () { return __importDefault(users_1).default; } });
|
36
|
+
var quotes_1 = require("./quotes");
|
37
|
+
Object.defineProperty(exports, "quotesSeed", { enumerable: true, get: function () { return __importDefault(quotes_1).default; } });
|
36
38
|
//# sourceMappingURL=index.js.map
|
package/dist/seed/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/seed/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,2CAAwB;AAExB,6CAAyD;AAAhD,8HAAA,OAAO,OAAkB;AAClC,iCAA8C;AAArC,mHAAA,OAAO,OAAa;AAC7B,qCAAkD;AAAzC,uHAAA,OAAO,OAAe;AAC/B,iCAA8C;AAArC,mHAAA,OAAO,OAAa;AAC7B,qCAAkD;AAAzC,uHAAA,OAAO,OAAe;AAC/B,2CAAuD;AAA9C,4HAAA,OAAO,OAAiB;AACjC,iCAA8C;AAArC,mHAAA,OAAO,OAAa"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/seed/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,2CAAwB;AAExB,6CAAyD;AAAhD,8HAAA,OAAO,OAAkB;AAClC,iCAA8C;AAArC,mHAAA,OAAO,OAAa;AAC7B,qCAAkD;AAAzC,uHAAA,OAAO,OAAe;AAC/B,iCAA8C;AAArC,mHAAA,OAAO,OAAa;AAC7B,qCAAkD;AAAzC,uHAAA,OAAO,OAAe;AAC/B,2CAAuD;AAA9C,4HAAA,OAAO,OAAiB;AACjC,iCAA8C;AAArC,mHAAA,OAAO,OAAa;AAC7B,mCAAgD;AAAvC,qHAAA,OAAO,OAAc"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../src/seed/quotes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;6BAGX,UAAU;AAApC,wBA8CC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const index_1 = require("./index");
|
4
|
+
exports.default = async (sc) => {
|
5
|
+
await (0, index_1.basicSeed)(sc);
|
6
|
+
await sc.createAccount('eve', {
|
7
|
+
email: 'eve@test.com',
|
8
|
+
handle: 'eve.test',
|
9
|
+
password: 'eve-pass',
|
10
|
+
});
|
11
|
+
await sc.post(sc.dids.eve, 'qUoTe 1', undefined, undefined, sc.posts[sc.dids.alice][0].ref);
|
12
|
+
await sc.post(sc.dids.eve, 'qUoTe 2', undefined, undefined, sc.posts[sc.dids.alice][0].ref);
|
13
|
+
await sc.post(sc.dids.eve, 'qUoTe 3', undefined, undefined, sc.replies[sc.dids.bob][0].ref);
|
14
|
+
const spamPosts = [];
|
15
|
+
for (let i = 0; i < 5; i++) {
|
16
|
+
spamPosts.push(sc.post(sc.dids.eve, `MASSIVE QUOTE SPAM ${i + 1}`, undefined, undefined, sc.posts[sc.dids.alice][1].ref));
|
17
|
+
}
|
18
|
+
await Promise.all(spamPosts);
|
19
|
+
return sc;
|
20
|
+
};
|
21
|
+
//# sourceMappingURL=quotes.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quotes.js","sourceRoot":"","sources":["../../src/seed/quotes.ts"],"names":[],"mappings":";;AACA,mCAAmC;AAEnC,kBAAe,KAAK,EAAE,EAAc,EAAE,EAAE;IACtC,MAAM,IAAA,iBAAS,EAAC,EAAE,CAAC,CAAA;IACnB,MAAM,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE;QAC5B,KAAK,EAAE,cAAc;QACrB,MAAM,EAAE,UAAU;QAClB,QAAQ,EAAE,UAAU;KACrB,CAAC,CAAA;IAEF,MAAM,EAAE,CAAC,IAAI,CACX,EAAE,CAAC,IAAI,CAAC,GAAG,EACX,SAAS,EACT,SAAS,EACT,SAAS,EACT,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAC/B,CAAA;IACD,MAAM,EAAE,CAAC,IAAI,CACX,EAAE,CAAC,IAAI,CAAC,GAAG,EACX,SAAS,EACT,SAAS,EACT,SAAS,EACT,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAC/B,CAAA;IAED,MAAM,EAAE,CAAC,IAAI,CACX,EAAE,CAAC,IAAI,CAAC,GAAG,EACX,SAAS,EACT,SAAS,EACT,SAAS,EACT,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAC/B,CAAA;IAED,MAAM,SAAS,GAAmB,EAAE,CAAA;IACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC3B,SAAS,CAAC,IAAI,CACZ,EAAE,CAAC,IAAI,CACL,EAAE,CAAC,IAAI,CAAC,GAAG,EACX,sBAAsB,CAAC,GAAG,CAAC,EAAE,EAC7B,SAAS,EACT,SAAS,EACT,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAC/B,CACF,CAAA;IACH,CAAC;IACD,MAAM,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IAE5B,OAAO,EAAE,CAAA;AACX,CAAC,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/dev-env",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.44",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Local development environment helper for atproto development",
|
6
6
|
"keywords": [
|
@@ -24,15 +24,15 @@
|
|
24
24
|
"get-port": "^5.1.1",
|
25
25
|
"multiformats": "^9.9.0",
|
26
26
|
"uint8arrays": "3.0.0",
|
27
|
-
"@atproto/api": "^0.13.
|
28
|
-
"@atproto/bsky": "^0.0.
|
27
|
+
"@atproto/api": "^0.13.3",
|
28
|
+
"@atproto/bsky": "^0.0.78",
|
29
29
|
"@atproto/bsync": "^0.0.5",
|
30
30
|
"@atproto/common-web": "^0.3.0",
|
31
31
|
"@atproto/crypto": "^0.4.0",
|
32
32
|
"@atproto/identity": "^0.4.0",
|
33
33
|
"@atproto/lexicon": "^0.4.1",
|
34
|
-
"@atproto/ozone": "^0.1.
|
35
|
-
"@atproto/pds": "^0.4.
|
34
|
+
"@atproto/ozone": "^0.1.40",
|
35
|
+
"@atproto/pds": "^0.4.53",
|
36
36
|
"@atproto/syntax": "^0.3.0",
|
37
37
|
"@atproto/xrpc-server": "^0.6.2"
|
38
38
|
},
|
package/src/seed/index.ts
CHANGED
@@ -0,0 +1,50 @@
|
|
1
|
+
import { SeedClient } from './client'
|
2
|
+
import { basicSeed } from './index'
|
3
|
+
|
4
|
+
export default async (sc: SeedClient) => {
|
5
|
+
await basicSeed(sc)
|
6
|
+
await sc.createAccount('eve', {
|
7
|
+
email: 'eve@test.com',
|
8
|
+
handle: 'eve.test',
|
9
|
+
password: 'eve-pass',
|
10
|
+
})
|
11
|
+
|
12
|
+
await sc.post(
|
13
|
+
sc.dids.eve,
|
14
|
+
'qUoTe 1',
|
15
|
+
undefined,
|
16
|
+
undefined,
|
17
|
+
sc.posts[sc.dids.alice][0].ref,
|
18
|
+
)
|
19
|
+
await sc.post(
|
20
|
+
sc.dids.eve,
|
21
|
+
'qUoTe 2',
|
22
|
+
undefined,
|
23
|
+
undefined,
|
24
|
+
sc.posts[sc.dids.alice][0].ref,
|
25
|
+
)
|
26
|
+
|
27
|
+
await sc.post(
|
28
|
+
sc.dids.eve,
|
29
|
+
'qUoTe 3',
|
30
|
+
undefined,
|
31
|
+
undefined,
|
32
|
+
sc.replies[sc.dids.bob][0].ref,
|
33
|
+
)
|
34
|
+
|
35
|
+
const spamPosts: Promise<any>[] = []
|
36
|
+
for (let i = 0; i < 5; i++) {
|
37
|
+
spamPosts.push(
|
38
|
+
sc.post(
|
39
|
+
sc.dids.eve,
|
40
|
+
`MASSIVE QUOTE SPAM ${i + 1}`,
|
41
|
+
undefined,
|
42
|
+
undefined,
|
43
|
+
sc.posts[sc.dids.alice][1].ref,
|
44
|
+
),
|
45
|
+
)
|
46
|
+
}
|
47
|
+
await Promise.all(spamPosts)
|
48
|
+
|
49
|
+
return sc
|
50
|
+
}
|